[Rtk-users] Building First Reconstruction
Bleeker, M. (Margot)
m.bleeker at amsterdamumc.nl
Fri Dec 4 07:42:23 EST 2020
Hi Simon,
Thanks a lot for your help! You were right, I forgot to actually build ITK.. This worked!
Margot
From: Simon Rit <simon.rit at creatis.insa-lyon.fr>
Sent: vrijdag 4 december 2020 09:21
To: Bleeker, M. (Margot) <m.bleeker at amsterdamumc.nl>
Cc: rtk-users at public.kitware.com
Subject: Re: [Rtk-users] Building First Reconstruction
Hi,
I'm not sure you're actually building ITK. Here is a set of 4 command lines that configured and built ITK (with RTK) and the exemple on a Windows box with MSVC 2019:
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DModule_RTK:BOOL=ON -S"c:\src\itk\ITK-master" -B"c:\src\itk\margot" -DCMAKE_BUILD_TYPE:STRING=Debug -DModule_RTK:BOOL=ON -DModule_RTK_GIT_TAG=master -DBUILD_TESTING=OFF
cmake --build c:\src\itk\margot
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DITK_DIR:STRING=c:\src\itk\margot Module_RTK:BOOL=ON -S"c:\src\itk\ITK-master\Modules\Remote\RTK\examples\FirstReconstruction" -B"c:\src\itk\ITK-master\Modules\Remote\RTK\examples\FirstReconstruction\margot"
cmake --build c:\src\itk\ITK-master\Modules\Remote\RTK\examples\FirstReconstruction\margot
I normally never do that, I personally find it simpler to use cmake-gui for producing the MSVC solution and then to open it in the MSVC gui to launch the build. But that works too!
I hope it helps,
Simon
On Wed, Dec 2, 2020 at 9:02 AM Bleeker, M. (Margot) <m.bleeker at amsterdamumc.nl<mailto:m.bleeker at amsterdamumc.nl>> wrote:
Hi;
Thanks for your reply. I’m pretty new to this. At first I build ITK with Module_RTK ON in Release mode. I now build it in Debug mode using the following line in the command prompt:
---
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DModule_RTK:BOOL=ON -S"D:\Program files\InsightToolkit-5.1.1" -B"D:\Program files\InsightToolkit-5.1.1\Build"
---
During the build of FirstReconstruction I now get the same error, but a different file cannot be opened:
----
cmake -S"D:/Program files/InsightToolkit-5.1.1/Modules/Remote/RTK/examples/FirstReconstruction" -B"D:/Program files/InsightToolkit-5.1.1/Modules/Remote/RTK/examples/FirstReconstruction/Build"
D:\Program files\InsightToolkit-5.1.1\Modules\Remote\RTK\examples\FirstReconstruction\Build>cmake --build .
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Building Custom Rule D:/Program files/InsightToolkit-5.1.1/Modules/Remote/RTK/examples/FirstReconstruction/CMakeLists
.txt
FirstReconstruction.cxx
LINK : fatal error LNK1104: cannot open file 'RTK.lib' [D:\Program files\InsightToolkit-5.1.1\Modules\Remote\RTK\exampl
es\FirstReconstruction\Build\FirstReconstruction.vcxproj]
----
Do you know what I’m doing wrong?
Margot
From: Simon Rit <simon.rit at creatis.insa-lyon.fr<mailto:simon.rit at creatis.insa-lyon.fr>>
Sent: maandag 30 november 2020 23:09
To: Bleeker, M. (Margot) <m.bleeker at amsterdamumc.nl<mailto:m.bleeker at amsterdamumc.nl>>
Cc: rtk-users at public.kitware.com<mailto:rtk-users at public.kitware.com>
Subject: Re: [Rtk-users] Building First Reconstruction
Hi,
Can you confirm that you have built ITK with Module_RTK ON also in Debug mode? See https://github.com/SimonRit/RTK/blob/master/INSTALLATION.md<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSimonRit%2FRTK%2Fblob%2Fmaster%2FINSTALLATION.md&data=04%7C01%7Cm.bleeker%40amsterdamumc.nl%7C8bc45b4c1320451f386008d8982d7e74%7C68dfab1a11bb4cc6beb528d756984fb6%7C0%7C0%7C637426668450762209%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=D8ULgZP7YBB4qYQoGSjRKSkbvg9MKVOh5FgzYXqLV%2Bs%3D&reserved=0> for some instructions.
Simon
On Fri, Nov 27, 2020 at 3:10 PM Bleeker, M. (Margot) <m.bleeker at amsterdamumc.nl<mailto:m.bleeker at amsterdamumc.nl>> wrote:
Hello,
I am now trying to use RTK via Cmake/C++ (to which I am not familiar with). I am using Windows 10 and compiled using Visual Studio 16 2019 and use ITK 5.1.1. During building of FirstReconstruction I get the error:
----
D:\Program files\InsightToolkit-5.1.1\Modules\Remote\RTK\examples\FirstReconstruction\Build>cmake --build .
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Building Custom Rule D:/Program files/InsightToolkit-5.1.1/Modules/Remote/RTK/examples/FirstReconstruction/CMakeLists
.txt
FirstReconstruction.cxx
LINK : fatal error LNK1104: cannot open file 'D:\Program files\InsightToolkit-5.1.1\Build\lib\Debug\itkRTK-5.1.lib' [D:
\Program files\InsightToolkit-5.1.1\Modules\Remote\RTK\examples\FirstReconstruction\Build\FirstReconstruction.vcxproj]
------
Does anyone know how I can solve this issue?
Many thanks in advance!
Kind regards,
Margot
______________________________________________________
VUmc disclaimer : www.vumc.nl/disclaimer<http://www.vumc.nl/disclaimer>
AMC disclaimer : www.amc.nl/disclaimer<http://www.amc.nl/disclaimer>
_______________________________________________
Rtk-users mailing list
Rtk-users at public.kitware.com<mailto:Rtk-users at public.kitware.com>
https://public.kitware.com/mailman/listinfo/rtk-users<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Frtk-users&data=04%7C01%7Cm.bleeker%40amsterdamumc.nl%7C8bc45b4c1320451f386008d8982d7e74%7C68dfab1a11bb4cc6beb528d756984fb6%7C0%7C0%7C637426668450772171%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=35fYLnuucCif%2B3KqBqL3n8Q%2Fseb1tFWnuxpiBXHEyuI%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20201204/4c95a8f8/attachment-0001.htm>
More information about the Rtk-users
mailing list