PlusToolkit / PlusLib

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

Clarius Win64 package #725

Open Marinho95 opened 3 years ago

Marinho95 commented 3 years ago

Hi, On your website (https://plustoolkit.github.io/download) I saw that you created a downloadable package of the PlusApp for Clarius US systems, called: PlusApp-…-Clarius-Win64. However I couldn't find the download file in the folder on the website. Is it already available to download and do you have the download file? Thank you!

Sunderlandkyl commented 3 years ago

There are currently some issues with the nightly package builds, but I'll let you know once they are fixed.

Marinho95 commented 3 years ago

Allright, thanks!

Marinho95 commented 3 years ago

I tried building the plusbuild with the Clarius SDK myself. I followed the instructions, but during the build process in visual studios (2015) it resulted in the following errors:

CMake Error at src/CMakeLists.txt:3 (FIND_PACKAGE): Could not find a package configuration file provided by "VTK" with any of the following names:

VTKConfig.cmake vtk-config.cmake

Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!

And

CMake Error at CMakeLists.txt:8 (FIND_PACKAGE): Could not find a package configuration file provided by "PlusLib" with any of the following names:

PlusLibConfig.cmake pluslib-config.cmake

Add the installation prefix of "PlusLib" to CMAKE_PREFIX_PATH or set "PlusLib_DIR" to a directory containing one of the above files. If "PlusLib" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!

I'm still a beginner in the whole building process, but do you know how to fix this error?

adamrankin commented 3 years ago

My first guess is that the build of VTK failed. Does the folder vtk-bin exist? If so, is there a VTK.sln inside? If so, can you open it and build that solution to see if it succeeds?

Marinho95 commented 3 years ago

It had something to do with the installed Qt. I had an old version, so I deleted it and installed Qt 5.9.9. In Cmake, I manually set the following path: C:\Qt\5.9.9\msvc2015_64\lib\cmake\Qt5.

Afterwards, the build of VTK succeeded. However, now I get the same error for ITKConfig.cmake and PlusLibConfig.cmake. How do I fix this problem?

Marinho95 commented 3 years ago

When I build the ITK.sln file I it did not fully succeed: ========== Build: 194 succeeded, 61 failed, 2 up-to-date, 3 skipped ==========

Several errors like these appeared throughout the build: 124>------ Build started: Project: ITKPolynomials, Configuration: Release x64 ------ 124> Building Custom Rule C:/D/PlusB-bin/itk/Modules/Numerics/Polynomials/src/CMakeLists.txt 122>LINK : fatal error LNK1181: cannot open input file 'C:\D\PlusB-bin\lib\Release\ITKCommon-5.1.lib'

adamrankin commented 3 years ago

You'll have to investigate why the ITK build is failing. What error messages do you get?

Marinho95 commented 3 years ago

There seem to be some files in C:\D\PlusB-bin\lib\Release folder that cannot be opened. I checked the folder and the files aren't there. So something must have gone wrong building these files.

Does it matter if I continued the previous build after reinstalling Qt? Or should I empty the whole PlusB-bin folder first?

adamrankin commented 3 years ago

Sometimes a clean build is the fix. Worth a shot. If ITKCommon failed to build, try building just that project and see why it's failing.

Marinho95 commented 3 years ago

When I try to build ITKCommon, I get the following error.

image

In CMake (3.18.4) it could not find the directory: Qt5_WebKitWidgets_DIR. I have no such directory in the installed Qt folder (5.9.9). Could that be causing the problem? Or should I use other versions of CMaker or Qt?

adamrankin commented 3 years ago

Webkit widgets isn't required I don't think. I would try a clean build and see where that gets you.

lassoan commented 3 years ago

Plus does not need webkit (and it was removed from Qt at around Qt-5.6).

Marinho95 commented 3 years ago

The problem was that the exception handler (EHsc) was not specified. I could enable EHsc manually for ITKcommon, which worked.

However, I don't understand how to enable it for the whole plusbuild. How could I do that?