Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26688

qtcreator custom compiler not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • Qt Creator 6.0.0, Qt Creator 7.0.0, Qt Creator 8.0.1
    • None
    • Windows

    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

        1. QtCreator8.0.1-with-msvc2022-as-2019-custom-vcvars.mp4
          5.32 MB
        2. kits3.png
          kits3.png
          132 kB
        3. kits2.png
          kits2.png
          51 kB
        4. kits.png
          kits.png
          46 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              niqingliang2003 niqingliang2003
              niqingliang2003 niqingliang2003
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes