[Qt-creator] Problem with CMake

Björn Schäpers qt-maillist at hazardy.de
Tue Nov 17 12:51:41 CET 2020


Thanks.

Regards,
Björn.

Am 17.11.2020 um 11:16 schrieb Cristian Adam:
> Hi,
>
> Just select the checkbox for "[x] Auto-create build directories" in Qt Creator's CMake settings.
>
> For more information about CMake Project configuration have a look at:
> https://www.qt.io/blog/cmake-project-configuration-in-qt-creator-4.13
>
> Cheers,
> Cristian.
>
>> -----Original Message-----
>> From: Qt-creator <qt-creator-bounces at qt-project.org> On Behalf Of Björn
>> Schäpers
>> Sent: Tuesday, 17 November 2020 11:00
>> To: Eike Ziller <Eike.Ziller at qt.io>
>> Cc: qt-creator at qt-project.org
>> Subject: Re: [Qt-creator] Problem with CMake
>>
>> Okay I think I have an answer:
>>
>> First Time choosing the Profile "Release with Debuginformation" for the Kit  >
>> Führe C:\msys64\mingw64\bin\cmake.exe -S C:/GIT/llvm-dev/llvm -B
>> C:/Users/bjs/AppData/Local/Temp/QtCreator-dyrKAq/qtc-cmake-AHjacTSx
>> "-GCodeBlocks - MinGW Makefiles" "-
>> DCMAKE_BUILD_TYPE:String=RelWithDebInfo"
>> "-DQT_QMAKE_EXECUTABLE:STRING=C:/GIT/corporate.git/Qt5-x64-
>> release/qtbase/bin/qmake.exe"
>> "-DCMAKE_PREFIX_PATH:STRING=C:/GIT/corporate.git/Qt5-x64-
>> release/qtbase"
>> "-DCMAKE_C_COMPILER:STRING=C:/msys64/mingw64/bin/gcc.exe"
>> "-DCMAKE_CXX_COMPILER:STRING=C:/msys64/mingw64/bin/g++.exe" in
>> C:\Users\bjs\AppData\Local\Temp\QtCreator-dyrKAq\qtc-cmake-AHjacTSx
>> aus.
>>
>> Setting LLVM_TARGETS_TO_BUILD from "all" to "X86" and
>> LLVM_ENABLE_PROJECTS from "" to "clang"
>> Pressing Apply
>>   > Führe C:\msys64\mingw64\bin\cmake.exe -S C:/GIT/llvm-dev/llvm -B
>> C:/Users/bjs/AppData/Local/Temp/QtCreator-dyrKAq/qtc-cmake-AHjacTSx
>> "-DLLVM_ENABLE_PROJECTS:STRING=clang" "-
>> DLLVM_TARGETS_TO_BUILD:STRING=X86" in
>> C:\Users\bjs\AppData\Local\Temp\QtCreator-dyrKAq\qtc-cmake-AHjacTSx
>> aus.
>>
>> Hitting Apply again
>>   > Führe C:\msys64\mingw64\bin\cmake.exe -S C:/GIT/llvm-dev/llvm -B
>> C:/Users/bjs/AppData/Local/Temp/QtCreator-dyrKAq/qtc-cmake-AHjacTSx
>> in C:\Users\bjs\AppData\Local\Temp\QtCreator-dyrKAq\qtc-cmake-
>> AHjacTSx aus.
>>
>> Apply is now disabled, Setting the Build Target to "Current Executable"
>> (which is FormatTests) Hitting CTRL+R  > Führe
>> C:\msys64\mingw64\bin\cmake.exe -S C:/GIT/llvm-dev/llvm -B C:/GIT/llvm-
>> dev/build-llvm-Desktop_64_Bit_Release-Release-mit-Debuginformationen
>> "-GCodeBlocks - MinGW Makefiles" "-
>> DCMAKE_BUILD_TYPE:String=RelWithDebInfo"
>> "-DQT_QMAKE_EXECUTABLE:STRING=C:/GIT/corporate.git/Qt5-x64-
>> release/qtbase/bin/qmake.exe"
>> "-DCMAKE_PREFIX_PATH:STRING=C:/GIT/corporate.git/Qt5-x64-
>> release/qtbase"
>> "-DCMAKE_C_COMPILER:STRING=C:/msys64/mingw64/bin/gcc.exe"
>> "-DCMAKE_CXX_COMPILER:STRING=C:/msys64/mingw64/bin/g++.exe" in
>> C:\GIT\llvm-dev\build-llvm-Desktop_64_Bit_Release-Release-mit-
>> Debuginformationen
>> aus.
>>
>> So it seems it chooses a different path.
>>
>> I aborted the build (CMakes run does finish either way), when I now
>> configure the project the CMake call is in the right path.
>>   > Führe C:\msys64\mingw64\bin\cmake.exe -S C:/GIT/llvm-dev/llvm -B
>> C:/GIT/llvm-dev/build-llvm-Desktop_64_Bit_Release-Release-mit-
>> Debuginformationen
>> "-DLLVM_ENABLE_PROJECTS:STRING=clang" "-
>> DLLVM_TARGETS_TO_BUILD:STRING=X86" in C:\GIT\llvm-dev\build-llvm-
>> Desktop_64_Bit_Release-Release-mit-Debuginformationen
>> aus.
>>
>> So the question is how to use the correct path in the beginning?
>>
>> Regards
>> Björn.
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> https://lists.qt-project.org/listinfo/qt-creator




More information about the Qt-creator mailing list