Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake does not recognize linux-g++ specification on openSuse 12.1
Forum Updated to NodeBB v4.3 + New Features

Qmake does not recognize linux-g++ specification on openSuse 12.1

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 2.8k 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.
  • P Offline
    P Offline
    presencia
    wrote on last edited by
    #1

    Hi everyone,

    I am new to qmake, so maybe I am missing something simple here, but searching the web didn't help me.

    I am working on a Qt project set up to be built using qmake. It has a .pro file which contains a block like
    @ linux-g++ { ... }
    @

    for settings specific to a linux/g++ environment.

    I tried running qmake on that file from two different systems which should both conform to the linux-g++ specification. One went fine, the other didn't:

    1. Everything looks good on a fresh install of Fedora 17 with Qt and g++ installed. I have to invoke "qmake-qt4" for that and it builds the Makefile as expected. "qmake-qt4 -v" prints
      "QMake version 2.01a
      Using Qt version 4.8.2 in /usr/lib64"
    2. The linux-g++ block is not entered by qmake on a machine with a fresh install of openSuse 12.1. Qt and g++ are installed here, too. "qmake -v prints"
      "QMake version 2.01a
      Using Qt version 4.7.4 in /usr/lib64"

    On the openSuse setup, when I just run "qmake" it just creates the Makefile ignoring the stuff inside the linux-g++ block. There is no warning on the command line. In order to see what the problem is, I ran "qmake -d 2>&1" which prints out many lines, including the line
    "DEBUG 1: Project Parser: <path_to_my_dot_pro_file>:84 : Test (linux-g++) failed."

    I tried to find out how qmake finds out about the current system. According to the "documentation":http://qt-project.org/doc/qt-4.8/qmake-advanced-usage.html, the QMAKESPEC environment variable should contain this information. However, on both of my systems "echo $QMAKESPEC" prints nothing and "qmake(-qt4) -query QMAKESPEC" prints "∗∗Unknown∗∗". The debugging output of qmake -d prints (among other lines)
    "DEBUG 1: QMAKESPEC conf: reading /usr/lib64/qt4/mkspecs/default/qmake.conf" on Fedora and
    "DEBUG 1: QMAKESPEC conf: reading /usr/share/qt4//mkspecs/default/qmake.conf" on openSuse.
    On Fedora, the "default" folder is a symbolic link to "linux-g++" and on openSuse it points to "linux-g++-64". Both lookes fine to me.

    So my question is: Why does qmake not recognize the linux-g++ specification on openSuse when it does on Fedora? What am I missing? What can I try to find out?

    Any help would be appreciated. I will be happy to provide additional information if needed.

    EDIT:
    I am not out of patience but since no-one has answered yet, maybe you can help by telling me:

    • Am I in the correct forum here? Maybe I should post my problem in the "General and Desktop forum".

    • Does my post need to be improved? Maybe I made some formal mistake that keeps people from helping.

    • Should I file a bug report? Does this look like a bug in qmake or in openSuse?

    • What would you do in a situation like mine? What can I try? Where can I get help?

    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