Problems compiling with Ogre installed

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).

Problems compiling with Ogre installed

Postby dandennison84 » Fri Mar 01, 2013 8:49 pm

Hi everyone,

I'm using the SVN version of vegastrike and working on compiling it. I'm on a gentoo 64-bit system. I've tried following instructions on building from source but they seem to not be accurate at all for the SVN version. I see there is a forum post indicating it now uses cmake, so I've been working with that. At this point, I have a working version if I don't use ogre. I had to edit the CMakeLists.txt file to remove all the OGRE entries and there didn't seem to be a simple -D switch for it. Is there a simpler way to disable it? I have it installed for something else so removing it isn't really much of an option.

If I were to try to get Ogre to work, what would I need to do? The version I have installed is 1.8.1. The basic problem seems to be mesher files for any of the build targets. I can paste logs and such, but I want to make sure I have good versions of libs first.

Code: Select all
cmake -DCPUINTEL_native=ON -DCPU_SMP=8 -DUSE_SYSTEM_BOOST=ON ..

Code: Select all
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- 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
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.3", required is "2")
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   python
++ Found System Boost : 104900
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so 
++ OpenGL found : /usr/lib64/libGLU.so;/usr/lib64/libGL.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Found GLUT: /usr/lib64/libglut.so 
++ GLUT found : /usr/lib64/libglut.so;/usr/lib64/libXmu.so;/usr/lib64/libXi.so
-- Found OpenAL: /usr/lib64/libopenal.so 
++ Found OpenAL
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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 SDL: /usr/lib64/libSDLmain.a;/usr/lib64/libSDL.so;-lpthread 
++ SDL Found
-- Found Vorbis: /usr/lib64/libvorbis.so;/usr/lib64/libvorbisfile.so;/usr/lib64/libogg.so
-- Found JPEG: /usr/lib64/libjpeg.so 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libpng'
--   found libpng, version 1.5.13
-- Found PNG: /usr/lib64/libpng.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.1.0")
-- Found Math: /usr/lib64/libm.so
-- checking for module 'libavcodec'
--   found libavcodec, version 53.61.100
-- checking for module 'libavformat'
--   found libavformat, version 53.32.100
-- checking for module 'libavutil'
--   found libavutil, version 51.35.100
-- checking for module 'libswscale'
--   found libswscale, version 2.1.100
-- Found FFmpeg: /usr/lib64/libavcodec.so;/usr/lib64/libavformat.so;/usr/lib64/libavutil.so;swscale
++ FFmpeg found.
++ FFmpeg's libswscale found.
-- checking for module 'OGRE>=1.2.0'
--   found OGRE, version 1.8.1
-- Found Ogre: 1.8.1
++ Found Ogre: 1.8.1
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for wctype.h
-- Looking for wctype.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for C++ include tr1/unordered_map
-- Looking for C++ include tr1/unordered_map - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for finite
-- Looking for finite - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for GLX_ARB_get_proc_address
-- Looking for GLX_ARB_get_proc_address - found
-- checking for module 'gtk+-2.0'
--   found gtk+-2.0, version 2.24.12
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.32.4
-- checking for module 'gmodule-2.0'
--   found gmodule-2.0, version 2.32.4
-- checking for module 'gdk-2.0'
--   found gdk-2.0, version 2.24.12
-- checking for module 'pango'
--   found pango, version 1.30.1
-- checking for module 'cairo'
--   found cairo, version 1.10.2
-- checking for module 'atk'
--   found atk, version 2.4.0
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.26.4
-- Found GTK2: /usr/lib64/libgtk-x11-2.0.so;/usr/lib64/libgdk-x11-2.0.so;/usr/lib64/libgdk_pixbuf-2.0.so;/usr/lib64/libgmodule-2.0.so;/usr/lib64/libgthread-2.0.so;/usr/lib64/libgobject-2.0.so;/usr/lib64/libpango-1.0.so;/usr/lib64/libpangocairo-1.0.so;/usr/lib64/libatk-1.0.so
++ Compiling mesh_tool with OgreMesh support
Default build type is Release, no cpu opts enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gentoo64/dan/Games/vegastrike/vegastrike/build


Code: Select all
make vegaserver

