dboun / MultiPatientImageProcessing

Bulk processing of medical images
1 stars 1 forks source link

windows build failure #19

Closed ashishsingh18 closed 5 years ago

ashishsingh18 commented 5 years ago

Build failed on windows.

Windows 7, x64

image

ashishsingh18 commented 5 years ago

It is looking for .lib and these files are not created. It creates dlls.

dboun commented 5 years ago

Weird. This probably has something to do with the INTERFACE libraries I'm building.

I will turn all libraries into static for now, give me a second

ashishsingh18 commented 5 years ago

Still unable to build for Windows. Here's a screenshot.

image

ashishsingh18 commented 5 years ago

And another one...after taking a fresh clone in a shorter path. image

dboun commented 5 years ago

The build one is because of a interface library (a library of libraries) named MpipModules.

It is easily fixed, by linking the module-libraries (like MitkImageViewer) directly at src/CMakeLists instead of MpipModules.

dboun commented 5 years ago

Isn't the cmake one is because of cpack? Comment it out

dboun commented 5 years ago

Expanding on the build thing, add to the target link libraries in src/CMakeLists.txt only the ones you use: MitkImageViewer MitkDrawingTool GeodesicTraining

(The interface library thing should be fixed though, this is a temporary solution)

dboun commented 5 years ago

I think that is fixed