Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. I cannot add qmake to QtVersions in Tool->Build and Run
QtWS25 Last Chance

I cannot add qmake to QtVersions in Tool->Build and Run

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qmakebuild and runfailed to addqt version
5 Posts 2 Posters 3.4k 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.
  • D Offline
    D Offline
    DidaHarp
    wrote on 2 Feb 2016, 03:35 last edited by DidaHarp 2 Feb 2016, 03:43
    #1

    I have Qt installed on my FreeBsd just now. Everything goes well, except I CANNOT build even one "Hello World" project! It says I have no valid kits. Then I open Tools->Option..->Build & Run->Qt Versions, and I choose "Add" trying to add one qmake manually. However, after I enter folder "/usr/local/bin/" and choose "qmake", it returns me an error dialog, which says "Qmake not executable: The qmake executable /usr/local/bin/qmake could not be added:". I am confused that I have the newest qmake installed as "/usr/local/bin/qmake" using "pkg install qmake". Everything is set correctly except qmake. The compiler is Clang, debugger is GDB, cmake is also OK, and, I have to tell you that, the above are all auto-detected and performed well. What's wrong with qmake?
    So, what should i do now with qmake?
    Anyone help?

    1 Reply Last reply
    0
    • J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 2 Feb 2016, 05:46 last edited by
      #2

      What happens if you try to execute qmake on the command line?
      What does "file /usr/local/bin/qmake" say?

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

      D 3 Replies Last reply 2 Feb 2016, 06:18
      0
      • J jsulm
        2 Feb 2016, 05:46

        What happens if you try to execute qmake on the command line?
        What does "file /usr/local/bin/qmake" say?

        D Offline
        D Offline
        DidaHarp
        wrote on 2 Feb 2016, 06:18 last edited by
        #3

        @jsulm Well, when I try to qmake a project, the result is :
        $qmake lumos.pro
        QMAKESPEC has not been set, so configuration cannot be deduced.
        Error processing project file: /usr/home/albus/Downloads/lumos/lumos.pro

        1 Reply Last reply
        0
        • J jsulm
          2 Feb 2016, 05:46

          What happens if you try to execute qmake on the command line?
          What does "file /usr/local/bin/qmake" say?

          D Offline
          D Offline
          DidaHarp
          wrote on 2 Feb 2016, 06:24 last edited by
          #4

          @jsulm Do I miss g++ installed?

          1 Reply Last reply
          0
          • J jsulm
            2 Feb 2016, 05:46

            What happens if you try to execute qmake on the command line?
            What does "file /usr/local/bin/qmake" say?

            D Offline
            D Offline
            DidaHarp
            wrote on 2 Feb 2016, 06:36 last edited by
            #5

            @jsulm It has no business with g++. g++ is installed, and even though not, I have clang++ still.

            1 Reply Last reply
            0

            5/5

            2 Feb 2016, 06:36

            • Login

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