MegaGlest Forum
Archives (read only) => Glest Advanced Engine => General discussion => Topic started by: Toney on 13 May 2011, 19:26:32
-
Hi guys! I can`t make glastae:
[toney@toney build]$ make
Scanning dependencies of target shared_lib
[ 1%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/conversion.cpp.o
[ 2%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/leak_dumper.cpp.o
[ 2%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/properties.cpp.o
[ 3%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/profiler.cpp.o
[ 3%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/util.cpp.o
[ 4%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/math/quaternion.cpp.o
[ 5%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/math/math_util.cpp.o
[ 5%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/buffer.cpp.o
[ 6%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/graphics_interface.cpp.o
[ 6%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/pixmap.cpp.o
[ 7%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/model.cpp.o
[ 8%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/texture_manager.cpp.o
[ 8%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/camera.cpp.o
[ 9%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/texture.cpp.o
[ 10%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/font_manager.cpp.o
[ 10%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/ft_font.cpp.o
[ 11%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/particle.cpp.o
[ 11%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/font.cpp.o
[ 12%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/model_manager.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/context.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/interpolation.cpp.o
[ 14%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/text_renderer_gl.cpp.o
[ 14%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/texture_gl.cpp.o
[ 15%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/context_gl.cpp.o
[ 16%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/particle_renderer_gl.cpp.o
[ 16%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/opengl.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/model_renderer_gl.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/window_gl.cpp.o
[ 18%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/timer.cpp.o
[ 19%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/input.cpp.o
[ 19%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/socket.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_file_loader.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_player.cpp.o
[ 21%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_interface.cpp.o
[ 22%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound.cpp.o
[ 22%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxml.cpp.o
[ 23%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxmlparser.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxmlerror.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/xml/xml_parser.cpp.o
[ 25%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/lua/lua_script.cpp.o
[ 25%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FSFactory.cpp.o
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In destructor ‘Shared::PhysFS::FSFactory::~FSFactory()’:
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:48:19: error: no declaration ‘PHYSFS_mount’ in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In the member function ‘bool Shared::PhysFS::FSFactory::initPhysFS(const char*, const char*, const char*)’:
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:74:36: error: no declaration ‘PHYSFS_mount’ in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:101:41: error: no declaration ‘PHYSFS_mount’ in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:108:35: error: no declaration ‘PHYSFS_mount’ in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In the member function ‘bool Shared::PhysFS::FSFactory::mountSystemDir(const std::string&, const std::string&)’:
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:130:60: error: no declaration ‘PHYSFS_mount’ in this in this scope
make[2]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FSFactory.cpp.o] Error 1
make[1]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/all] Error 2
make: *** [all] Error 2
-
For the second one you are using the wrong folder. It should be the one that contains source, docs and other folders. Try cd into the build folder, the two dots at the end mean to use the folder before (I think, if not the tutorial may be wrong).
I can't say for sure for the first one since I can't read the language but it looks like PhysFS isn't installed.
It might be better to use the source from the git repository since that's the most up to date.
-
I translated errors in my upper post. Please help. physfs & physfs-devel are installed, cmake told me to install `em.
-
Don't translate by yourself. Run 'LANG= make' (notice the space between) which should reset the language and default to english just for this command.
Make sure you have physfs 2.0 or later installed. Older versions don't work. The find module for physfs in cmake can't check for the version. Maybe we should add a trycompile with PHYSFS_mount to check it as you're not the first one with this problem.
-
Ok, here comes original make output:
[toney@toney build]$ LANG= make
[ 0%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FSFactory.cpp.o
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In destructor 'Shared::PhysFS::FSFactory::~FSFactory()':
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:48:19: error: 'PHYSFS_isInit' was not declared in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In member function 'bool Shared::PhysFS::FSFactory::initPhysFS(const char*, const char*, const char*)':
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:74:36: error: 'PHYSFS_mount' was not declared in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:101:41: error: 'PHYSFS_mount' was not declared in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:108:35: error: 'PHYSFS_mount' was not declared in this scope
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp: In member function 'bool Shared::PhysFS::FSFactory::mountSystemDir(const std::string&, const std::string&)':
/home/toney/games/glestae-src-0.3.2/source/shared_lib/sources/physfs/FSFactory.cpp:130:60: error: 'PHYSFS_mount' was not declared in this scope
make[2]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FSFactory.cpp.o] Error 1
make[1]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/all] Error 2
make: *** [all] Error 2
-
That`s it! My physfs version in fedora 14 repo is 1.0.2, so I installed physfs-2.0.2 from source. Everything made good.
But when I started game, I caught a crush:
Crash
Version: Advanced Engine 0.3.2
Time: Sat May 14 13:47:23 2011
Description: SIGILL: illegal operand
Address: 0x843cff2
Backtrace:
./glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP7siginfoPv+0x25c) [0x8438f92]
[0x8b940c]
./glestadv(_ZN6Shared8Graphics8Freetype6renderERKNS1_9font_dataENS_4Math4Vec2IiEERKSt6vectorISsSaISsEE+0x51) [0x843cff2]
./glestadv(_ZN6Shared8Graphics8Freetype5printERKNS1_9font_dataEffPKh+0x15b) [0x843d2ba]
./glestadv(_ZN6Shared8Graphics2Gl14TextRendererFT6renderERKSsiib+0xa3) [0x843d627]
./glestadv(_ZN5Glest7Widgets10TextWidget10renderTextERKSsiiRKN6Shared4Math4Vec4IfEEPKNS4_8Graphics4FontE+0xc9) [0x83ceff5]
./glestadv(_ZN5Glest7Widgets10TextWidget18renderTextShadowedEii+0x141) [0x83cf281]
./glestadv(_ZN5Glest7Widgets10StaticText6renderEv+0xa0) [0x83be152]
./glestadv(_ZN5Glest7Widgets9Container6renderEv+0x6f) [0x83d0027]
./glestadv(_ZN5Glest7Widgets12WidgetWindow6renderEv+0x11) [0x83d3051]
./glestadv(_ZN5Glest4Main7Program4loopEv+0x143) [0x82fcb03]
./glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2ca) [0x82f66d8]
./glestadv(main+0x79) [0x82f69ca]
/lib/libc.so.6(__libc_start_main+0xe6) [0xb99e36]
./glestadv() [0x8257e01]
=======================