[Kwiver-users] Map-TK Linker Errors on Windows
Kyle.Brooks at L-3Com.com
Kyle.Brooks at L-3Com.com
Mon Mar 21 15:36:27 EDT 2016
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
More information about the Kwiver-users
mailing list