I’m a student who is in internship by distance. So in my internship, I need to use Qt with CMake, MITK , VTK. I just know Qt, I don’t know the others.
I need to use the project of my teacher and add some code in this project. But I can’t compile the project (during 25 days I try). I have many errors but I think I am going to create others topics because I prefer focus on one error at time and maybe it is going to unlock the others errors.
I have a problem with MITK and Qt, so I decide to create a new folder and just try to run install MITK from the website, compile and execute to see if MITK work on my computer.
But it fails !
After a long compilation I have a problem “dunno about this gcc”.
I’m going to explain how I install first :
- I go on the website of MITK, I click on download and I choose the first source on the MITK Release 2018.04.2 .
- Then I extract the file and with a terminal I enter in the file and do this command :
cmake-gui
- In this graphic application I choose the source file so :
/home/amir/Téléchargements/MITK-v2018.04.2-src
- And the build file :
/home/amir/Téléchargements/Build
(it is an empty file at this moment)There is many things at the middle of the graphic application. - I press configure then configure again then generate.
- Now, in the build file there are many things and a Makefile.
- I enter in the build file and I write make in the terminal.
- The compilation begins but it fails at this time :
from:/home/amir/Téléchargements/Build/ep/src/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_deprecated.cxx:4:
/home/amir/Téléchargements/Build/ep/src/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h:101:4: error: #error "Dunno about this gcc" 101 | # error "Dunno about this gcc" | ^~~~~make[5]: *** [Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/build.make:63: Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/vcl_deprecated.cxx.o] Error 1make[4]: *** [CMakeFiles/Makefile2:5298: Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/all] Error 2make[3]: *** [Makefile:152: all] Error 2make[2]: *** [CMakeFiles/ITK.dir/build.make:117: ep/src/ITK-stamp/ITK-build] Error 2make[1]: *** [CMakeFiles/Makefile2:531: CMakeFiles/ITK.dir/all] Error 2make: *** [Makefile:130: all] Error 2
I find some topics where people had the same problem but I don’t understand the explication. My goal is that MITK need to function in my computer then I can focus on other problems step by step.
For the version I use :
- Ubuntu 20 (the latest version)
- Gcc 8.4
- G++ 9.3
- nvcc: NVIDIA ® Cuda compiler driver
- Copyright © 2005-2019 NVIDIA Corporation
- Built on Sun_Jul_28_19:07:16_PDT_2019
- Cuda compilation tools, release 10.1, V10.1.243
I’m a student and totally new with CMake, MITK, VTK etc. and I need your help because I ask to my teacher (particularly for the others and problem and she don’t found) and I try with many friends to debug the compilation but all of us failed.