Hi Enric,

we recommend to base new developments on the master branch resp. one of the 
snapshots/... tags. Note that we also aim to release v2021.01 next week.


That said, if you still want to base your developments on v2018.04.2, please 
use the releases/2018-04 branch (only available from 
https://phabricator.mitk.org/source/mitk.git), which contains quite some 
compiler and CMake compatibility updates.


In general, CMake projects in Visual Studio will often give you errors like 
"cmd.exe exited with code 1", as many of the build commands are actually calls 
to cmake through cmd.exe. Switch from the error window to the output window by 
double-clicking on the error line and from there scroll up, to see the actual 
output from that cmd.exe session, which will always contain the actual error 
message you are looking for.


Best,

Stefan



________________________________
Von: PERERA I BEL, ENRIC <enric.per...@upf.edu>
Gesendet: Freitag, 29. Januar 2021 11:57
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Compiling MITK in Windows 10

Dear MITK community,

I am trying to compile MITK 2018.04.2 in windows. I have followed the steps in 
the developer 
tutorial<https://www.mitk.org/wiki/Developer_Tutorial_2018.04_(Microsoft_Windows)#Configuring_the_MITK_Project_Template>
 but I am running to an error when compiling (Release, x64, VS 2017, cmake 
3.10.1, QT 5.12.2), and I can't seem to find its origin:

C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5):
 error MSB6006: "cmd.exe" exited with code 1. But I can't seem to find what its 
origin is

Also, in the CMakeError.log file this error pops up:
cl : Command line error D8021: invalid numeric argument '/Wl,-rpath' 
[C:\MITK-superbuild-PT\CMakeFiles\CMakeTmp\cmTC_a4b65.vcxproj]

I don't know if the two errors are the same, but I don't know how to solve it. 
I attach the build log of VS2017 where the error pops, as well as the CMAKE 
output and error logs.

Any idea of what might be going on?

Best,

Enric Perera
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to