Opened 16 years ago
Closed 15 years ago
#7705 closed patch (fixed)
OSX 10.6 Compilation Fixes
Reported by: | Owned by: | Nigel | |
---|---|---|---|
Priority: | minor | Milestone: | 0.23 |
Component: | Ports - OSX | Version: | unknown |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
The attached patch makes updates necessary to aid compilation on OS X 10.6 with Xcode 3.2.1. The main changes are:
- Upgrade to Qt 4.6 (the first version of Qt to officially support OS X 10.6)
- Upgrade to MySQL 5.1 (as the current source download is no longer available)
- This also improves the configuration of MySQL within Qt. The previous method of forcing the MySQL include paths breaks Qt 4.6 compilation. MySQL 5.1 contains a "
plugin.h
" file, having the MySQL include path appear first in the list of includes whilst compiling Qt causes this file to mask the "src/3rdparty/webkit/WebCore/plugins/Plugin.h
" file that is part of the Qt source code resulting in compiler errors.
- This also improves the configuration of MySQL within Qt. The previous method of forcing the MySQL include paths breaks Qt 4.6 compilation. MySQL 5.1 contains a "
- Force 32-bit compilation
- Xcode compilers generate 64-bit binaries by default on 64-bit installs of OS X 10.6, which are the default on Macs with Intel Core2 CPUs. The MythTV code needs porting from the Carbon APIs to the Cocoa APIs in order to be compatible with 64-bit builds.
As with previous OS X 10.6 support some lines within "osx-packager.pl
" require uncommenting in order to enable the support.
Attachments (3)
Change History (10)
Changed 16 years ago by
Attachment: | OSX_10.6_packaging_22953.patch added |
---|
Changed 16 years ago by
Attachment: | OSX_10.6_mythtv_22953.patch added |
---|
Changed 16 years ago by
Attachment: | OSX_10.6_mythplugins_22953.patch added |
---|
comment:2 Changed 16 years ago by
Replying to nigel:
I have had limited success with Qt 4.6 (either beta1 or the final). There seems to be some errors with the installed headers?
That problem should be overcome by the modification to "mythtv/configure
" (contained within "OSX_10.6_mythtv_22953.patch
"?
I believe that the problem is caused by an incorrect use of include paths. The QtWebKit? headers should not be included by specifying the top level Qt include directory and using "#include <QtWebKit/QtWebkit>
", but instead each Qt modules' include directory should be passed to the compiler as separate include paths and "#include <QtWebKit>
" should be used instead.
Fixing the QtWebKit? compilation test in "mythtv/configure
" allows me to compile everything using Qt 4.6 final (using the attached patches).
comment:3 Changed 16 years ago by
comment:4 Changed 15 years ago by
comment:5 Changed 15 years ago by
comment:6 Changed 15 years ago by
Milestone: | unknown → 0.23 |
---|
I have had limited success with Qt 4.6 (either beta1 or the final). There seems to be some errors with the installed headers? e.g. this compile test from mythtv configure:
I can add a copy rule to install these, but it doesn't bode well for the reliability of 4.6.0 ?