Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qmake come with Qt5.1.0 (beta) has some problem(bug?)
Qt 6.12 LTS is out! See what's new in the release blog

Qmake come with Qt5.1.0 (beta) has some problem(bug?)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    os : mac osx 10.8.3
    compiler : gcc4.8

    The makefiles generated by the qmake of Qt5.0.2 and Qt5.1.0 have some differents
    It will always select the default compiler come with XCode(if I interpret the makefile correctly)

    The make file generated by qmake come with Qt5.1.0 beta
    @
    ####### Compiler, tools and options

    CC = /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
    CXX = /Applications/Xcode.app/Contents/Developer/usr/bin/g++
    .......
    LINK = /Applications/Xcode.app/Contents/Developer/usr/bin/g++

    ####### Output directory
    @

    The makefile come with Qt5.0.2
    @
    ####### Compiler, tools and options

    CC = gcc
    CXX = g++
    .......
    LINK = g++

    ####### Output directory
    @

    There are some problems if the compiler switch to clang too
    The compiler will always be the default compiler come with XCode
    And the version numbers also has some problem

    In Qt5.0.2, if I want to use the features of c++11
    I simply add these lines in my .pro file

    @
    mac{
    LIBS += -stdlib=libc++

    QMAKE_CXXFLAGS += -stdlib=libc++
    QMAKE_CXXFLAGS += -std=c++11
    QMAKE_CXXFLAGS += -mmacosx-version-min=10.7
    QMAKE_LFLAGS += -mmacosx-version-min=10.7
    }
    @

    But it would not work with the qmake generated come with Qt5.1.0 beta

    Edit :
    If I change the .pro to
    @
    mac{
    CONFIG += c++11
    }
    @

    The codes could compile with Qt5.1.0, but this do not work for gcc

    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
    • Unsolved