Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
Qt Creator 6.0.0, Qt Creator 7.0.0, Qt Creator 8.0.1
-
None
Description
manual add msvc compiler not work.
I installed vs2022 (both v143 and v142 toolsets), qtcreator only detected v143,
I cloned c/c++ compiler from v143, rename to v142, and then add parameter "-vcvars_ver=14.2" in the textinput right of 'amd64' combobox.
and then create new kits using v142 toolset.
but when cmake using new kits, it still use v143 toolset.
and then I tried to create custom bat from vcvarsall.bat, and fill all needed parameters in that bat.
the new bat can work.
following is official vcvarsall.bat's output:
Running D:\develop\qt\Tools\CMake_64\bin\cmake.exe -S D:/repo/np100/product/np100 -B D:/repo/np100/product/build-np100-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug in D:\repo\np100\product\build-np100-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug.
devEnvPath: use passin value D:/develop
– OpenCV ARCH: x64
– OpenCV RUNTIME:
– OpenCV STATIC: OFF
CMake Warning at D:/develop/installed/opencv-4.5.2-vc14_vc15/OpenCVConfig.cmake:176 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
D:/repo/np100/scripts/find_packages.cmake:36 (find_package)
CMakeLists.txt:9 (include)
CMake Error at D:/repo/np100/scripts/find_packages.cmake:36 (find_package):
Found package configuration file:
D:/develop/installed/opencv-4.5.2-vc14_vc15/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
Call Stack (most recent call first):
CMakeLists.txt:9 (include)
Attachments
Issue Links
- relates to
-
QTCREATORBUG-28315 Not all Visual C++ installations are taken into consideration as toolchains
- Closed