Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Installation and Deployment
    qmake build and run failed to add qt version
    2
    5
    2589
    Loading More Posts
    • 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
      DidaHarp last edited by DidaHarp

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • D
          DidaHarp @jsulm last edited by

          @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 Reply Quote 0
          • D
            DidaHarp @jsulm last edited by

            @jsulm Do I miss g++ installed?

            1 Reply Last reply Reply Quote 0
            • D
              DidaHarp @jsulm last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post