Jump to content
  • 0

[SOLVED][Two] Compiling VMAP Extractor in Ubuntu error


Urlryn

Question

I'm currently working on extracting all the data as per this link.

https://github.com/mangoswiki/Wiki/wiki/Extracting-Game-Assets

So far so good till i went to do the vmap extractor portion of the page:

cd ~/server/contrib/vmap_extractor
cmake .
make

when you run cmake . the below happens.....is this an issue?

-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /mangosuser/mangos/server/contrib/vmap_extractor
mangosuser@wowserver:~/mangos/server/contrib/vmap_extractor# make
Scanning dependencies of target vmapextractor
[ 12%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/adtfile.cpp.o
[ 25%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/dbcfile.cpp.o
[ 37%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/gameobject_extract.cpp.o
[ 50%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/model.cpp.o
In file included from /mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.cpp:20:0:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.h: In constructor âModel::Model(std::string&)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.h:59:21: warning: âModel::filenameâ will be initialized after [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.h:39:30: warning:  âVec3D* Model::verticesâ [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.cpp:27:1: warning:  when initialized here [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.cpp: In constructor âModelInstance::ModelInstance(MPQFile&, const char*, uint32, uint32, uint32, FILE*)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/model.cpp:161:45: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â, declared with attribute warn_unused_result [-Wunused-result]
[ 62%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/mpq_libmpq.cpp.o
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/mpq_libmpq.cpp: In member function âsize_t MPQFile::read(void*, size_t)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/mpq_libmpq.cpp:103:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[ 75%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/vmapexport.cpp.o
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/vmapexport.cpp: In function âbool processArgv(int, char**)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/vmapexport.cpp:392:10: warning: variable âpreciseVectorDataâ set but not used [-Wunused-but-set-variable]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/vmapexport.cpp: In function âint main(int, char**)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/vmapexport.cpp:470:33: warning: ignoring return value of âint scanf(const char*, ...)â, declared with attribute warn_unused_result [-Wunused-result]
[ 87%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/wdtfile.cpp.o
[100%] Building CXX object vmapextract/CMakeFiles/vmapextractor.dir/wmo.cpp.o
In file included from /mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp:20:0:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.h: In constructor âWMOGroup::WMOGroup(std::string&)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.h:114:21: warning: âWMOGroup::filenameâ will be initialized after [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.h:96:15: warning:  âchar* WMOGroup::MOPYâ [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp:139:1: warning:  when initialized here [-Wreorder]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp: In member function âint WMOGroup::ConvertToVMAPGroupWmo(FILE*, WMORoot*, bool)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp:383:85: warning: narrowing conversion of â((((long unsigned int)(nColVertices * 3)) + 1ul) * 4ul)â from âlong unsigned intâ to âintâ inside { } is ill-formed in C++11 [-Wnarrowing]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp:399:101: warning: narrowing conversion of â((((long unsigned int)((WMOGroup*)this)->WMOGroup::LiquEx_size) + ((long unsigned int)(((WMOGroup*)this)->WMOGroup::hlq->WMOLiquidHeader::xtiles * ((WMOGroup*)this)->WMOGroup::hlq->WMOLiquidHeader::ytiles))) + 32ul)â from âlong unsigned intâ to âintâ inside { } is ill-formed in C++11 [-Wnarrowing]
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp: In constructor âWMOInstance::WMOInstance(MPQFile&, const char*, uint32, uint32, uint32, FILE*)â:
/mangosuser/mangos/server/contrib/vmap_extractor/vmapextract/wmo.cpp:517:45: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â, declared with attribute warn_unused_result [-Wunused-result]
Linking CXX executable vmapextractor
/usr/bin/ld: cannot find -lmpq
collect2: error: ld returned 1 exit status
make[2]: *** [vmapextract/vmapextractor] Error 1
make[1]: *** [vmapextract/CMakeFiles/vmapextractor.dir/all] Error 2
make: *** [all] Error 2

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Ok I must of missed doing the "make" for the libmpq. Thanks for the catch!

I went ahead and started over. And everything worked this time up to vmap_assembler this time.

/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(BinaryOutput.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(BinaryOutput.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(BinaryOutput.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(BinaryOutput.cpp.o): In function `G3D::FileSystem::createDirectory(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::_createDirectory(std::string const&)'
libg3dlite.a(Log.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(TextOutput.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(TextOutput.cpp.o): In function `G3D::FileSystem::createDirectory(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::_createDirectory(std::string const&)'
libg3dlite.a(TextOutput.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(System.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(System.cpp.o): In function `G3D::FileSystem::currentDirectory()':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:327: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:327: undefined reference to `G3D::FileSystem::_currentDirectory()'
libg3dlite.a(System.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::inZipfile(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:302: undefined reference to `G3D::FileSystem::instance()'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::inZipfile(std::string const&, std::string&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:284: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:284: undefined reference to `G3D::FileSystem::_inZipfile(std::string const&, std::string&)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::size(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:362: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:362: undefined reference to `G3D::FileSystem::_size(std::string const&)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::isZipfile(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:307: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:307: undefined reference to `G3D::FileSystem::_isZipfile(std::string const&)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::exists(std::string const&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:337: undefined reference to `G3D::FileSystem::_exists(std::string const&, bool)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::createDirectory(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:322: undefined reference to `G3D::FileSystem::_createDirectory(std::string const&)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::fopen(char const*, char const*)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:294: undefined reference to `G3D::FileSystem::_fopen(char const*, char const*)'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::getFiles(std::string const&, G3D::Array<std::string, 10, 32ul>&, bool)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:373: undefined reference to `G3D::FileSystem::instance()'
libg3dlite.a(fileutils.cpp.o): In function `G3D::FileSystem::list(std::string const&, G3D::Array<std::string, 10, 32ul>&, G3D::FileSystem::ListSettings const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:368: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:368: undefined reference to `G3D::FileSystem::_list(std::string const&, G3D::Array<std::string, 10, 32ul>&, G3D::FileSystem::ListSettings const&)'
libg3dlite.a(CoordinateFrame.cpp.o): In function `G3D::CoordinateFrame::CoordinateFrame(G3D::Any const&)':
/mangosuser/mangos/server/dep/src/g3dlite/CoordinateFrame.cpp:72: undefined reference to `G3D::PhysicsFrame::PhysicsFrame(G3D::Any const&)'
/mangosuser/mangos/server/dep/src/g3dlite/CoordinateFrame.cpp:72: undefined reference to `G3D::PhysicsFrame::operator G3D::CoordinateFrame() const'
libg3dlite.a(BinaryInput.cpp.o): In function `G3D::FileSystem::size(std::string const&)':
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:362: undefined reference to `G3D::FileSystem::instance()'
/mangosuser/mangos/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/FileSystem.h:362: undefined reference to `G3D::FileSystem::_size(std::string const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [vmap_assembler] Error 1
make[1]: *** [CMakeFiles/vmap_assembler.dir/all] Error 2
make: *** [all] Error 2

Was there something to compile/configure for it also? Sorry! Thats as far back as i could copy unless there is a log file someplace?

Link to comment
Share on other sites

I will apply this patch to the different cores so that this problem hopefully doesn't pop up again, will get back when it's done!

Edit: Pull-request filed, will probably be merged in soon: https://github.com/mangostwo/server/pull/3 for two at least.

Edit2: Marking as solved as you've probably gotten along with this problem and a pull-request has been issued. If any more trouble arises please open a new thread and reference this once if necessary, thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use