Author Topic: error: ‘PHYSFS_mount’ was not declared in this scope on cmake glest  (Read 1159 times)

Vido89

  • Daemon
  • Posts: 7
    • View Profile
Hi ... im using fedora 12 (32)
I try to compile glestae but I have this error ...
I followed these instructions https://docs.megaglest.org/GAE/Linux_Compiling

Code: [Select]
[vido@localhost ~]$ cd Desktop/glestae
[vido@localhost glestae]$ mkdir build
[vido@localhost glestae]$ cd build
[vido@localhost build]$ cmake -DGAE_DATA_DIR=$PWD/../data/game ..
-- The CXX compiler identification is GNU
-- The C compiler identification is GNU
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/filio.h
-- Looking for sys/filio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Found Lua51: /usr/lib/liblua-5.1.so;/usr/lib/libm.so
-- 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
-- Found X11: /usr/lib/libX11.so
-- Found VORBIS: /usr/include
-- Found ZLIB: /usr/lib/libz.so
-- Found CPPUNIT: /usr/include
-- checking for module 'libxml-2.0'
--   found libxml-2.0, version 2.7.7
-- Found LibXml2: /usr/lib/libxml2.so
-- Found wxWidgets: TRUE
-- Found Freetype: /usr/lib/libfreetype.so
-- Found PNG: /usr/lib/libpng.so
-- Found JPEG: /usr/lib/libjpeg.so
-- 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
-- Found Doxygen: /usr/bin/doxygen
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vido/Desktop/glestae/build
[vido@localhost build]$ make
Scanning dependencies of target shared_lib
[  1%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/conversion.cpp.o
[  1%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/util/util.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/math/quaternion.cpp.o
[  4%] 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/graphics_interface.cpp.o
[  5%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/font.cpp.o
[  6%] 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/model_manager.cpp.o
[  7%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/font_manager.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.cpp.o
[  8%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/texture_manager.cpp.o
[  9%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/pixmap.cpp.o
[  9%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/interpolation.cpp.o
[ 10%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/context.cpp.o
[ 10%] 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/ft_font.cpp.o
[ 12%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/camera.cpp.o
[ 12%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/text_renderer_gl.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/model_renderer_gl.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/context_gl.cpp.o
[ 14%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/particle_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/opengl.cpp.o
[ 15%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/shader.cpp.o
[ 16%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/window_gl.cpp.o
[ 16%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/input.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/socket.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/platform/timer.cpp.o
[ 18%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_interface.cpp.o
[ 18%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_file_loader.cpp.o
[ 19%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/sound/sound_player.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxmlparser.cpp.o
[ 21%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxmlerror.cpp.o
[ 21%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/tinyxml/tinyxml.cpp.o
[ 22%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/xml/xml_parser.cpp.o
[ 22%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/lua/lua_script.cpp.o
[ 23%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/ifile_stream.cpp.o
[ 23%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/ofile_streambuf.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/StdFileOps.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/PhysFileOps.cpp.o
[ 25%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/ifile_streambuf.cpp.o
[ 25%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FileOps.cpp.o
[ 26%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/MemFileOps.cpp.o
[ 26%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/physfs/FSFactory.cpp.o
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp: In destructor ‘Shared::PhysFS::FSFactory::~FSFactory()’:
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp:48: error: ‘PHYSFS_isInit’ was not declared in this scope
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp: In member function ‘bool Shared::PhysFS::FSFactory::initPhysFS(const char*, const std::string&, std::string&)’:
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp:77: error: ‘PHYSFS_mount’ was not declared in this scope
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp:104: error: ‘PHYSFS_mount’ was not declared in this scope
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp:111: error: ‘PHYSFS_mount’ was not declared in this scope
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp: In member function ‘bool Shared::PhysFS::FSFactory::mountSystemDir(const std::string&, const std::string&)’:
/home/vido/Desktop/glestae/source/shared_lib/sources/physfs/FSFactory.cpp:138: 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

« Last Edit: 18 June 2016, 14:23:16 by filux »

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Make sure you have physfs 2.0 installed. Older version won't work.