Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075929 Posts in 44152 Topics- by 36119 Members - Latest Member: Royalhandstudios

December 29, 2014, 04:03:23 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Installing SDL on Xcode
Pages: [1]
Print
Author Topic: Installing SDL on Xcode  (Read 852 times)
Kennitus
Level 0
**


View Profile Email
« on: September 18, 2013, 11:24:38 AM »

Hello, I've got the following error when I build my project:

objc[2993]: Class SDLTranslatorResponder is implemented in both /Library/Frameworks/SDL2.framework/Versions/A/SDL2 and /Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.

I've installed SDL and SDL2, the thing works, it open a window, but its all black even if I've put some pictures into SDL2_image.
Any ideas, or someone with the same problem? (I'm on Mac)

Thanks
Logged
ThemsAllTook
Moderator
Level 10
******


Alex Diener


View Profile WWW
« Reply #1 on: September 18, 2013, 11:34:33 AM »

Looks like you've linked to both SDL.framework and SDL2.framework. Surely you only want to link to one or the other?
Logged
Kennitus
Level 0
**


View Profile Email
« Reply #2 on: September 18, 2013, 01:48:42 PM »

Yeah but if I remove SDL.Framework it wont work anymore, same if I remove only SDL2.Framework only it won't work anymore, if it's one or the other it won't work. I've tried removing SDL.Framework from the linker and keep only SDL2.Framework since my SDL2.image is a "2", but I got other errors.
Logged
ThemsAllTook
Moderator
Level 10
******


Alex Diener


View Profile WWW
« Reply #3 on: September 18, 2013, 03:02:35 PM »

You'll have to be more specific. What goes wrong when you link to only SDL2.framework? I'm not an SDL user myself, but from what I can see on the website it's most definitely an either-or thing. You can't generally use two different versions of the same API simultaneously. Presumably some of your code is written in a way that depends on legacy APIs, and it'll work if you update it for SDL2? It's surprising that it even compiles and runs in any form at all with both frameworks linked.
Logged
Kennitus
Level 0
**


View Profile Email
« Reply #4 on: September 19, 2013, 12:18:47 AM »

Well I've followed a tutorial to install SDL.Framework BUT I needed SDL_image, which exist no more  (only SDL2_image available on the website) so I decided to install SDL2.Framework, but if I remove SDL.Framework and keep only the "2"s, It won't work. Do you know a link to SDL_image to download on Mac? Maybe it'll work.
Logged
Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW Email
« Reply #5 on: September 19, 2013, 08:34:34 AM »

Which version of Xcode are you using?
Logged

So long and thanks for all the pi
Kennitus
Level 0
**


View Profile Email
« Reply #6 on: September 19, 2013, 09:15:39 AM »

Version 4.6.3
Logged
Prinsessa
Level 10
*****


Ava Skoog


View Profile WWW Email
« Reply #7 on: September 20, 2013, 03:20:44 PM »

Looks like you've linked to both SDL.framework and SDL2.framework. Surely you only want to link to one or the other?
No, this is not a problem. I've been getting the same message all along and SDL is working just fine for me.

In my Xcode project, this isn't treated as an error, though. It's just written to the console when I start the program but has no impact at all.
Now that I think about it, though, I don't get the message any more. I don't know what I could have changed... I did move the frameworks around a bit, but any old SDL.framework was never among them either way. I've added -Wall and -Werror today, but those should just make errors more intense, if anything. Hm.

If it doesn't work if you don't have the other, though, it does sound like something is missing from your SDL2.framework. Perhaps you should try to get rid of the old one and then redownload and reďnstall the new one, just to be sure.
Logged

dum mak gam
Vatnsmyrkr, deep sea exploration: devlog
avaskoog @ twitter
avaskoog.se

Kennitus
Level 0
**


View Profile Email
« Reply #8 on: September 26, 2013, 09:02:13 AM »

I tried to install only SDL2.Framework and SDL2_image.Framework, still dont work.
Logged
ThemsAllTook
Moderator
Level 10
******


Alex Diener


View Profile WWW
« Reply #9 on: September 26, 2013, 12:37:26 PM »

I tried to install only SDL2.Framework and SDL2_image.Framework, still dont work.

Help us help you: http://www.mikeash.com/getting_answers.html
Logged
Kennitus
Level 0
**


View Profile Email
« Reply #10 on: September 27, 2013, 02:07:26 PM »

I'll read that in details when I have time, but how to say it, I'm kinda noob with coding so I can't give the relevant details needed to be answered clearly and I want programming to be a second hobby as I already focus on music which is my studies. I give on coding my spared time still I'm interested with it but, you know trying to do my best when I have the time.  Shrug

It's ok about my question, i'll try to be more specific on the future.

Thanks anyway so far.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic