Skip to content
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

Open
kuriankattukaren opened this issue Oct 30, 2023 · 3 comments
Open

Qt6Config.cmake clash #1

kuriankattukaren opened this issue Oct 30, 2023 · 3 comments
Assignees

Comments

@kuriankattukaren
Copy link

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

@iamsergio iamsergio self-assigned this Oct 30, 2023
@iamsergio
Copy link
Collaborator

iamsergio commented Oct 30, 2023

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

@kuriankattukaren
Copy link
Author

Yes it's x86_64 Windows Machine. I have mscv c++ toolchain installed.

@iamsergio
Copy link
Collaborator

Can you remove the build directory and post a new paste ?
Yours seems clipped, I'd expect to see some lines saying "Detecting CXX compiler"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants