Hi Niels,
I did tried executing the sample example code "ElastixTranslationExample.cxx", but i am getting many linking error. Can you help me resolving that? what specific .lib libraries files of elastix and ITK i need to add to my c++ visual studio 2017 project.
How did i build elastix(5.1.0) and ITK(5.3.0):
1. downloaded the source code .
2.excuted the command cmake -s <sourcecode_directory -B <build folder>>
3. go to build directory.
4.open x74 native tool command window of vs2017.
5. executed command go to build directory."msbuild ALL_BUILD.vcxproj /p:Configuration=Release."
sample error:
ElastixITk.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl vnl_matrix<double>::~vnl_matrix<double>(void)" (??1?$vnl_matrix@N@@UEAA@XZ)
1>elastix-5.1.lib(elxComponentLoader.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl vnl_matrix<double>::~vnl_matrix<double>(void)" (??1?$vnl_matrix@N@@UEAA@XZ)
1>elxCommon-5.1.lib(elxTransformFactoryRegistration.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl vnl_matrix<double>::~vnl_matrix<double>(void)" (??1?$vnl_matrix@N@@UEAA@XZ)
1>elxCommon-5.1.lib(elxTransformFactoryRegistration.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl vnl_vector<double>::~vnl_vector<double>(void)" (??1
Thanks for your response,
Regards
Kunal