Author Topic: Cannot build mg's svn.  (Read 2189 times)

Zhook

  • Guest
Cannot build mg's svn.
« on: 18 July 2012, 10:58:50 »
Cannot build mg's svn.
Code: [Select]
'/media/for_home/zhs/svn-1/build-mg.sh'
++ cat /proc/cpuinfo
++ grep -cE '^processor'
+ NUMCORES=2
+ mkdir -p build
+ cd build
+ '[' -f CMakeCache.txt ']'
+ cmake -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON ..
-- Build type for this compile will be:
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Found SSE extensions, using flags: -msse -mfpmath=sse
-- *NOTE: using SSE for STREFLOP.
-- Found GCC backtrace lib, will support backtraces
-- Found SVN and using SVN version stamping...
-- *NOTE: NOT USING a Custom Data Install Path...
-- **Found game source code.
-- Will try to build MegaGlest shared library
CMake Error at mk/cmake/Modules/FindPackageHandleStandardArgs.cmake:94 (MESSAGE):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  mk/cmake/Modules/FindPackageHandleStandardArgs.cmake:255 (_FPHSA_FAILURE_MESSAGE)
  mk/cmake/Modules/FindCURL.cmake:20 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:48 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
+ '[' 1 -ne 0 ']'
+ echo 'ERROR: CMAKE failed.'
ERROR: CMAKE failed.
+ exit 1
Curl is in system.
What's wrong?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Cannot build mg's svn.
« Reply #1 on: 18 July 2012, 11:24:48 »
You are probably missing the header files. I assume you're still on Ubuntu 10.04? On Ubuntu, header files are contained in the packages whose names end in -dev. So, in this case, it's not enough to just have a libcurl package installed. Have you run the mk/linux/setupBuildDeps.sh script as discussed on the wiki page which contains the build instructions for Linux (using cmake)? It is meant to install the packages you need, or should at least offer a hint which you can then expand on.

Some general hints: You are welcome to ask your questions both here and on IRC. When you do on IRC, please keep in mind that there is no way to respond to you once you've left. So if you cannot stay around for at least half an hour after asking your question it may be better not to ask it there in the first place but to bring it here instead. We also don't have public logs of the IRC channels at this time and so, in contrary to here, what you post there is not searchable by you, the developers, or anyone, although having this possibility can be helpful when other people run into the same issues, or when developers want to review the issue you ran into to make things more smooth. And finally, on IRC, please don't paste more than 3 lines at once, use a pastebin (such as paste.megaglest.org or pastebin.com) instead. This a little bit more work but keeps IRC usable when it's busy and also makes the text you are providing more readable in most cases. Thank you!
« Last Edit: 18 July 2012, 11:39:06 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #2 on: 18 July 2012, 11:44:05 »
Thanks.
said that I need to dowload some pkgs(14Mb).
Trying.

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #3 on: 18 July 2012, 13:02:43 »
I installed all packages.
And problem fixed.
Thanks.
Now new error is :scared:
(Main with bold font)
Code: [Select]
zhs@zhs-desktop0 (18.07.12 16:44:35): /media/for_home/zhs/svn-1$ '/media/for_home/zhs/svn-1/build-mg.sh'
++ cat /proc/cpuinfo
++ grep -cE '^processor'
+ NUMCORES=2
+ mkdir -p build
+ cd build
+ '[' -f CMakeCache.txt ']'
+ rm -f CMakeCache.txt
+ cmake -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type for this compile will be:
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Success
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Success
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Success
-- Found SSE extensions, using flags: -msse -mfpmath=sse
-- *NOTE: using SSE for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- Found SVN and using SVN version stamping...
-- *NOTE: NOT USING a Custom Data Install Path...
-- **Found game source code.
-- Will try to build MegaGlest shared library
-- Found CURL: /usr/lib/libcurl.so
-- Force Curl dynamic: OFF
-- CURL RET = 0 libs: [/usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt]
-- USING CURL STATIC LIBS: /usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt
-- curl version=[7.19.7]
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for static Xerces-C lib...
-- Looking for dynamic Xerces-C lib...
-- Found dynamic Xerces-C lib [/usr/lib/libxerces-c.so]
-- Found Xerces-C: /usr/lib/libxerces-c.so
--               : /usr/include
--        Version: 2.8.0
-- Found LUAJIT: /usr/lib/libluajit-5.1.a
-- **NOTE: LUAJIT found and will grealy improve Lua performance.
-- Found JPEG: /usr/lib/libjpeg.a
-- Found ZLIB: /usr/lib/libz.so
-- Found PNG: /usr/lib/libpng.a
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/libfreetype.so
-- Found FTGL libraries at /usr/lib/libftgl.a and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- checking for module 'libvlc'
--   found libvlc, version 1.0.6
CMake Warning at mk/cmake/Modules/FindLIBVLC.cmake:88 (message):
  LibVLC version not found: version searched: 1.1.0, found 1.0.6

  Unless you are on Windows this is bound to fail.
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:225 (FIND_PACKAGE)

