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.blee...@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....@creatis.insa-lyon.fr> > *Sent:* maandag 30 november 2020 23:09 > *To:* Bleeker, M. (Margot) <m.blee...@amsterdamumc.nl> > *Cc:* rtk-users@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%7C3165fe4e89b9415f102c08d8957c635b%7C68dfab1a11bb4cc6beb528d756984fb6%7C0%7C0%7C637423708767581185%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BrH1KF8BDnqEqAupE%2B6tLQ0goBz2CxSBWRddoaKrkd4%3D&reserved=0> > for some instructions. > > Simon > > > > On Fri, Nov 27, 2020 at 3:10 PM Bleeker, M. (Margot) < > m.blee...@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 > AMC disclaimer : www.amc.nl/disclaimer > > _______________________________________________ > Rtk-users mailing list > Rtk-users@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%7C3165fe4e89b9415f102c08d8957c635b%7C68dfab1a11bb4cc6beb528d756984fb6%7C0%7C0%7C637423708767591179%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kXfZl4AdoIDa8kZXZaoYkSGKli8vMkEx6D%2FounarkXE%3D&reserved=0> > >
_______________________________________________ Rtk-users mailing list Rtk-users@public.kitware.com https://public.kitware.com/mailman/listinfo/rtk-users