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. Qt5: qmake's mkspec path location

Qt5: qmake's mkspec path location

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 26.2k 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.
  • P Offline
    P Offline
    PhilHannent
    wrote on last edited by
    #1

    Hi,

    I've downloaded the Qt5 beta snapshot [1] on both Linux and Windows. In both cases the qmake is looking in a location which is specific to who I assume is a Qt developer:

    Could not find mkspecs for your QMAKESPEC(win32-msvc2010) after trying:
    D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-5.0.0/qtbase/mkspecs

    Now I have installed this Qt5 build in: C:\Qt\5.0.0-beta-snapshot\ and updated my path environment variable, qmake is definitely being used from where I expect it to be, however its not looking in the correct path for the mkspecs.

    The question is: How can I override where qmake looks for the QMAKESPEC's config files/folders?

    [1] http://qt-project.org/wiki/Qt-5-Binary-Installers

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Set the QTDIR environment variable.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PhilHannent
        wrote on last edited by
        #3

        [quote author="sierdzio" date="1341832904"]Set the QTDIR environment variable.[/quote]

        Thanks but that didn't help, is that the only way to set the QMAKESPEC folder in qmake?

        C:\git\elm.lynx>echo %QTDIR%
        C:\Qt\5.0.0\

        C:\git\elm.lynx>qmake diagram.pro
        Could not find mkspecs for your QMAKESPEC(win32-msvc2010) after trying:
        D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-
        5.0.0/qtbase/mkspecs
        Error processing project file: diagram.pro

        C:\git\elm.lynx>which qmake
        /cygdrive/c/Qt/5.0.0/bin/qmake

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @
          qmake -spec /path/to/qmakespec diagram.pro
          @

          (Z(:^

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Or compile Qt yourself to be 100% sure.

            (Z(:^

            1 Reply Last reply
            0
            • P Offline
              P Offline
              PhilHannent
              wrote on last edited by
              #6

              Thanks for your reply that worked. However I ran into another stumbling block right after that one. I'll compile from source I think...

              1 Reply Last reply
              0
              • F Offline
                F Offline
                franku
                wrote on last edited by
                #7

                Try to add an appropriate qt.conf file in that bin dir where your qmake is located.

                See: "qt.conf":http://doc.qt.nokia.com/4.7-snapshot/qt-conf.html.

                This, Jen, is the internet.

                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