[Kwiver-users] Map-TK Linker Errors on Windows

Matthew Leotta matt.leotta at kitware.com
Mon Mar 21 17:06:46 EDT 2016


Kyle,

I don’t know what the issues is off hand.  For the v0.7.x installers we focused on making sure the executables and GUI could be installed and run.  While the package does included header file and and libraries, we didn’t test its use as an SDK.  I suspect there is something not configured correctly in the installed package.  If you want to develop code against MAP-Tk, you may have better luck if you build from source.

I don’t have time to look at this issue with the installer anytime soon.  I’m preparing for the upcoming v0.8.0 release.  If this issue persists with the v0.8.0 release then we will probably address it there.  However, we are moving to C++11 with MAP-Tk v0.8.0, which means dropping support for Visual Studio 2010.  So that may be an issue for you.  We are continuing to support Visual Studio 2013 and above.

—Matt


 
> On Mar 21, 2016, at 3:36 PM, Kyle.Brooks at L-3Com.com wrote:
> 
> Hello,
> 
> I installed Map-TK v0.7.2 from the installer and am trying to use "maptk::read_krtd_file" and "maptk::read_pos_file".  I have added Map-TK to my project (Portions of file removed):
> 
> cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
> project(${MY_PROJECT})
> find_package(maptk REQUIRED) 
> 
> add_executable(${EXECUTABLE_NAME} ${SOURCES})
> target_include_directories(${EXECUTABLE_NAME} PRIVATE include ${MAPTK_INCLUDE_DIRS})
> target_link_libraries(${EXECUTABLE_NAME} ${MAPTK_LIBRARIES})
> 
> message(STATUS "MAPTK_LIBRARIES - ${MAPTK_LIBRARIES}")
> 
> I am getting two linker errors using Visual Studio 2010 SP1, it compiles just fine.
> 
> Error	1	error LNK2019: unresolved external symbol "__declspec(dllimport) class maptk::camera_<double> __cdecl maptk::read_krtd_file(class boost::filesystem3::path const &)" (__imp_?read_krtd_file at maptk@@YA?AV?$camera_ at N@1 at AEBVpath@filesystem3 at boost@@@Z) referenced in function "class std::vector<class Eigen::Transform<float,3,2,0>,class std::allocator<class Eigen::Transform<float,3,2,0> > > __cdecl Foo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?Foo@@YA?AV?$vector at V?$Transform at M$02$01$0A@@Eigen@@V?$allocator at V?$Transform at M$02$01$0A@@Eigen@@@std@@@std@@AEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z)	foobar.obj
> Error	2	error LNK2019: unresolved external symbol "__declspec(dllimport) struct maptk::ins_data __cdecl maptk::read_pos_file(class boost::filesystem3::path const &)" (__imp_?read_pos_file at maptk@@YA?AUins_data at 1@AEBVpath at filesystem3@boost@@@Z) referenced in function "class std::vector<class Eigen::Transform<float,3,2,0>,class std::allocator<class Eigen::Transform<float,3,2,0> > > __cdecl Bar(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?Bar@@YA?AV?$vector at V?$Transform at M$02$01$0A@@Eigen@@V?$allocator at V?$Transform at M$02$01$0A@@Eigen@@@std@@@std@@AEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z)	foobar.obj
> 
> Is this library missing or not matching the header files? Any ideas?
> 
> Thanks,
> Kyle
> 
> _______________________________________________
> Kwiver-users mailing list
> Kwiver-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/kwiver-users



More information about the Kwiver-users mailing list