<div dir="ltr"><div dir="ltr">Ok, it works in case ITK Static -> RTK Static. When i try to build ITK Shared -> RTK Shared, i have got:<br>[ 19%] Linking CXX executable ../../bin/rtkamsterdamshroud<br>CMakeFiles/rtkamsterdamshroud.dir/rtkamsterdamshroud.cxx.o: In function `rtk::ThreeDCircularProjectionGeometryXMLFileReader::New()':<br>rtkamsterdamshroud.cxx:(.text._ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv[_ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv]+0xe): undefined reference to `typeinfo for rtk::ThreeDCircularProjectionGeometryXMLFileReader'<br>rtkamsterdamshroud.cxx:(.text._ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv[_ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv]+0x41): undefined reference to `typeinfo for rtk::ThreeDCircularProjectionGeometryXMLFileReader'<br>rtkamsterdamshroud.cxx:(.text._ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv[_ZN3rtk45ThreeDCircularProjectionGeometryXMLFileReader3NewEv]+0xc9): undefined reference to `rtk::ThreeDCircularProjectionGeometryXMLFileReader::ThreeDCircularProjectionGeometryXMLFileReader()'<br>CMakeFiles/rtkamsterdamshroud.dir/rtkamsterdamshroud.cxx.o: In function `std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const rtk::GetProjectionsFileNamesFromGgo<args_info_rtkamsterdamshroud>(args_info_rtkamsterdamshroud const&)':<br>rtkamsterdamshroud.cxx:(.text._ZN3rtk30GetProjectionsFileNamesFromGgoI28args_info_rtkamsterdamshroudEEKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKT_[_ZN3rtk30GetProjectionsFileNamesFromGgoI28args_info_rtkamsterdamshroudEEKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKT_]+0x3c1): undefined reference to `rtk::RegisterIOFactories()'<br>CMakeFiles/rtkamsterdamshroud.dir/rtkamsterdamshroud.cxx.o: In function `rtk::ProjectionsReader<itk::Image<double, 3u> >::GenerateOutputInformation()':<br>rtkamsterdamshroud.cxx:(.text._ZN3rtk17ProjectionsReaderIN3itk5ImageIdLj3EEEE25GenerateOutputInformationEv[_ZN3rtk17ProjectionsReaderIN3itk5ImageIdLj3EEEE25GenerateOutputInformationEv]+0x8e1): undefined reference to `rtk::RegisterIOFactories()'<br>collect2: error: ld returned 1 exit status<br>applications/rtkamsterdamshroud/CMakeFiles/rtkamsterdamshroud.dir/build.make:141: recipe for target 'bin/rtkamsterdamshroud' failed<br>make[2]: *** [bin/rtkamsterdamshroud] Error 1<br>CMakeFiles/Makefile2:512: recipe for target 'applications/rtkamsterdamshroud/CMakeFiles/rtkamsterdamshroud.dir/all' failed<br>make[1]: *** [applications/rtkamsterdamshroud/CMakeFiles/rtkamsterdamshroud.dir/all] Error 2<br>Makefile:129: recipe for target 'all' failed<br>make: *** [all] Error 2<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 2:59 AM Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr">simon.rit@creatis.insa-lyon.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>It seems that you are trying to compile against an installed ITK_DIR. This is no longer possible, see this thread: <a href="https://github.com/SimonRit/RTK/issues/207" target="_blank">https://github.com/SimonRit/RTK/issues/207</a></div><div>Can you try to compile against your build directory (set ITK_DIR to the build directory)?</div><div>Thanks,</div><div>Simon<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 5:16 PM Julia Semyakishkina <<a href="mailto:prekrasnaya1985@gmail.com" target="_blank">prekrasnaya1985@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<br>I can't build RTK in Linux. I've done all default steps described in wiki, but on configure i've got: <br>CMake Error at utilities/lp_solve/CMakeLists.txt:9 (include):<br> include could not find load file:<br><br> ITKModuleMacros<br><br><br>Hm.. it tries include module that exists in src ITK dir, not install...<br>I mean <br>"ls /usr/local/lib/cmake/ITK-4.13 | grep ITKModuleMacros" prints nothing<br>"ls /home/user/src/ITK/CMake | grep ITKModuleMacros" prints ITKModuleMacros.cmake<br><br>OK, i have just tried to add CMAKE_MODULE_PATH=/home/user/src/ITK/CMake and got next error:<br><br>CMake Error at CMakeLists.txt:250 (message):<br> Modules can only be built against an ITK build tree; they cannot be built<br> against an ITK install tree.<br><br>Let's look at the code:<br><br>if(NOT ITK_SOURCE_DIR)<br> if(NOT EXISTS ${ITK_CMAKE_DIR}/ITKModuleMacros.cmake)<br> message(FATAL_ERROR
"Modules can only be built against an ITK build tree; they cannot be
built against an ITK install tree.")<br> endif()<br> list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})<br> include(ITKModuleExternal)<br>else()<br> itk_module_impl()<br>endif()<br><br>Yea,
ITK_SOURCE_DIR is not set in my case, but why there is must be
ITKModuleMacros.cmake at my ITK_CMAKE_DIR dir that points to ITK
installation dir ?<br><br>If i set ITK_CMAKE_DIR to /home/user/src/ITK/CMake where ITKModuleMacros is, it resets back to ITK installation directory at <br># --------------------------------------------------------<br># Find ITK (required)<br>if(NOT ITK_SOURCE_DIR)<br> find_package(ITK 4.12.0 REQUIRED)<br>endif()<br><br><br>So,
the only way i see is to build inside ITK, but i am not familiar with
this. Could anyone help me how to build RTK inside ITK.</div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div>
</blockquote></div>