OK, now I'm trying to build Qt against 10.6 sdk on the 10.7 machine. I've copied from XCode 4.3.3 the macosx10.6 sdk along 10.7 & 10.8 SDK's.
Then configuring with: ./configure -prefix $PWD/qtbase -opensource -debug-and-release -nomake examples -nomake demos -no-c++11 -sdk macosx10.6 -v It seems to accept the value of the argument -sdk (if I provide a wrong value, a warning is raised). However, when looking at the clang++ option run during configure step, it seems MacOSX10.8 sdk is used (see -isysroot argument): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -o qcore_mac.o -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -g -gdwarf-2 -fconstant-cfstrings -g -DQMAKE_OPENSOURCE_EDITION -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/library -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/generators -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/generators/unix -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/generators/win32 -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/generators/mac -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/qmake/generators/integrity -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/include -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/include/QtCore -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/include/QtCore/5.1.0 -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/include/QtCore/5.1.0/QtCore -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/src/corelib/global -DHAVE_QCONFIG_CPP -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/mkspecs/macx-clang -I/Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DPROEVALUATOR_DEBUG -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM /Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/src/corelib/kernel/qcore_mac.cpp and the configure step ends up with an error (here 10.6 sdk seems at work): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -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 stl stltest.o ld: library not found for -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [stl] Error 1 STL disabled. STL functionality check failed! Cannot build Qt with this STL library. Turn on verbose messaging (-v) to /Users/user/Tools/2ndqt/qt-everywhere-opensource-src-5.1.0-beta1/qtbase/configure to see the final report. *** qtbase/configure exited with non-zero status. 2013/6/6 Ziller Eike <[email protected]> > > > From: > [email protected][development-bounces+eike.ziller= > [email protected]] on behalf of Vincent [[email protected]] > > Sent: 06 June 2013 18:20 > > To: [email protected] > > Subject: [Development] Standard options & deploying on Mac OS X 10.6 > while building on 10.7 > > > > Hello, > > > > I would like to be able to deploy Qt applications on Mac OS X 10.6. The > development environment is on 10.7. > > > > I tried with Qt 5.0.2 and Qt 5.1.0 Beta 1 (downloaded binaries from > qt-project.org) and none of the compiled applications run on Mac OS X > 10.6. > > > > Then I tried to compile Qt 5.1.0 Beta 1 on 10.7, with the following > configure options: > > ./configure -prefix $PWD/qtbase -opensource -debug-and-release > -nomake examples -nomake demos > > > > Still, applications don't run on 10.6. Note that I've then compiled Qt > against 10.8 sdk. > > > > After discussing with Tor it seems that I need to provide to ./configure > the no-c+11 option. > > > > I would like to be sure that the Qt build I'll be compiling is as close > as possible as the standard Qt available through binary download at > qt-project.org. > > > > What is the full set of options for the configure script used by Qt Team > in order release binaries? > > > > Thanks, > > > > Cosmo > > > > > > Note: here are the runtime errors on 10.6: > > > > * Output of running on 10.6 an app built against Qt 5.0.2: > > > > dyld: Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey > > Referenced from: > /Users/<snip>/Desktop/myapp/myapp.app/Contents/MacOS/../Frameworks/QtWebKit.framework/Versions/5/QtWebKit > > Expected in: > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation > > in > /Users/<snip>/Desktop/myapp/myapp.app/Contents/MacOS/../Frameworks/QtWebKit.framework/Versions/5/QtWebKit > > Trace/BPT trap > > This is the weird way of QtWebKit to tell you that you need to build Qt > directly against a Mac 10.6 SDK if you want to > deploy Qt applications that use webkit on Mac OS X 10.6... > > > * And running on 10.6 an app built against 5.1.0 Beta 1 (Qt was > compiled on Mac OS X 10.7 with ./configure -prefix $PWD/qtbase -opensource > -debug-and-release -nomake examples -nomake demos): > > > > dyld: Library not loaded: /usr/lib/libc++.1.dylib > > Referenced from: > /Users/<snip>/Desktop/myapp/myapp.app/Contents/MacOS/../Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets > > Reason: image not found > > Trace/BPT trap > > > -- > Eike Ziller > Senior Software Engineer > > Digia Germany GmbH > Rudower Chaussee 13, D-12489 Berlin > Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht > Charlottenburg, HRB 144331 B, > Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius > >
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
