[Development] OSX: building against the 10.6 SDK with Qt 5.1?

Josh Faust jfaust at suitabletech.com
Tue Apr 2 21:51:54 CEST 2013


Actually, this seems to go beyond just using a custom SDK path. If I place
the 10.6 SDK alongside the others inside the Xcode application folder and
configure with:
./configure -developer-build -release -opensource -confirm-license -shared
-nomake examples -nomake demos -nomake docs -no-c++11 -platform macx-g++
-sdk macosx10.6

It fails with:

Determining architecture... ()
/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c -pipe -g
-gdwarf-2 -Wall -W -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
-mmacosx-version-min=10.6 -fPIE  -I../../mkspecs/macx-g++ -I. -o arch.o
arch.cpp
/Applications/Xcode.app/Contents/Developer/usr/bin/g++
-headerpad_max_install_names
-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
-mmacosx-version-min=10.6 -o arch arch.o
ld: library not found for -lstdc++
collect2: ld returned 1 exit status
make: *** [arch] Error 1
Unable to determine architecture!

Before I file a ticket, is building against 10.6 supposed to work with 5.1?

Josh

On Tue, Apr 2, 2013 at 12:33 PM, Josh Faust <jfaust at suitabletech.com> wrote:

> Previously it was possible to just pass '-sdk <path>' to the configure
> script. That's no longer possible, due to changes in how the configure
> script works. Is there any way to build against a custom SDK in 5.1?
>
> Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130402/1a91d57a/attachment.html>


More information about the Development mailing list