Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator doesn't open the CMake Wizard
Forum Updated to NodeBB v4.3 + New Features

QtCreator doesn't open the CMake Wizard

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.9k 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.
  • B Offline
    B Offline
    by-erik
    wrote on last edited by
    #1

    Hi,

    i'm trying to use QtCreator 4.1.0 to open an existing cmake project. When i open a CMakeLists.txt via File -> "Open File or Project..." the CMake Wizard doesn't appear. Instead of the CMake Wizard i get into "Configure Project" asking me to select a kit.

    The CMakeLists.txt is correct and works fine when using cmake directly.

    When i start qtcreator over a terminal i get the following message:
    "The command "/qmake" could not be started."

    Maybe this is the cause of the problem.

    qmake is already installed

    # find /usr -name qmake -type f
    /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    

    and executable

    # ls -lsa /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    3004 -rwxr-xr-x 1 root root 3075784 Mai 19  2015 /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    

    Maybe some can help me with this issue.

    Erik


    QtCreator 4.1.0
    Debian Jessie

    jsulmJ 1 Reply Last reply
    0
    • B by-erik

      Hi,

      i'm trying to use QtCreator 4.1.0 to open an existing cmake project. When i open a CMakeLists.txt via File -> "Open File or Project..." the CMake Wizard doesn't appear. Instead of the CMake Wizard i get into "Configure Project" asking me to select a kit.

      The CMakeLists.txt is correct and works fine when using cmake directly.

      When i start qtcreator over a terminal i get the following message:
      "The command "/qmake" could not be started."

      Maybe this is the cause of the problem.

      qmake is already installed

      # find /usr -name qmake -type f
      /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
      

      and executable

      # ls -lsa /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
      3004 -rwxr-xr-x 1 root root 3075784 Mai 19  2015 /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
      

      Maybe some can help me with this issue.

      Erik


      QtCreator 4.1.0
      Debian Jessie

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @by-erik qmake is not needed for CMake projects.
      What happens if you just continue with selecting a Kit?
      As far as I know CMake handling changed in QtCreator recently.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        by-erik
        wrote on last edited by
        #3

        Thanks for your reply.

        For a simple HelloWorld cmake project continue with selecting a Kit works fine. But a more complex cmake project ended up in a configuration loop.

        You have changed variables that require your cache to be deleted.
        Configure will be re-run and you may have to reset some variables.
        The following variables have changed:
        CMAKE_CXX_COMPILER= /usr/bin/g++
        

        In the meantime i found out a workaround.

        I did install QtCreator 3.2.1 and open initially the project with this version. QtCreator 4.1.0 converts the CMakeLists.txt.user file and works fine now.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          by-erik
          wrote on last edited by
          #4

          Just another workaround.

          • Tools -> Options...
            • Build & Run -> Kits
              • Select Desktop (default) and press Clone
              • In the cloned one Change 'CMake Configuration' and remove 'CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable}'

          Just for the record. My cmake project makes use of

          SET(CMAKE_CXX_COMPILER /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++)
          

          It seems that 'CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable}' overwrites CMAKE_CXX_COMPILER from the CMakeLists.txt file.

          1 Reply Last reply
          0

          • Login

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