In win compile from command line
-
@jsulm said in In win compile from command line:
@Mihaill All you need to do after calling qmake is to call make or jom
I call jom after qmake, jom generate moc file, but not create .exe
-
@jsulm said in In win compile from command line:
errors
C:\Qt\5.15.2\msvc2019_64\lib\qtmaind.lib warning LNK4272: Library computer type "x64" conflicts with target computer type "x86"
@Mihaill You are building a 32bit app and linking to 64bit Qt. That won't work. If you want 32bit app use 32bit Qt. If you want 64bit app build from the "x64 Native Tools Command Prompt" of Visual Studio.
-
@Mihaill You are building a 32bit app and linking to 64bit Qt. That won't work. If you want 32bit app use 32bit Qt. If you want 64bit app build from the "x64 Native Tools Command Prompt" of Visual Studio.
@Chris-Kawa But i'm using 64bit qmake
C:/Qt/5.15.2/msvc2019_64/bin/qmake.exe C:\QtProjects\qsingleteleshell\BTeleShell-ui.pro
and after only
C:\Qt\Tools\QtCreator\bin\jom\jom.exe
Where is usinf 32bit?
-
@Chris-Kawa But i'm using 64bit qmake
C:/Qt/5.15.2/msvc2019_64/bin/qmake.exe C:\QtProjects\qsingleteleshell\BTeleShell-ui.pro
and after only
C:\Qt\Tools\QtCreator\bin\jom\jom.exe
Where is usinf 32bit?
@Mihaill said in In win compile from command line:
Where is usinf 32bit?
As @Chris-Kawa already said - your compiler is a compiler to create 32bit executables - setup the correct one.
-
@Chris-Kawa But i'm using 64bit qmake
C:/Qt/5.15.2/msvc2019_64/bin/qmake.exe C:\QtProjects\qsingleteleshell\BTeleShell-ui.pro
and after only
C:\Qt\Tools\QtCreator\bin\jom\jom.exe
Where is usinf 32bit?
-
@Mihaill "If you want 64bit app build from the "x64 Native Tools Command Prompt" of Visual Studio."
-
@Mihaill If you want to solve your problem you're gonna have to start doing what we say. "Developer Command Prompt for VS 2022" is the wrong one for your case. It sets up a 32 bit compiler.
It was already said by @Bonnie and me - to develop 64bit apps you need "x64 Native Tools Command Prompt".
Open your start menu, scroll down to Visual Studio, open "x64 Native Tools Command Prompt". Not "Developer Command Prompt", not "x64_x86 Cross Tools Command Prompt". Not any other. "x64 Native Tools Command Prompt" is the one you need
-
@Mihaill If you want to solve your problem you're gonna have to start doing what we say. "Developer Command Prompt for VS 2022" is the wrong one for your case. It sets up a 32 bit compiler.
It was already said by @Bonnie and me - to develop 64bit apps you need "x64 Native Tools Command Prompt".
Open your start menu, scroll down to Visual Studio, open "x64 Native Tools Command Prompt". Not "Developer Command Prompt", not "x64_x86 Cross Tools Command Prompt". Not any other. "x64 Native Tools Command Prompt" is the one you need
@Chris-Kawa I try using
In project mutch subproject and now builded only unit test. How builded all subprojects? -
@Chris-Kawa I try using
In project mutch subproject and now builded only unit test. How builded all subprojects? -