-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt6Config.cmake clash #1
Comments
Hi, Is this a x86_64 Windows or something else ? If x86_64, do you have the msvc c++ toolchain installed ? Usually done via the Visual Studio installer |
Yes it's x86_64 Windows Machine. I have mscv c++ toolchain installed. |
Can you remove the build directory and post a new paste ? |
Hello, thank you providing this template! However, I am experiencing the same issues as @kuriankattukaren. I have added the whole output to the attached text file: I have installed MSVC_64 toolchain via Qt Maintenance Tool, and added its \bin directory to my system PATH. The line in CMakeLists.txt, which is causing the problem is:
Any advice? Best regards, |
Hi, can you paste the full cmake configure step, the lines that include I'd also suggest we forget about vscode for the moment, and try to build on the command line, because if it doesn't work |
In blog-vscode-template\build-debug\CMakeFiles, I pasted the CMakeConfigureLog.yaml file here: Yes, it seems, there is a problem with how Qt and CMake interact. The only output in terminal I get, when running
is:
Thank you for supporting! Best. |
ah, do you have |
I'm running Qt6.6 on a Windows machine. I've added QT to my system path and has everything installed. However, I get an error from CMAKE
[proc] Executing command: cmake --version [proc] Executing command: cmake -E capabilities [variant] Loaded new set of variants [kit] Successfully loaded 21 kits from C:\Users\kurian_2\AppData\Local\CMakeTools\cmake-tools-kits.json [presetController] Successfully validated presets in C:\src\projects\qtest\blog-vscode-template\CMakePresets.json [presetController] Successfully validated presets in C:\src\projects\qtest\blog-vscode-template\CMakeUserPresets.json [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --version [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -E capabilities [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -SC:/src/projects/qtest/blog-vscode-template -BC:/src/projects/qtest/blog-vscode-template/build-debug-msvc -G Ninja [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -SC:/src/projects/qtest/blog-vscode-template -BC:/src/projects/qtest/blog-vscode-template/build-debug-msvc -G Ninja exited with code: 1 [main] Configuring project: blog-vscode-template [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -SC:/src/projects/qtest/blog-vscode-template -BC:/src/projects/qtest/blog-vscode-template/build-debug-msvc -G Ninja [cmake] CMake Error at CMakeLists.txt:12 (find_package): [cmake] Could not find a configuration file for package "QT" that is compatible [cmake] with requested version "". [cmake] [cmake] The following configuration files were considered but not accepted: [cmake] [cmake] C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.0 (64bit) [cmake] [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -SC:/src/projects/qtest/blog-vscode-template -BC:/src/projects/qtest/blog-vscode-template/build-debug-msvc -G Ninja exited with code: 1
I'm not able to debug the problem. Is there anything that I'm doing wrong?
Cheers,
Kurian
The text was updated successfully, but these errors were encountered: