Qt-interest Archive, April 2008
compiling on InetelMac for PPC
Message 1 in thread
Hi all,
can anyone here tell me if there is a way to compile a Qt-app on an IntelMac for a PPC ? At that state the PPC claims that its was not built for its archtitecture, which is of course right, however rather than moving sources to a PPC I'm wondering if all the job can be done on the IntelMac.
Please let me know,
thanks
-- A l e x
--
[ signature omitted ]
Message 2 in thread
Yes,
in order to build a universal binary of your Qt application on an
IntelMac, there are two things to consider: a) You need Qt as universal
binaries b) Tell qmake to build your application for both platforms
a) Should be done if you downloaded the binary Qt packages. If not,
build Qt universally. See: http://doc.trolltech.com/latest/install-mac.html
b) In your applications .pro file just add "x86 ppc" to the CONFIG
variable and rebuild. See:
http://doc.trolltech.com/latest/qmake-platform-notes.html#creating-universal-binaries
Good luck,
Alessandro
Alexander Carôt wrote:
> Hi all,
>
> can anyone here tell me if there is a way to compile a Qt-app on an IntelMac for a PPC ? At that state the PPC claims that its was not built for its archtitecture, which is of course right, however rather than moving sources to a PPC I'm wondering if all the job can be done on the IntelMac.
>
> Please let me know,
>
> thanks
>
> -- A l e x
--
[ signature omitted ]
Message 3 in thread
Hi Alessandro,
thanks for this info.
> a) Should be done if you downloaded the binary Qt packages. If not,
> build Qt universally. See:
> http://doc.trolltech.com/latest/install-mac.html
On my MacBookPro I still have a snapshot (Qt-4.3.0-snapshot-20070214) installed. Will it work with this as well ?
> b) In your applications .pro file just add "x86 ppc" to the CONFIG
> variable and rebuild. See:
> http://doc.trolltech.com/latest/qmake-platform-notes.html#creating-universal-binaries
Great ! In that context I am wondering if this might have any disadvantages for running it on the IntelMac or would this binary perform as if built explicitely for it ?
Thanks
-- A l e x
> Good luck,
> Alessandro
>
> Alexander Carôt wrote:
> > Hi all,
> >
> > can anyone here tell me if there is a way to compile a Qt-app on an
> IntelMac for a PPC ? At that state the PPC claims that its was not built for
> its archtitecture, which is of course right, however rather than moving
> sources to a PPC I'm wondering if all the job can be done on the IntelMac.
> >
> > Please let me know,
> >
> > thanks
> >
> > -- A l e x
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 4 in thread
On Tue, Apr 22, 2008 at 4:14 PM, "Alexander Carôt"
<alexander_carot@xxxxxxx> wrote:
> Hi Alessandro,
>
> thanks for this info.
>
> > a) Should be done if you downloaded the binary Qt packages. If not,
> > build Qt universally. See:
> > http://doc.trolltech.com/latest/install-mac.html
>
> On my MacBookPro I still have a snapshot (Qt-4.3.0-snapshot-20070214) installed. Will it work with this as well ?
>
> > b) In your applications .pro file just add "x86 ppc" to the CONFIG
> > variable and rebuild. See:
> > http://doc.trolltech.com/latest/qmake-platform-notes.html#creating-universal-binaries
>
> Great ! In that context I am wondering if this might have any disadvantages for running it on the IntelMac or would this binary perform as if built explicitely for it ?
"Universal binaries" built for both PPC and x86 OS X simply package
multiple binaries into a single file. This shouldn't affect
speed/optimization/performance at all.
--
[ signature omitted ]
Message 5 in thread
Alexander Carôt wrote:
>> a) Should be done if you downloaded the binary Qt packages. If not,
>> build Qt universally. See:
>> http://doc.trolltech.com/latest/install-mac.html
>
> On my MacBookPro I still have a snapshot (Qt-4.3.0-snapshot-20070214) installed. Will it work with this as well ?
It will for sure work with Qt 4.3.x, most probably also for your
snapshot. But I suggest to uninstall it and use Qt 4.3.4 (or 4.4.0),
since you want to rebuild Qt anyway.
>> b) In your applications .pro file just add "x86 ppc" to the CONFIG
>> variable and rebuild. See:
>> http://doc.trolltech.com/latest/qmake-platform-notes.html#creating-universal-binaries
>
> Great ! In that context I am wondering if this might have any disadvantages for running it on the IntelMac or would this binary perform as if built explicitely for it ?
Andrews answer says it all. The only disadvantage could be the doubled
binary size.
Good luck,
Alessandro
--
[ signature omitted ]