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. Qmake and Make in wrong directories?
Forum Updated to NodeBB v4.3 + New Features

Qmake and Make in wrong directories?

Scheduled Pinned Locked Moved General and Desktop
qmakemakeqtcreatorerror
5 Posts 2 Posters 2.9k Views 1 Watching
  • 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
    devbrs
    wrote on last edited by devbrs
    #1

    I'm on OSX
    When I do "qmake -v", I get:
    QMake version 2.01a
    Using Qt version 4.7.4 in /opt/anaconda1anaconda2anaconda3/lib

    This directory doesn't even exist it seems...and I'm using QT 5.4.1
    When I do "which qmake", I get:
    /Users/***/anaconda/bin/qmake

    This DOES exist, but it's not the qmake that comes in the QT installed folder.

    So I have a folder with my project in it and I do run qmake on QT Creator, I get a make file in the folder, so I tried "make" in terminal and I get:

    /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile v2.pro
    make: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake: No such file or directory
    make: *** [Makefile] Error 1

    This directory indeed doesn't exist...

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      where is Qt 5.4.1 installed on OSX ? qmake exist in the bin directory where Qt is installed. You need to run the qmake with that path.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      D 1 Reply Last reply
      4
      • dheerendraD dheerendra

        where is Qt 5.4.1 installed on OSX ? qmake exist in the bin directory where Qt is installed. You need to run the qmake with that path.

        D Offline
        D Offline
        devbrs
        wrote on last edited by
        #3

        @dheerendra
        The qmake that is included in the installed QT folder is:

        /Users/***/Qt5.4.1/5.4/clang_64/bin/qmake

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          Ok. you should use /Users/***/Qt5.4.1/5.4/clang_64/bin/qmake sample.pro file to generate make files.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          D 1 Reply Last reply
          3
          • dheerendraD dheerendra

            Ok. you should use /Users/***/Qt5.4.1/5.4/clang_64/bin/qmake sample.pro file to generate make files.

            D Offline
            D Offline
            devbrs
            wrote on last edited by
            #5

            @dheerendra ok it seems to have worked, but when I do "make", I still get the error for make

            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