-- Found LibVLC include-dir path: /usr/include
-- Found LibVLC library path:/usr/lib/libvlc.so
-- Found LibVLCcore library path:/usr/lib/libvlccore.so
-- Found LibVLC version: 1.0.6 (searched for: 1.1.0)
-- **WARNING: LIBVLC NOT found so intro videos are NOT supported.
-- *** Using EMBEDDED miniupnpc since dev system does not have it... MINIUPNP_FOUND []
-- **No macro's required for miniupnpc version
-- *** Using EMBEDDED libircclient since dev system does not have it... IRCCLIENT_FOUND []
-- Performing Test HAS_LIBIRCCLIENT_1_6
-- Performing Test HAS_LIBIRCCLIENT_1_6 - Failed
-- Building shared game library as a STATIC library and saving to []
-- EXTERNAL_LIBS = [-Bstatic /usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt;/usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread;/usr/lib/libGLU.so;/usr/lib/libGL.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libxerces-c.so;/usr/lib/libopenal.so;/usr/lib/libluajit-5.1.a;libdl.so;/usr/lib/libjpeg.a;/usr/lib/libpng.a;/usr/lib/libfontconfig.so;/usr/lib/libftgl.a;/usr/lib/libfreetype.so;GLEW_LIBRARY-NOTFOUND]
-- Will try to build MegaGlest game
-- OGG/Vorbis includes: /usr/include
-- OGG library        : /usr/lib/libogg.so
-- Vorbis library     : /usr/lib/libvorbis.so
-- Vorbis file library: /usr/lib/libvorbisfile.so
-- LUA_INC: /usr/include/lua5.1
-- LUA_LIB: /usr/lib/liblua5.1.a
-- Looking for lua_close in /usr/lib/liblua5.1.a
-- Looking for lua_close in /usr/lib/liblua5.1.a - not found
-- Found Lua library: /usr/lib/liblua5.1.a
-- Found Lua headers: /usr/include/lua5.1
-- Force Curl dynamic: OFF
-- CURL RET = 0 libs: [/usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt]
-- USING CURL STATIC LIBS: /usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt
-- Found LibVLC include-dir path: /usr/include
-- Found LibVLC library path:/usr/lib/libvlc.so
-- Found LibVLCcore library path:/usr/lib/libvlccore.so
-- Found LibVLC version: 1.0.6 (searched for: 0.0)
-- **NOTE: LIBVLC found so intro videos are supported.
-- Will try to build MegaGlest map editor
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Found wxWidgets: TRUE
-- Will try to build MegaGlest model viewer
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Will try to build MegaGlest model import/export tools
-- checking for module 'libxml-2.0'
--   found libxml-2.0, version 2.7.6
-- Found LibXml2: /usr/lib/libxml2.so
-- **Found game data.
-- =====> Found Define: STREFLOP_SSE
-- =====> Found Define: HAS_GCC_BACKTRACE
-- =====> Found Define: CURL_STATICLIB
-- =====> DirDefs: STREFLOP_SSEHAS_GCC_BACKTRACECURL_STATICLIB
[b]CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_INCLUDE_PATH
   used as include directory in directory /media/for_home/zhs/svn-1/source/shared_lib
   used as include directory in directory /media/for_home/zhs/svn-1/source/glest_game
   used as include directory in directory /media/for_home/zhs/svn-1/source/g3d_viewer
