SDL et xcode

SDL et xcode - C - Programmation

Marsh Posté le 14-05-2010 à 11:04:56    

Bonjour,  
 
je viens d'installer la SDL pour xcode et j'ai tenté de compiler le petit exemple intégré et je comprends pas vraiment ce qu'i se passe j'ai pourtant suivi les tutos d'installation et ça donne ça:  
 
 
Build Untitled of project Untitled with configuration Debug  
 
Ld build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/Untitled normal x86_64  
cd /Users/christophe/Documents/Untitled  
setenv MACOSX_DEPLOYMENT_TARGET 10.6  
/Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Library/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks -filelist /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/Untitled.LinkFileList -mmacosx-version-min=10.6 -framework SDL -framework Cocoa -o /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/Untitled  
 
ld: warning: directory '/Users/christophe/Library/Frameworks' following -F not found  
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/SDL.framework/SDL, missing required architecture x86_64 in file  
Undefined symbols:  
"_SDL_SetVideoMode", referenced from:  
_SDL_main in main.o  
"_SDL_PushEvent", referenced from:  
-[SDLApplication terminate:] in SDLMain.o  
"_SDL_GetError", referenced from:  
_SDL_main in main.o  
_SDL_main in main.o  
"_SDL_PollEvent", referenced from:  
_SDL_main in main.o  
"_SDL_Init", referenced from:  
_SDL_main in main.o  
"_SDL_Quit", referenced from:  
_SDL_main in main.o  
_SDL_main in main.o  
ld: symbol(s) not found  
collect2: ld returned 1 exit status  
 
Ld build/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled normal i386  
cd /Users/christophe/Documents/Untitled  
setenv MACOSX_DEPLOYMENT_TARGET 10.6  
/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Library/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks -filelist /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled.LinkFileList -mmacosx-version-min=10.6 -framework SDL -framework Cocoa -o /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled  
 
ld: warning: directory '/Users/christophe/Library/Frameworks' following -F not found  
 
Ld build/Untitled.build/Debug/Untitled.build/Objects-normal/ppc/Untitled normal ppc  
cd /Users/christophe/Documents/Untitled  
setenv MACOSX_DEPLOYMENT_TARGET 10.6  
/Developer/usr/bin/gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Documents/Untitled/build/Debug -F/Users/christophe/Library/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks -filelist /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/ppc/Untitled.LinkFileList -mmacosx-version-min=10.6 -framework SDL -framework Cocoa -o /Users/christophe/Documents/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/ppc/Untitled  
 
ld: warning: directory '/Users/christophe/Library/Frameworks' following -F not found  
 
 
merci de votre aide  

Reply

Marsh Posté le 14-05-2010 à 11:04:56   

Reply

Marsh Posté le 14-05-2010 à 17:33:25    

Bon, j'ai finalement trouvé la solution je la met au cas ou quelqu'un rencontre les mêmes soucis, comme je suis en 64 bits il fallait régler dans "project" "edit project setting" "32 bit universal" dans "architectures"
;)

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed