[osg-users] [build] Problem during generating the exectable files with VS 2012 :: Link2019 Error

Udo Kolm Udo.KOLM at T-Online.de
Mon Aug 8 04:12:01 PDT 2016


Hello Forum,
I am still a newbie regarding cmake and Visual Studio 2012 AMD64 and the latest stable download OpenSceneGraph 3.4.1. I have installed both on Windows 7 and the cmake-gui was running through create and generating and I was able to start by opening the file ALL_BUILD.vcxproj and pressed F7 to build/create it.

After around 30 mins running I got the following message:


Code:

  Code wird generiert...
14>     Bibliothek "C:/Users/Udo/Documents/Entwicklung/OpenSceneGraph-3.4.0/bin/lib/osgDB.lib" und Objekt "C:/Users/Udo/Documents/Entwicklung/OpenSceneGraph-3.4.0/bin/lib/osgDB.exp" werden erstellt.
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "deflate" in Funktion ""public: virtual bool __cdecl ZLibCompressor::compress(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?compress at ZLibCompressor@@UEAA_NAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "deflateEnd" in Funktion ""public: virtual bool __cdecl ZLibCompressor::compress(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?compress at ZLibCompressor@@UEAA_NAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "inflate" in Funktion ""public: virtual bool __cdecl ZLibCompressor::decompress(class std::basic_istream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?decompress at ZLibCompressor@@UEAA_NAEAV?$basic_istream at DU?$char_traits at D@std@@@std@@AEAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "inflateEnd" in Funktion ""public: virtual bool __cdecl ZLibCompressor::decompress(class std::basic_istream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?decompress at ZLibCompressor@@UEAA_NAEAV?$basic_istream at DU?$char_traits at D@std@@@std@@AEAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "deflateInit2_" in Funktion ""public: virtual bool __cdecl ZLibCompressor::compress(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?compress at ZLibCompressor@@UEAA_NAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>Compressors.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "inflateInit2_" in Funktion ""public: virtual bool __cdecl ZLibCompressor::decompress(class std::basic_istream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?decompress at ZLibCompressor@@UEAA_NAEAV?$basic_istream at DU?$char_traits at D@std@@@std@@AEAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@3@@Z)".
14>C:\Users\Udo\Documents\Entwicklung\OpenSceneGraph-3.4.0\bin\bin\osg130-osgDB.dll : fatal error LNK1120: 6 nicht aufgelöste Externe
15>------ Erstellen gestartet: Projekt: osgText, Konfiguration: Release x64 ------
16>------ Erstellen gestartet: Projekt: osgGA, Konfiguration: Release x64 ------
16>  Building Custom Rule C:/Users/Udo/Documents/Entwicklung/OpenSceneGraph-3.4.0/src/osgGA/CMakeLists.txt
16>  CMake does not need to re-run because C:\Users\Udo\Documents\Entwicklung\OpenSceneGraph-3.4.0\bin\src\osgGA\CMakeFiles\generate.stamp is up-to-date.
16>  AnimationPathManipulator.cpp
15>  Building Custom Rule C:/Users/Udo/Documents/Entwicklung/OpenSceneGraph-3.4.0/src/osgText/CMakeLists.txt
15>  CMake does not need to re-run because C:\Users\Udo\Documents\Entwicklung\OpenSceneGraph-3.4.0\bin\src\osgText\CMakeFiles\generate.stamp is up-to-date.
15>  DefaultFont.cpp




The same message I got by using Visual Studio 2010 and Openscenegraph 3.0.1

Then build-process is going on but by starting the progamm I got the error-message that the osgDB-file(s) are missing.

If there is any solution or hint for me it would be a great pleasure to receive any reply.

Thanks in advance
Udo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68306#68306








More information about the osg-users mailing list