GLEW_LIBRARY
    linked by target "libmegaglest" in directory /media/for_home/zhs/svn-1/source/shared_lib
    linked by target "megaglest" in directory /media/for_home/zhs/svn-1/source/glest_game
    linked by target "megaglest_g3dviewer" in directory /media/for_home/zhs/svn-1/source/g3d_viewer[/b]
What I must do?

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Cannot build mg's svn.
« Reply #4 on: 18 July 2012, 14:26:55 »
Did you run setupBuildDeps.sh in mk/linux? This should install all the dependencies you require to build mg. You don't seem to have all required deps installed.

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #5 on: 18 July 2012, 16:15:11 »
Allready ran script and allready installed deps.
But it write something about links and path in error.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Cannot build mg's svn.
« Reply #6 on: 18 July 2012, 18:26:28 »
That's because the new setupBuildDeps.sh does less guesswork than the old one. It needs to be updated with precise information on which packages to install on which OS and OS version. And since we had no reliable instructions for Ubuntu 10.04 specifically, it should have given general instructions (but not tried to run them itself), which were probably not entirely adequate.
« Last Edit: 18 July 2012, 19:18:33 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Cannot build mg's svn.
« Reply #7 on: 18 July 2012, 18:43:57 »
The script now works on Ubuntu 10.04 update from svn and run it

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #8 on: 19 July 2012, 01:07:54 »
Ok.
I'll try it today.
P.S. to tomreyn, Script printed names of packages and command to apt-get. I installed all which I didn't have that time.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Cannot build mg's svn.
« Reply #9 on: 19 July 2012, 01:39:15 »
Thanks for the heads up, it's good to know it did what it was supposed to do in this situation.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #10 on: 19 July 2012, 09:24:20 »
Tomreyn, I'm sorry  :-\ . You was right.
Problem was in deps. I have libglew1.5.6-0ubuntu1ppa1, but package wanted 1.5.2.
Code: [Select]
The following packages have unmet dependencies:
  libglew1.5-dev: Depends: libglew1.5 (= 1.5.2-0ubuntu1) but 1.5.6-0ubuntu1ppa1 is to be installed
E: Broken packages
An error occurred while installing build dependencies.

Please report a bugs at http://bugs.megaglest.org providing the following information:
--- snip ---
SVN version:  3476M
LSB support:  1
Distribution: Ubuntu
Release:      10.04
Codename:     lucid
--- snip ---
I fixed problem when repacked libglew1.5-dev.deb with  my parameter (Depends: libglew1.5 (>= 1.5.2-0ubuntu1)) and installed my libglew1.5-dev package.
Will paste url when uploading to ovrload.ru will finish.
Now mg is building...

It builds!!! And no problems!
Thanks very much for helping me!!!

Now I can work on translation of game and hint.
Short revision of new version - very cool, save-functions and some other features(cannot tell in English).
Very cool! :D  :thumbup:
P.S. thanks to softcoder for  setupBuildDeps.sh working in my ubuntu.  :)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Cannot build mg's svn.
« Reply #11 on: 19 July 2012, 11:23:14 »
I understand you now created a custom package and installed this to solve a dependency issue. This probably works (until the next update comes) but it's not exactly the way to go. I assume your APT sources  configuration simply lacks the 'universe' section. You can test this with this command:
sudo apt-get update;
apt-cache policy | grep 'lucid/universe'
If the second command returns no output then you are lacking 'universe' and should read http://help.ubuntu.com/community/Repositories/Ubuntu (or this if you prefer to work on the command line) to add the Universe repository/section.
Now you can use the above commands again to ensure it worked.

Once this is done, you should be able to uninstall your custom built package and install the official one. After uninstalling your custom package with, for example, apt-get purge --force=depends PACKAGENAME you can just re-run setupBuildDeps.sh and it should work then.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Zhook

  • Guest
Re: Cannot build mg's svn.
« Reply #12 on: 19 July 2012, 12:01:18 »
I understand.
But I have "very very hi-speed" internet(<= 8Kb/s  :((all will change after 26th)) and I didn't want dowload half of installed games (libglew1.5 in their deps).
Thanks for help, game works properly. :D

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Cannot build mg's svn.
« Reply #13 on: 19 July 2012, 23:31:55 »
Uuuh <= 8 kbps ?! What's that, an acoustic coupler? You have my pity, and my cheers for the 26th!
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything