Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Conan install error on QtCreator 12.0.0/12.0.1

Conan install error on QtCreator 12.0.0/12.0.1

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 2 Posters 562 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CalciferC Offline
    CalciferC Offline
    Calcifer
    wrote on last edited by
    #1

    I make a issue to conan here: https://github.com/conan-io/cmake-conan/issues/608,

    James, Conan co-founder, told me it is a problem of conan_provider.cmake.

    The file path conan_provider.cmake which QtCreator 12.0.1 use is C:\Qt\Tools\QtCreator\share\qtcreator\package-manager,
    upgrade conan_provider.cmake did not solve the problem.

    Thanks in advance.

    cristian-adamC 1 Reply Last reply
    0
    • cristian-adamC cristian-adam

      You can fix your Qt Creator 12.0.1 by modifying c:\Qt\qtcreator-12.0.1\share\qtcreator\package-manager\auto-setup.cmake and add:

        # Forward important CMake variables to the package manager in the toolchain file
        foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES)
          if (${fwd_var})
            file(APPEND "${toolchainFile}"
                "set(${fwd_var} ${${fwd_var}})\n")
          endif()
        endforeach()
      

      in the macro qtc_auto_setup_compiler_standard.

      This way the CMAKE_MSVC_RUNTIME_LIBRARY variable will be passed to the toolchain file that auto-setup.cmake uses to configure the Conan dependencies.

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #5

      Alternatively just download the auto-setup.cmake that will be part of Qt Creator 12.0.2.

      CalciferC 1 Reply Last reply
      1
      • CalciferC Calcifer

        I make a issue to conan here: https://github.com/conan-io/cmake-conan/issues/608,

        James, Conan co-founder, told me it is a problem of conan_provider.cmake.

        The file path conan_provider.cmake which QtCreator 12.0.1 use is C:\Qt\Tools\QtCreator\share\qtcreator\package-manager,
        upgrade conan_provider.cmake did not solve the problem.

        Thanks in advance.

        cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by cristian-adam
        #2

        Please do create a bug report at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512 for better tracking.

        Please attach the project as you would want it to work in Qt Creator.

        I'll have a look at the issue and see how I can fix it from the Qt Creator side.

        cristian-adamC 1 Reply Last reply
        0
        • cristian-adamC cristian-adam

          Please do create a bug report at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512 for better tracking.

          Please attach the project as you would want it to work in Qt Creator.

          I'll have a look at the issue and see how I can fix it from the Qt Creator side.

          cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #3

          I've created the bug report at https://bugreports.qt.io/browse/QTCREATORBUG-30169

          cristian-adamC 1 Reply Last reply
          0
          • cristian-adamC cristian-adam

            I've created the bug report at https://bugreports.qt.io/browse/QTCREATORBUG-30169

            cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote on last edited by
            #4

            You can fix your Qt Creator 12.0.1 by modifying c:\Qt\qtcreator-12.0.1\share\qtcreator\package-manager\auto-setup.cmake and add:

              # Forward important CMake variables to the package manager in the toolchain file
              foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES)
                if (${fwd_var})
                  file(APPEND "${toolchainFile}"
                      "set(${fwd_var} ${${fwd_var}})\n")
                endif()
              endforeach()
            

            in the macro qtc_auto_setup_compiler_standard.

            This way the CMAKE_MSVC_RUNTIME_LIBRARY variable will be passed to the toolchain file that auto-setup.cmake uses to configure the Conan dependencies.

            cristian-adamC 1 Reply Last reply
            1
            • cristian-adamC cristian-adam

              You can fix your Qt Creator 12.0.1 by modifying c:\Qt\qtcreator-12.0.1\share\qtcreator\package-manager\auto-setup.cmake and add:

                # Forward important CMake variables to the package manager in the toolchain file
                foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES)
                  if (${fwd_var})
                    file(APPEND "${toolchainFile}"
                        "set(${fwd_var} ${${fwd_var}})\n")
                  endif()
                endforeach()
              

              in the macro qtc_auto_setup_compiler_standard.

              This way the CMAKE_MSVC_RUNTIME_LIBRARY variable will be passed to the toolchain file that auto-setup.cmake uses to configure the Conan dependencies.

              cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #5

              Alternatively just download the auto-setup.cmake that will be part of Qt Creator 12.0.2.

              CalciferC 1 Reply Last reply
              1
              • cristian-adamC cristian-adam

                Alternatively just download the auto-setup.cmake that will be part of Qt Creator 12.0.2.

                CalciferC Offline
                CalciferC Offline
                Calcifer
                wrote on last edited by Calcifer
                #6

                Hi @cristian-adam, thanks for the kind help!

                1 Reply Last reply
                1
                • CalciferC Calcifer has marked this topic as solved on

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved