[Qt-interest] Changing Qt version?
John Vilburn
john at ohanasoftware.com
Thu Apr 15 03:51:51 CEST 2010
Thanks Aaron, but there is no Tools menu in Qt Creator on Mac, but there is Preferences, which has a Qt4 page. On that page I added a path for the Qt4.7 qmake. I even replaced the qmake that PATH pointed to in /usr/bin with the 4.7 qmake.
I had done all of that before my first email. But I just realized that I had not copied the frameworks into my /Library directory. And I see that make install did not do that for me. So I have now copied the 4.7 frameworks into /Library, replacing the 4.6 frameworks that were there. In the process I noticed a /usr/local/Qt4.7/lib/pkgconfig directory which contains .pc files for each framework. Does anyone here know how the pkgconfig files are used?
Here is the contents of the QtCore.pc file, which looks a lot like information that will be essential for the build:
prefix=/usr/local/Qt4.7
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/QtCore
qt_config=lex yacc warn_on uic resources sdk rez release ReleaseBuild Release build_pass qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl exceptions no_mocdepend stl qt_framework x86_64 build_all shared dll largefile stl precompile_header mmx 3dnow sse sse2 x86_64 def_files_disabled absolute_library_soname dylib create_prl link_prl depend_includepath QTDIR_build release ReleaseBuild Release build_pass qt warn_on depend_includepath qmake_cache target_qt debug_and_release hide_symbols lib_bundle qt_no_framework_direct_includes qt_framework explicitlib create_libtool create_pc explicitlib release ReleaseBuild Release build_pass objective_c x86_64 no_autoqmake moc thread shared dll
moc_location=/usr/local/Qt4.7/bin/moc
uic_location=/usr/local/Qt4.7/bin/uic
Name: Qtcore
Description: Qtcore Library
Version: 4.7.0
Libs: -F${libdir} -framework QtCore
Libs.private: -L/usr/local/Qt4.7/lib -lz -lm -framework ApplicationServices
Cflags: -DQT_SHARED -I/usr/local/Qt4.7/include -I${includedir}
On Apr 14, 2010, at 3:02 PM, Aaron Lewis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tools -> Options -> Qt4
>
> Add path of qmake for Qt4.7.
>
> On 04/15/2010 08:42 AM, John Vilburn wrote:
>> I have been using Qt 4.6, but I want to try Qt 4.7. I am running on Mac Snow Leopard. So I did a git clone of 4.7 and a git branch, then did configure, then make, then make install. The install path was set for /usr/local/Qt4.7. That all went smoothly. I opened Qt Creator and chose my project. I went to Qt Creator Preferences and added the Qt 4.7 version. Then from the Build menu I ran qmake, then a rebuild all. In the compile output window I can see that it is still referencing /usr/local/Qt4.6. What am I missing?
>>
>> Thank you,
>> John
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> - --
> Best Regards,
> Aaron Lewis - PGP: 0x4A6D32A0
> FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
> irc: A4r0n on freenode
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkvGZYoACgkQvf41sEptMqBOuACgiIauuxlSnqNLU2L3f/j4onEE
> fiYAnROJdSV/ihuB7aNSKYMx8hEB21ki
> =N1Wt
> -----END PGP SIGNATURE-----
More information about the Qt-interest-old
mailing list