[Solved] Installing SDL

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

[Solved] Installing SDL

Post by zodiac976 »

I went and downloaded SDL and followed their tutorial that came
with it and it is not working, so I am wondering if anyone here
knows a site or can explain it themselves how to install SDL?
Last edited by zodiac976 on Tue Jun 23, 2009 12:43 pm, edited 2 times in total.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Installing SDL

Post by programmerinprogress »

http://lazyfoo.net/SDL_tutorials/lesson01/index.php this will explain better than I ever could ;)

In future, how about you tell us what is exactly wrong with your installation, are you getting errors? are your programs crashing? did you just stick SDL in a folder and expect it to just work? these kinds of things help, they help us to help you :lol:

Good luck, and if you have any trouble, post your problems here until the situation is [solved] ;)
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Installing SDL

Post by zodiac976 »

I will keep that in mind and thanks for the link, the tutorial was
very well done and everything works like a charm. ;)
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Installing SDL

Post by dandymcgee »

programmerinprogress wrote: Good luck, and if you have any trouble, post your problems here until the situation is [solved] ;)
If you could rename your first post's title to "[solved] Installing SDL", it would be helpful for others have similar problems later.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: Installing SDL

Post by davidthefat »

LOL Well Im a lazy bastard that had the same problem, looking for other similar libs, so I just used the Dev Pak thing with DevC++ and it had a list of SDL and related libs so it installs it by it self... Try that
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Installing SDL

Post by zodiac976 »

dandymcgee wrote:
programmerinprogress wrote: Good luck, and if you have any trouble, post your problems here until the situation is [solved] ;)
If you could rename your first post's title to "[solved] Installing SDL", it would be helpful for others have similar problems later.
I have no idea how to do that, sorry.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Installing SDL

Post by dandymcgee »

zodiac976 wrote:
dandymcgee wrote: If you could rename your first post's title to "[solved] Installing SDL", it would be helpful for others have similar problems later.
I have no idea how to do that, sorry.
Just click the "Edit" button on the top right of your first post and change "Subject" to the new title. ;)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Installing SDL [Solved]

Post by zodiac976 »

Thanks :).
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Installing SDL [Solved]

Post by dandymcgee »

zodiac976 wrote:Thanks :).
No problem. It just helps people who have similar issues in the future to know this topic might contain a solution. :)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Installing SDL

Post by programmerinprogress »

davidthefat wrote:LOL Well Im a lazy bastard that had the same problem, looking for other similar libs, so I just used the Dev Pak thing with DevC++ and it had a list of SDL and related libs so it installs it by it self... Try that
REAL men install libraries manually :lol:

just remember to do everything globally, so you don't have to do it every time you set a project up ;)
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Installing SDL

Post by dandymcgee »

programmerinprogress wrote:just remember to do everything globally, so you don't have to do it every time you set a project up ;)
The only downside to that is if you distribute your project to someone who has different global settings it may not compile. On the other hand if you do everything per project it should compile with no hassle on someone else's machine. (At least this has been my experience with Code::Blocks).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Installing SDL

Post by programmerinprogress »

dandymcgee wrote:
programmerinprogress wrote:just remember to do everything globally, so you don't have to do it every time you set a project up ;)
The only downside to that is if you distribute your project to someone who has different global settings it may not compile. On the other hand if you do everything per project it should compile with no hassle on someone else's machine. (At least this has been my experience with Code::Blocks).

I didn't think of that, I guess you would probably add your settings to the project if you intended to do that, but even then, this may not be the case, people install their libraries in their own directories, so technically even that measure assumes the directory of the libraries on the target machine, so really it's always down to the competence of the programmer who's using the project to change the settings.
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Installing SDL

Post by dandymcgee »

programmerinprogress wrote:I didn't think of that, I guess you would probably add your settings to the project if you intended to do that, but even then, this may not be the case, people install their libraries in their own directories, so technically even that measure assumes the directory of the libraries on the target machine, so really it's always down to the competence of the programmer who's using the project to change the settings.
Well in Code::Blocks you set the paths for your libraries in your settings, but you still have to put -lSDL -lSDL_Image etc. in the project's linker options. If you could put those params in the global linker settings the project would compile fine for you, but maybe not others. Yet if you put those params in the project's linker settings directly, the project should compile fine for anyone with SDL installed regardless of what directory it's in (this will be resolved by their compiler's settings).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply