<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qmake come with Qt5.1.0 (beta) has some problem(bug?)]]></title><description><![CDATA[<p dir="auto">os : mac osx 10.8.3<br />
compiler : gcc4.8</p>
<p dir="auto">The makefiles generated by the qmake of Qt5.0.2 and Qt5.1.0 have some differents<br />
It will always select the default compiler come with XCode(if I interpret the makefile correctly)</p>
<p dir="auto">The make file generated by qmake come with Qt5.1.0 beta<br />
@<br />
####### Compiler, tools and options</p>
<p dir="auto">CC            = /Applications/Xcode.app/Contents/Developer/usr/bin/gcc<br />
CXX           = /Applications/Xcode.app/Contents/Developer/usr/bin/g++<br />
.......<br />
LINK          = /Applications/Xcode.app/Contents/Developer/usr/bin/g++</p>
<p dir="auto">####### Output directory<br />
@</p>
<p dir="auto">The makefile come with Qt5.0.2<br />
@<br />
####### Compiler, tools and options</p>
<p dir="auto">CC            = gcc<br />
CXX           = g++<br />
.......<br />
LINK          = g++</p>
<p dir="auto">####### Output directory<br />
@</p>
<p dir="auto">There are some problems if the compiler switch to clang too<br />
The compiler will always be the default compiler come with XCode<br />
And the version numbers also has some problem</p>
<p dir="auto">In Qt5.0.2, if I want to use the features of c++11<br />
I simply add these lines in my .pro file</p>
<p dir="auto">@<br />
mac{<br />
LIBS += -stdlib=libc++</p>
<p dir="auto">QMAKE_CXXFLAGS += -stdlib=libc++<br />
QMAKE_CXXFLAGS += -std=c++11<br />
QMAKE_CXXFLAGS += -mmacosx-version-min=10.7<br />
QMAKE_LFLAGS += -mmacosx-version-min=10.7<br />
}<br />
@</p>
<p dir="auto">But it would not work with the qmake generated come with Qt5.1.0 beta</p>
<p dir="auto">Edit :<br />
If I change the .pro to<br />
@<br />
mac{<br />
CONFIG += c++11<br />
}<br />
@</p>
<p dir="auto">The codes could compile with Qt5.1.0, but this do not work for gcc</p>
]]></description><link>https://forum.qt.io/topic/27239/qmake-come-with-qt5-1-0-beta-has-some-problem-bug</link><generator>RSS for Node</generator><lastBuildDate>Fri, 23 Oct 2026 09:36:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/27239.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 May 2013 18:37:18 GMT</pubDate><ttl>60</ttl></channel></rss>