Hi,

when you configure CMake projects for the very first time, you must select a 
generator. The generator also defines the machine type, which in older CMake 
versions is specified right in the Visual Studio generator name and in later 
versions separately (generator platform) like Win32 or x64. We highly recommend 
and only support x64.

In Visual Studio make sure to select the x64 Solution Platform for the whole 
solution which is a combo box in the main toolbar.

Mixing x86/Win32 and x64 does not work.

Best,
Stefan

From: 李面面 [mailto:olor...@gmail.com]
Sent: Wednesday, October 16, 2019 5:20 AM
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] Fail on compiling MyProjcet-superbuild

Hello!
I'm using MitkPluginGenerator with command
MitkPluginGenerator -plugin-symbolic-name org.mycompany.myplugin -view-name "My 
View" -project-name "MyProject" -project-app-name "MyApp" -o E:\MITKxm\bianyi

and I ran the MyProject-superbuild.sln, and tried to compile the project. 
(visual studio 2017)

But heres an error occurred
fatal error LNK1112: module machine type 'x64' conflicts with target machine 
type 'X86'. MyProject-Configure testCCompiler.obj

I tried to fix it from the method of changing Target Machine
But it doesn't work, cause the Target Machines path is 'Properties > 
Configuration Properties > Linker > Advanced > Target Machine'
but I cant find the 'Linker' Option in my superbuild project.

I don't know what to do then, could you please help me out?
thanks!

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

Reply via email to