Linking problem with compression functions
Posted by chris86 on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Linking-problem-with-compression-functions-tp1809.html
1>C:\Program Files (x86)\PCL 1.7.2\3rdParty\FLANN\include\flann/util/saving.h(67): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\string.h(129): note: see declaration of 'strcpy'
1>C:\Program Files (x86)\PCL 1.7.2\3rdParty\FLANN\include\flann/util/logger.h(66): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: see declaration of 'fopen'
1> util3d_transforms.cpp
Hi everybody,
I want to build the rtabmap framework for windows with visual studio 2015.
The preparation steps went well, linke compiling opencv, pcl, etc.
But when I want to build the rtabmap_core project the following linking error occurs:
[...]
1> Unknown compiler version - please run the configure tests and report the results
1> Generating Code...
1> Creating library [...]/rtabmap-master/lib/rtabmap_core.lib and object [...]/Tests/rtabmap-master/lib/rtabmap_core.exp
1>Compression.obj : error LNK2019: unresolved external symbol _compress referenced in function "class cv::Mat __cdecl rtabmap::compressData2(class cv::Mat const &)" (?compressData2@rtabmap@@YA?AVMat@cv@@ABV23@@Z)
1>Compression.obj : error LNK2019: unresolved external symbol _compressBound referenced in function "class cv::Mat __cdecl rtabmap::compressData2(class cv::Mat const &)" (?compressData2@rtabmap@@YA?AVMat@cv@@ABV23@@Z)
1>Compression.obj : error LNK2019: unresolved external symbol _uncompress referenced in function "class cv::Mat __cdecl rtabmap::uncompressData(unsigned char const *,unsigned long)" (?uncompressData@rtabmap@@YA?AVMat@cv@@PBEK@Z)
1>[...]\rtabmap-master\bin\rtabmap_core.dll : fatal error LNK1120: 3 unresolved externals
Has anybody an idea to solve the problem?
Thany you.
Best, Chris