Code: Select all
Linking CXX static library libnetgeneric.a
[ 49%] Built target netgeneric
[ 49%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/collide.o
[ 49%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/container.o
[ 49%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/csv.o
[ 50%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/missile_generic.o
[ 50%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/mount.o
[ 50%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/nebula_generic.o
[ 50%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/planet_generic.o
[ 50%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/role_bitmask.o
[ 52%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_collide.o
[ 52%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_const_cache.o
[ 52%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_csv.o
[ 52%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_factory_generic.o
[ 54%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_functions_generic.o
[ 54%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_generic.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/xvector.h: In member function ‘virtual void PlanetaryOrbit::Execute()’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/xvector.h:171:20: warning: array subscript is above array bounds [-Warray-bounds]
[ 54%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/fg_util.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_csv.cpp: In member function ‘void Unit::LoadRow(CSVRow&, std::string, std::string*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_csv.cpp:773:1: warning: variable ‘OPTIDX_Description’ set but not used [-Wunused-but-set-variable]
[ 54%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_util_generic.o
[ 54%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/unit_xml.o
[ 56%] [ 56%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/weapon_xml.o
Building CXX object CMakeFiles/engine_com.dir/src/networking/inet_file.o
[ 56%] Building CXX object CMakeFiles/engine_com.dir/src/networking/inet.o
[ 56%] Building CXX object CMakeFiles/engine_com.dir/src/python/init.o
[ 58%] Building CXX object CMakeFiles/engine_com.dir/src/python/python_compile.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp: In member function ‘void Unit::beginElement(const string&, const XMLSupport::AttributeList&)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp:1091:20: warning: variable ‘minfreq’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp:1091:35: warning: variable ‘maxfreq’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp:1092:20: warning: variable ‘video’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp:1092:39: warning: variable ‘secured’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp: In member function ‘void Unit::LoadXML(VSFileSystem::VSFile&, const char*, std::string*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_xml.cpp:2039:15: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]
[ 58%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_exports.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_generic.cpp: In member function ‘void MeshAnimation::StartAnimation(unsigned int, int)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_generic.cpp:9175:10: warning: variable ‘infiniteLoop’ set but not used [-Wunused-but-set-variable]
[ 58%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_exports1.o
[ 58%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_exports2.o
[ 58%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_exports3.o
[ 60%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_method_defs.o
[ 60%] Building CXX object CMakeFiles/engine_com.dir/src/python/unit_wrapper.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_csv.cpp: At global scope:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/unit_csv.cpp:1514:15: warning: ‘std::string tos(unsigned int)’ defined but not used [-Wunused-function]
[ 60%] Building CXX object CMakeFiles/engine_com.dir/src/python/universe_util_export.o
[ 60%] Building CXX object CMakeFiles/engine_com.dir/src/configxml.o
[ 61%] Building CXX object CMakeFiles/engine_com.dir/src/easydom.o
[ 61%] Building CXX object CMakeFiles/engine_com.dir/src/endianness.o
[ 61%] Building CXX object CMakeFiles/engine_com.dir/src/macosx_math.o
[ 61%] Building CXX object CMakeFiles/engine_com.dir/src/faction_generic.o
[ 61%] Building CXX object CMakeFiles/engine_com.dir/src/faction_util_generic.o
[ 63%] Building CXX object CMakeFiles/engine_com.dir/src/galaxy_gen.o
[ 63%] Building CXX object CMakeFiles/engine_com.dir/src/galaxy_xml.o
In file included from /home/gentoo64/dan/Games/vegastrike/vegastrike/src/easydom.h:35:0,
                 from /home/gentoo64/dan/Games/vegastrike/vegastrike/src/configxml.h:32,
                 from /home/gentoo64/dan/Games/vegastrike/vegastrike/src/galaxy_gen.cpp:10:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/vsfilesystem.h: In member function ‘int VSFileSystem::VSFile::Fscanf(const char*, A*) [with A = char]’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/galaxy_gen.cpp:1142:47:   instantiated from here
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/vsfilesystem.h:390:23: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/faction_util_generic.cpp: In function ‘void FactionUtil::LoadSerializedFaction(FILE*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/faction_util_generic.cpp:159:22: warning: variable ‘bogus_return’ set but not used [-Wunused-but-set-variable]
[ 63%] Building CXX object CMakeFiles/engine_com.dir/src/galaxy.o
[ 63%] Building CXX object CMakeFiles/engine_com.dir/src/hashtable.o
[ 65%] Building CXX object CMakeFiles/engine_com.dir/src/lin_time.o
[ 65%] Building CXX object CMakeFiles/engine_com.dir/src/load_mission.o
[ 65%] Building CXX object CMakeFiles/engine_com.dir/src/pk3.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/pk3.cpp: In member function ‘bool CPK3::ExtractFile(const char*, const char*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/pk3.cpp:286:51: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
[ 65%] Building CXX object CMakeFiles/engine_com.dir/src/posh.o
[ 65%] Building CXX object CMakeFiles/engine_com.dir/src/savegame.o
[ 67%] Building CXX object CMakeFiles/engine_com.dir/src/star_system_generic.o
[ 67%] Building CXX object CMakeFiles/engine_com.dir/src/star_system_xml.o
[ 67%] Building CXX object CMakeFiles/engine_com.dir/src/stardate.o
[ 67%] Building CXX object CMakeFiles/engine_com.dir/src/universe_generic.o
[ 69%] Building CXX object CMakeFiles/engine_com.dir/src/universe_util_generic.o
[ 69%] Building CXX object CMakeFiles/engine_com.dir/src/vs_globals.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp: In member function ‘bool StarSystem::RemoveUnit(Unit*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp:265:11: warning: variable ‘removed2’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp: In member function ‘void StarSystem::UpdateUnitPhysics(bool)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp:505:12: warning: variable ‘flattentime’ set but not used [-Wunused-but-set-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp: In member function ‘void StarSystem::Update(float, bool)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/star_system_generic.cpp:692:12: warning: variable ‘pythontime’ set but not used [-Wunused-but-set-variable]
[ 69%] Building CXX object CMakeFiles/engine_com.dir/src/vsfilesystem.o
[ 69%] Building CXX object CMakeFiles/engine_com.dir/src/VSFileXMLSerializer.o
[ 69%] Building CXX object CMakeFiles/engine_com.dir/src/xml_serializer.o
[ 70%] Building CXX object CMakeFiles/engine_com.dir/src/xml_support.o
[ 70%] Building CXX object CMakeFiles/engine_com.dir/src/XMLDocument.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/XMLDocument.cpp:395:13: warning: ‘void XMLDOM::ExpatHandlers::Doctype(void*, const XML_Char*, const XML_Char*, const XML_Char*, int)’ defined but not used [-Wunused-function]
[ 70%] Building CXX object CMakeFiles/engine_com.dir/src/options.o
[ 70%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/director_generic.o
[ 72%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/mission_script.o
[ 72%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/mission.o
[ 72%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/msgcenter.o
[ 72%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/pythonmission.o
[ 72%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_call_olist.o
[ 74%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_call_omap.o
[ 74%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_call_order.o
[ 74%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_call_string.o
[ 74%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_call_unit_generic.o
[ 76%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_callbacks.o
[ 76%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_expression.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/mission.cpp: In member function ‘void Mission::checkFlightgroup(easyDomNode*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/mission.cpp:398:12: warning: variable ‘have_rot’ set but not used [-Wunused-but-set-variable]
[ 76%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_generic.o
[ 76%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_statement.o
[ 76%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_util.o
[ 78%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/script/script_variables.o
[ 78%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/cockpit_generic.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_statement.cpp: In member function ‘void Mission::doWhile(missionNode*, int)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_statement.cpp:125:14: warning: unused variable ‘res’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_variables.cpp: In member function ‘void Mission::doSetVar(missionNode*, int)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_variables.cpp:461:18: warning: unused variable ‘res’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_variables.cpp:463:20: warning: unused variable ‘res’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/cmd/script/script_variables.cpp:465:19: warning: unused variable ‘res’ [-Wunused-variable]
[ 78%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/lerp.o
[ 78%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/matrix.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/cockpit_generic.cpp: In function ‘void SwitchUnits(Unit*, Unit*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/cockpit_generic.cpp:331:10: warning: variable ‘pointingtonw’ set but not used [-Wunused-but-set-variable]
[ 80%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/mesh_bxm.o
[ 80%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/mesh_poly.o
[ 80%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/mesh_xml.o
[ 80%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/mesh.o
[ 80%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/quaternion.o
[ 81%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/soundcontainer_generic.o
[ 81%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/sphere_generic.o
[ 81%] Building CXX object CMakeFiles/engine_com.dir/src/gfx/vec.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/mesh.cpp: In member function ‘void Mesh::InitUnit()’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/src/gfx/mesh.cpp:86:16: warning: variable ‘alphalist’ set but not used [-Wunused-but-set-variable]
Linking CXX static library libengine_com.a
[ 81%] Built target engine_com
make[1]: *** [CMakeFiles/vegaserver.dir/rule] Error 2
make: *** [vegaserver] Error 2


Code: Select all
make mesh_tool


Code: Select all
[  0%] Building CXX object objconv/CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘std::string getMaterialHash(const GFXMaterial&, bool, bool, bool, float, int, int, float)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:142:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:144:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘std::string getMaterialHash(const Mesh_vec3f&)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:153:17: warning: unused variable ‘tmp’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘std::string getMaterialHash(const XML&)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:192:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<textureholder>::size_type {aka long unsigned int}’ [-Wformat]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:200:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<Mesh_vec3f>::size_type {aka long unsigned int}’ [-Wformat]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘void OgreMeshConverter::SetupColorTplVars(std::map<std::basic_string<char>, std::basic_string<char> >&, std::string, std::string, std::string, std::string, std::string, std::string, float, float, float, float, float, float, float, float, bool)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:443:12: warning: unused variable ‘eqg’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘void OgreMeshConverter::AutoOrganiseBuffers(Ogre::VertexData*, Ogre::MeshPtr)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1084:91: error: no matching function for call to ‘Ogre::VertexDeclaration::getAutoOrganisedDeclaration(bool, bool)’
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1084:91: note: candidate is:
/usr/include/OGRE/OgreHardwareVertexBuffer.h:371:28: note: Ogre::VertexDeclaration* Ogre::VertexDeclaration::getAutoOrganisedDeclaration(bool, bool, bool) const
/usr/include/OGRE/OgreHardwareVertexBuffer.h:371:28: note:   candidate expects 3 arguments, 2 provided
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘void OgreMeshConverter::Optimize(void*)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1104:20: warning: unused variable ‘idx’ [-Wunused-variable]
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp: In function ‘void OgreMeshConverter::AutoLOD(void*, bool, int, float, float)’:
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1119:15: error: ‘VertexReductionQuota’ in ‘struct Ogre::ProgressiveMesh’ does not name a type
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1138:18: error: ‘class Ogre::Mesh’ has no member named ‘generateLodLevels’
/home/gentoo64/dan/Games/vegastrike/vegastrike/objconv/mesher/to_OgreMesh.cpp:1138:51: error: ‘quota’ was not declared in this scope
make[3]: *** [objconv/CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o] Error 1
make[2]: *** [objconv/CMakeFiles/mesh_tool.dir/all] Error 2
make[1]: *** [objconv/CMakeFiles/mesh_tool.dir/rule] Error 2
make: *** [mesh_tool] Error 2


Removing the OGRE check from CMakeLists.txt gets rid of the errors and I can build.

Thanks,
Dan
dandennison84
Star Pilot
Star Pilot
 
Posts: 7
Topics: 3
Joined: Fri Mar 01, 2013 8:23 pm

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Problems compiling with Ogre installed

Postby loki1950 » Fri Mar 01, 2013 10:07 pm

Welcome aboard Dan the Ogre version of the source is hosted on an other project ATM and the trunk source has no support for Ogre as yet.We are in the process moving up from Python 2.x to Python 3.x part of the switch was dropping auto-tools support that post on using cmake was from earlier this week.I sure that either klauss or safemode will chime in when they see this post ;) strook the guy that was working on the Ogre port is no longer with us unfortunately so I have no idea as to it's functionality have tried building with vs2010ex myself but no go.And have fun.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5708
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Re: Problems compiling with Ogre installed

Postby dandennison84 » Sat Mar 02, 2013 6:46 am

Thanks for the response. Does this mean that trunk is not buildable? Should I be using a TAG or something to an earlier version? On the other hand, it does seem to be playable without OGRE.
dandennison84
Star Pilot
Star Pilot
 
Posts: 7
Topics: 3
Joined: Fri Mar 01, 2013 8:23 pm

Re: Problems compiling with Ogre installed

Postby klauss » Sat Mar 02, 2013 10:48 am

Rather, Ogre support in trunk is limited to being able to convert ogre mesh files to-from bfxm, so indeed, you loose nothing of consequence by disabling Ogre support, and since it builds that way...

PS: I believe it could be your Ogre version that is too old or too new (probably too new). Currently, I'm building fine with 1.8.1
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina


Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 1 guest

cron