<div dir="ltr">Hi,<div>It seems that CMake has trouble finding Cuda. What version of cmake are you using? Is your cmake variable CMAKE_CUDA_COMPILER set to the correct nvcc compiler?</div><div>A <a href="https://github.com/SimonRit/ITKCudaCommon/issues/8">similar problem</a> has been reported for the CudaCommon package so I'm not sure I have the solution yet. I haven't been able to reproduce it on my side...</div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 24, 2022 at 9:52 AM Vincent Libertiaux <<a href="mailto:vl@xris.eu">vl@xris.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Simon,</p>
<p>I have trouble compiling the git version of RTK. Here are the steps I followed:</p>
<p>- Compiled ITK 5.3rc without checking the RTK Module</p>
<p>- In CMake (RTK project), I set up the ITK_DIR variable to the directory where I built ITK</p>
<p>
</p>
<p>Configuration is ok, unfortunately, generation shouts a huge amount of errors at me:</p>
<p style="margin:0px;text-indent:0px">
<span style="color:rgb(255,0,0)">CMake Error at /home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleHeaderTest.cmake:87 (add_executable):
Target "RTKHeaderTest1" links to target "CUDA::cufft" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleMacros.cmake:207 (itk_module_headertest)
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleExternal.cmake:162 (itk_module_impl)
CMakeLists.txt:216 (include)
</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Error at /home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleHeaderTest.cmake:87 (add_executable):
Target "RTKHeaderTest1" links to target "CUDA::cublas" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleMacros.cmake:207 (itk_module_headertest)
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleExternal.cmake:162 (itk_module_impl)
CMakeLists.txt:216 (include)</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">
</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">
</span></p>
<p></p>
<p>The list goes on for quite a while. I have probably misunderstood the compilation instruction against an existing ITK. Would you mind to point me in the right direction ?</p>
<p>
</p>
<p>Thank you,</p>
<p>
</p>
<p>Vincent
</p>
<p>
</p>
<p>
</p>
</div>
</blockquote></div>