Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, June 2007
Problems to build universal on intel


Message 1 in thread

Hi,

I just installed the Qt4.3.dms package on my Intel-Mac, but even the
tutorials can't be rebuilt for both ppc and i386, I only get Intel.

Any hints what I'm missing?



t1.pro now has  

CONFIG += qt warn_on app_bundle
CONFIG += x86 ppc

uwe@here:~/ > gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
--with-arch=pentium-m --with-tune=prescott --program-prefix=
--host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5250)


Maybe a ppc target is missing?


Best

Uwe

-- 
 [ signature omitted ] 

Message 2 in thread

On 6/28/07, Uwe Drechsel (@vym) <vym@xxxxxxxxxxxxx> wrote:
> Hi,
>
> I just installed the Qt4.3.dms package on my Intel-Mac, but even the
> tutorials can't be rebuilt for both ppc and i386, I only get Intel.

How do you know that?

> CONFIG += qt warn_on app_bundle
> CONFIG += x86 ppc

Looks ok. Works for me.

> uwe@here:~/ > gcc -v
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
> --with-arch=pentium-m --with-tune=prescott --program-prefix=
> --host=i686-apple-darwin8 --target=i686-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5250)

Check the binary with "file" command.
Mini:~/devel/test Robin$ file test.app/Contents/MacOS/test
test.app/Contents/MacOS/test: Mach-O universal binary with 2 architectures
test.app/Contents/MacOS/test (for architecture ppc):    Mach-O executable ppc
test.app/Contents/MacOS/test (for architecture i386):   Mach-O executable i386

When you test the compiler you need to add the arch file, like this:
gcc -v -arch ppc, gcc -v -arch i386

-- 
 [ signature omitted ]