Pages: 1 [2]
|
|
|
Author
|
Topic: Building an OS X Bundled App (Read 9733 times)
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
Here's the config log.
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o /tmp/build.1184.tmp.c: In function ‘main’: /tmp/build.1184.tmp.c:5: error: ‘strupr’ undeclared (first use in this function) /tmp/build.1184.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.1184.tmp.c:5: error: for each function it appears in.) /tmp/build.1184.tmp.c: In function ‘main’: /tmp/build.1184.tmp.c:5: error: ‘strupr’ undeclared (first use in this function) /tmp/build.1184.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.1184.tmp.c:5: error: for each function it appears in.) lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//cczH1NYN.out Failed program was: +++ START /tmp/build.1184.tmp.c #include <sys/types.h> #include <string.h>
int main(void) { (void) strupr; return 0; } +++ END /tmp/build.1184.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o /tmp/build.1184.tmp.c: In function ‘main’: /tmp/build.1184.tmp.c:5: error: ‘stricmp’ undeclared (first use in this function) /tmp/build.1184.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.1184.tmp.c:5: error: for each function it appears in.) /tmp/build.1184.tmp.c: In function ‘main’: /tmp/build.1184.tmp.c:5: error: ‘stricmp’ undeclared (first use in this function) /tmp/build.1184.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.1184.tmp.c:5: error: for each function it appears in.) lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccMEnmuN.out Failed program was: +++ START /tmp/build.1184.tmp.c #include <sys/types.h> #include <string.h>
int main(void) { (void) stricmp; return 0; } +++ END /tmp/build.1184.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o /tmp/build.1184.tmp.c:3:3: error: #error /tmp/build.1184.tmp.c:3:3: error: #error lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccElgHPZ.out Failed program was: +++ START /tmp/build.1184.tmp.c
#ifndef WIN32 # error #endif int main() { return 0; } +++ END /tmp/build.1184.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o /tmp/build.1184.tmp.c:3:3: error: #error /tmp/build.1184.tmp.c:3:3: error: #error lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccaWSVr3.out Failed program was: +++ START /tmp/build.1184.tmp.c
#ifndef __MINGW32__ # error #endif int main() { return 0; } +++ END /tmp/build.1184.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -framework OpenGL /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 -I/opt/local/include /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -L/opt/local/lib -lmikmod -framework CoreAudio /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture ld: warning in /opt/local/lib/libmikmod.dylib, file is not of required architecture
gcc -c -arch ppc -arch i386 -I/opt/local/include /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -L/opt/local/lib -lvorbisfile -lvorbis -lm -logg /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture ld: warning in /opt/local/lib/libvorbisfile.dylib, file is not of required architecture ld: warning in /opt/local/lib/libvorbis.dylib, file is not of required architecture ld: warning in /opt/local/lib/libogg.dylib, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.1184.tmp.c -o /tmp/build.1184.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -lz /tmp/build.1184.tmp.c.o -o /tmp/build.1184.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o /tmp/build.5782.tmp.c: In function ‘main’: /tmp/build.5782.tmp.c:5: error: ‘strupr’ undeclared (first use in this function) /tmp/build.5782.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.5782.tmp.c:5: error: for each function it appears in.) /tmp/build.5782.tmp.c: In function ‘main’: /tmp/build.5782.tmp.c:5: error: ‘strupr’ undeclared (first use in this function) /tmp/build.5782.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.5782.tmp.c:5: error: for each function it appears in.) lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccLWnEYp.out Failed program was: +++ START /tmp/build.5782.tmp.c #include <sys/types.h> #include <string.h>
int main(void) { (void) strupr; return 0; } +++ END /tmp/build.5782.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o /tmp/build.5782.tmp.c: In function ‘main’: /tmp/build.5782.tmp.c:5: error: ‘stricmp’ undeclared (first use in this function) /tmp/build.5782.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.5782.tmp.c:5: error: for each function it appears in.) /tmp/build.5782.tmp.c: In function ‘main’: /tmp/build.5782.tmp.c:5: error: ‘stricmp’ undeclared (first use in this function) /tmp/build.5782.tmp.c:5: error: (Each undeclared identifier is reported only once /tmp/build.5782.tmp.c:5: error: for each function it appears in.) lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccLbc5hr.out Failed program was: +++ START /tmp/build.5782.tmp.c #include <sys/types.h> #include <string.h>
int main(void) { (void) stricmp; return 0; } +++ END /tmp/build.5782.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o /tmp/build.5782.tmp.c:3:3: error: #error /tmp/build.5782.tmp.c:3:3: error: #error lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//ccIcpkLb.out Failed program was: +++ START /tmp/build.5782.tmp.c
#ifndef WIN32 # error #endif int main() { return 0; } +++ END /tmp/build.5782.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o /tmp/build.5782.tmp.c:3:3: error: #error /tmp/build.5782.tmp.c:3:3: error: #error lipo: can't figure out the architecture type of: /var/folders/MJ/MJvjeLdrGW4ooJhSVYS5bU+++TI/-Tmp-//cc0PB47D.out Failed program was: +++ START /tmp/build.5782.tmp.c
#ifndef __MINGW32__ # error #endif int main() { return 0; } +++ END /tmp/build.5782.tmp.c
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -framework OpenGL /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
gcc -c -arch ppc -arch i386 -I/opt/local/include /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -L/opt/local/lib -lmikmod -framework CoreAudio /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture ld: warning in /opt/local/lib/libmikmod.dylib, file is not of required architecture
gcc -c -arch ppc -arch i386 -I/opt/local/include /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -L/opt/local/lib -lvorbisfile -lvorbis -lm -logg /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture ld: warning in /opt/local/lib/libvorbisfile.dylib, file is not of required architecture ld: warning in /opt/local/lib/libvorbis.dylib, file is not of required architecture ld: warning in /opt/local/lib/libogg.dylib, file is not of required architecture
gcc -c -arch ppc -arch i386 /tmp/build.5782.tmp.c -o /tmp/build.5782.tmp.c.o gcc -arch ppc -arch i386 -framework SDL -framework Cocoa -lobjc -framework SDL_image -lz /tmp/build.5782.tmp.c.o -o /tmp/build.5782.tmp.out ld: warning in /Library/Frameworks//SDL.framework/SDL, file is not of required architecture ld: warning in /Library/Frameworks//SDL_image.framework/SDL_image, file is not of required architecture
|
|
|
Logged
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
Looks like SDL is compiled for only Intel and UQM seems to be expecting both PowerPC and Intel 386 code to be stored in the same files.
|
|
|
Logged
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
So, how do I change that expectation?
Change EXTRA_PLATFORM_GCC_FLAGS_COMPILE_FOO to not include ppc architectures? That smells like what I did earlier, and that didn't work. Should we include an implementation of stricmp, perhaps a simple one aliasing it to the symbol actually used on macs?
|
|
« Last Edit: May 16, 2008, 06:51:58 pm by Death 999 »
|
Logged
|
|
|
|
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
Wait.. I see why it failed - I forgot that CFLAGS step in the instructions.
Trying again... okay. That just got back to where we were before.
Getting the further debug info... Oh, crud. I can't include both CFLAGS values. When I try
CFLAGS="-I/Library/Frameworks/SDL.framework/Headers -save-temps" ./build.sh uqm config
it just doesn't find the SDL framework and dies right away. Is it not possible to put more than one CFLAG on a line?
Okay, I put them into the COMPILE_C and COMPILE_OBJC values, after -c and before -arch i386...
http://pastebin.com/m78492fd2
|
|
« Last Edit: May 19, 2008, 04:16:51 pm by Death 999 »
|
Logged
|
|
|
|
|
|
Pages: 1 [2]
|
|
|
|
|