Unable to complie vegastrike-src-0.5.1.r1 in Ubuntu14.04
Posted: Wed Jan 27, 2016 2:29 pm
It first failed in objconv/mesher/to_OgreMesh.cpp, and solved by the instruction of http://forums.vega-strike.org/viewtopic.php?f=5&t=20267
and then a new fail...
how to solve this?
and then a new fail...
Code: Select all
Linking CXX executable mesh_tool
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::Init()’中:
to_OgreMesh.cpp:(.text+0x903):undefined references to 'vtable for Ogre::MeshPtr'
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::Init(char const*, char const*)’中:
to_OgreMesh.cpp:(.text+0xfa1):undefined references to 'vtable for Ogre::MeshPtr'
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::Optimize(void*)’中:
to_OgreMesh.cpp:(.text+0x1b06):undefined references to 'vtable for Ogre::MeshPtr'
to_OgreMesh.cpp:(.text+0x1b45):undefined references to 'vtable for Ogre::MeshPtr'
to_OgreMesh.cpp:(.text+0x1c00):undefined references to 'vtable for Ogre::MeshPtr'
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:to_OgreMesh.cpp:(.text+0x1e16): more undefined references to `vtable for Ogre::MeshPtr' follow
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::AutoLOD(void*, bool, int, float, float)’中:
to_OgreMesh.cpp:(.text+0x1fca):对‘Ogre::ProgressiveMesh::generateLodLevels(Ogre::Mesh*, std::vector<float, Ogre::STLAllocator<float, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const&, Ogre::ProgressiveMesh::VertexReductionQuota, float)' undefined reference
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::DoneMeshes(void*)’中:
to_OgreMesh.cpp:(.text+0x26c9):undefined references to 'vtable for Ogre::MeshPtr'
CMakeFiles/mesh_tool.dir/mesher/to_OgreMesh.o:在函数‘OgreMeshConverter::AddMesh(void*, XML const&, std::string const&, bool, bool) [clone .constprop.390]’中:
to_OgreMesh.cpp:(.text+0x2bb6):undefined references to 'vtable for Ogre::MeshPtr'
collect2: error: ld returned 1 exit status
make[2]: *** [objconv/mesh_tool] 错误 1
make[1]: *** [objconv/CMakeFiles/mesh_tool.dir/all] 错误 2
make: *** [all] 错误 2