First post, by CommanderKeen
CommanderKeen
Offline
Rank
Newbie
Hi everyone,
I'm running OS X 10.5 PowerPC, how do I cross-compile for 10.4 Intel?
Some time ago I read something about this but I don't know how to use it.
CFLAGS="\"-isysroot /Developer/SDKs/MacOSX10.4u.sdk\""
LDFLAGS="\"-syslibroot /Developer/SDKs/MacOSX10.4u.sdk\""
The SDKs are there though.
And this gives me an error while building SDL
./configure --host=i386-apple-darwin8.0.0 --target=i386-apple-darwin8.0.0
make
(i386=Intel powerpc=PowerPC, darwin8.0.0=OS X 10.4, darwin9.0.0=OS X 10.5)
The error while compiling SDL like that is:
ld warning: in build/.libs/mmx_main.o, file is not of required architecture
ld warning: in build/.libs/mmxp2_32.o, file is not of required architecture
ld warning: in build/.libs/x86_main.o, file is not of required architecture
ld warning: in build/.libs/x86p_16.o, file is not of required architecture
ld warning: in build/.libs/x86p_32.o, file is not of required architecture
Undefined symbols:
"_ConvertX86p32_24BGR888", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertMMXpII32_16BGR555", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertMMXpII32_16BGR565", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertMMX", referenced from:
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86", referenced from:
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_4 in SDL_blit_N.o
_normal_blit_2 in SDL_blit_N.o
_normal_blit_2 in SDL_blit_N.o
_normal_blit_2 in SDL_blit_N.o
_ConvertX86$non_lazy_ptr in SDL_blit_N.o
"_ConvertX86p32_32BGR888", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_32RGBA888", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_32BGRA888", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p16_16RGB555", referenced from:
_normal_blit_2 in SDL_blit_N.o
"_ConvertX86p32_16RGB555", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_16RGB565", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_24RGB888", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertMMXpII32_16RGB555", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertMMXpII32_16RGB565", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_8RGB332", referenced from:
_ConvertX86p32_8RGB332$non_lazy_ptr in SDL_blit_N.o
"_ConvertX86p16_16BGR555", referenced from:
_normal_blit_2 in SDL_blit_N.o
"_ConvertX86p16_16BGR565", referenced from:
_normal_blit_2 in SDL_blit_N.o
"_ConvertX86p32_16BGR555", referenced from:
_normal_blit_4 in SDL_blit_N.o
"_ConvertX86p32_16BGR565", referenced from:
_normal_blit_4 in SDL_blit_N.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1
logout
Thanks in advance.