PlusToolkit / PlusLib

Software library for data acquisition, pre-processing, and calibration for navigated image-guided interventions.
http://www.plustoolkit.org
Other
130 stars 102 forks source link

Error while building Plus in Win10 #1177

Open seeligto opened 3 months ago

seeligto commented 3 months ago

Hello there, while installing and building All_BUILD Solution from PlusBuild, I stumbled on a total of 3 build errors: Does someone understand these issues and can maybe give me some tips of what I can do?

Software Used: --> generally all requirements except Microsoft HTML Help Qt5.12.12 cmake2.29.0 VS 2022

Error: MSB8055 in FIle Microsoft.CppCommon.targets (C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets) at line 254

  1. Project: PlusLib:
Custom build for 'C:\D\PlusBin\CMakeFiles\1f8878fd4d0f425d9963dfdd16a11ddb\PlusLib-update.rule;C:\D\PlusBin\CMakeFiles\1f8878fd4d0f425d9963dfdd16a11ddb\PlusLib-patch.rule;C:\D\PlusBin\CMakeFiles\1f8878fd4d0f425d9963dfdd16a11ddb\PlusLib-configure.rule;C:\D\PlusBin\CMakeFiles\1f8878fd4d0f425d9963dfdd16a11ddb\PlusLib-build.rule;C:\D\PlusBin\CMakeFiles\1f8878fd4d0f425d9963dfdd16a11ddb\PlusLib-install.rule;C:\D\PlusBin\CMakeFiles\25427102f8272f8aa5c80ab30b970e6f\PlusLib-complete.rule;C:\D\PlusBin\CMakeFiles\6ef6ad28769467a9644885de9d926eb3\PlusLib.rule' exited with code 1.  
  1. PlusApp:
Custom build for 'C:\D\PlusBin\CMakeFiles\b184635963b05d5d1f58056880176a84\PlusApp-update.rule;C:\D\PlusBin\CMakeFiles\b184635963b05d5d1f58056880176a84\PlusApp-patch.rule;C:\D\PlusBin\CMakeFiles\b184635963b05d5d1f58056880176a84\PlusApp-configure.rule;C:\D\PlusBin\CMakeFiles\b184635963b05d5d1f58056880176a84\PlusApp-build.rule;C:\D\PlusBin\CMakeFiles\b184635963b05d5d1f58056880176a84\PlusApp-install.rule;C:\D\PlusBin\CMakeFiles\25427102f8272f8aa5c80ab30b970e6f\PlusApp-complete.rule;C:\D\PlusBin\CMakeFiles\6ef6ad28769467a9644885de9d926eb3\PlusApp.rule' exited with code 1.
  1. IGSIO:
Custom build for 'C:\D\PlusBin\CMakeFiles\ddc55234b5e15d677587417d99332200\IGSIO-update.rule;C:\D\PlusBin\CMakeFiles\ddc55234b5e15d677587417d99332200\IGSIO-patch.rule;C:\D\PlusBin\CMakeFiles\ddc55234b5e15d677587417d99332200\IGSIO-configure.rule;C:\D\PlusBin\CMakeFiles\ddc55234b5e15d677587417d99332200\IGSIO-build.rule;C:\D\PlusBin\CMakeFiles\ddc55234b5e15d677587417d99332200\IGSIO-install.rule;C:\D\PlusBin\CMakeFiles\25427102f8272f8aa5c80ab30b970e6f\IGSIO-complete.rule;C:\D\PlusBin\CMakeFiles\6ef6ad28769467a9644885de9d926eb3\IGSIO.rule' exited with code 1.

What I tried: Rebuild Project, only:




bharatm11 commented 1 month ago

I am seeing the same issue. Looks like this has something to do with CMake 2.29. I am trying a different version right now. Will report how it goes in a few hours. Source: https://github.com/InsightSoftwareConsortium/ITK/issues/4407

jpunnoose0 commented 1 month ago

I am struggling with the same issue and it never occurred to me that it could be a CMake issue. I will also try downgrading CMake and seeing if it works.

bharatm11 commented 1 month ago

Downgrading CMake did not work. I tried CMake versions 3.27 and 3.30.

@Sunderlandkyl any ideas?

Sunderlandkyl commented 1 month ago

I built Plus yesterday using the version of CMake I had, which was 3.24.2.

If it is a problem in ITK then we should also look into updating to a newer version. Slicer recently switched to ITK 5.4.0, and we generally try to use the same version by default.

bharatm11 commented 1 month ago

Update: We tested ITK 5.4.0 but encountered the same errors.

Solutions: We have verified on two computers that PLUS can be built using CMake 3.28.3. Additionally, please ensure that you are using Visual Studio and not Visual Studio Preview. We have not yet tested these changes with ITK 5.4.0.