Author Topic: Glest (svn 1781)Compilation Error on Linux x86_64 (fixed in svn r1785)  (Read 1149 times)

jpeirce

  • Guest
Code: [Select]
[ 92%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/world.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/surface_atlas.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/unit_updater.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/time_flow.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/tileset.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/scenario.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/water_effects.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/glest.bin.dir/world/map.cpp.o
Linking CXX executable ../../../mk/linux/glest.bin
c++: unknown: No such file or directory
c++: option:: No such file or directory
make[2]: *** [../mk/linux/glest.bin] Error 1
make[1]: *** [source/glest_game/CMakeFiles/glest.bin.dir/all] Error 2
make: *** [all] Error 2

If I rerun make, I get the following errors:
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: Usage: curl-config [OPTION]
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: Available values for OPTION include:
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --ca        ca bundle install path
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --cc        compiler
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --cflags    pre-processor and compiler flags
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --checkfor [version] check for (lib)curl of the specified version
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --configure the arguments given to configure when building curl
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --features  newline separated list of enabled features
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --help      display this help and exit
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --libs      library linking information
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --prefix    curl install prefix
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --protocols newline separated list of enabled protocols
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --version   output version information
CMake Error: Parse error in cache file /home/jackson/megaglest/build/CMakeCache.txt. Offending entry: --vernum    output the version information as a number (hexadecimal);general;/usr/lib64/libSDL.so;general;-lpthread;general;/usr/lib64/libGLU.so;general;/usr/lib64/libGL.so;general;/usr/lib64/libSM.so;general;/usr/lib64/libICE.so;general;/usr/lib64/libX11.so;general;/usr/lib64/libXext.so;general;/usr/lib64/libxerces-c.so;general;/usr/lib64/libopenal.so;general;/usr/lib64/libogg.so;general;/usr/lib64/libvorbis.so;general;/usr/lib64/libvorbisfile.so;general;/usr/lib64/liblua.so;general;/usr/lib64/libjpeg.so;general;/usr/lib64/libpng.so;
-- Build type for this compile will be:
-- Detected GNUC Compiler...
-- curl version=[7.21.0]
-- LUA_INC: /usr/include
-- LUA_LIB: /usr/lib64/liblua.so
-- Found Lua library: /usr/lib64/liblua.so
-- Found Lua headers: /usr/include
-- Building shared game library as a STATIC library and saving to []
-- LUA_INC: /usr/include
-- LUA_LIB: /usr/lib64/liblua.so
-- Found Lua library: /usr/lib64/liblua.so
-- Found Lua headers: /usr/include
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1

I have to remove CMakeCache.txt to clear those errors.

Edit by Omega: Added code tags[/url]
« Last Edit: 28 February 2011, 18:52:59 by jpeirce »

jpeirce

  • Guest
Re: Glest (svn 1781)Compilation Error on Linux x86_64
« Reply #1 on: 28 February 2011, 02:55:34 »
This seems to be occuring because Fedora applys a patch to curl-config that removes the --static-libs option

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Glest (svn 1781)Compilation Error on Linux x86_64
« Reply #2 on: 28 February 2011, 03:19:59 »
Its not totally required to build with static for libcurl for yourself.. we do this to make for easier deployment to end users, especially since we are using a newer curl than most distros have in stock repos.

jpeirce

  • Guest
Re: Glest (svn 1781)Compilation Error on Linux x86_64
« Reply #3 on: 28 February 2011, 17:48:40 »
How would I build this without static-libraries?

jpeirce

  • Guest
fixed in svn r1785