[Solved] Installing SDL
Moderator: Coders of Rage
- zodiac976
- 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
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?
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.
- programmerinprogress
- 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
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
Good luck, and if you have any trouble, post your problems here until the situation is [solved]
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
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
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
- zodiac976
- 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
I will keep that in mind and thanks for the link, the tutorial was
very well done and everything works like a charm.
very well done and everything works like a charm.
- dandymcgee
- 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
If you could rename your first post's title to "[solved] Installing SDL", it would be helpful for others have similar problems later.programmerinprogress wrote: Good luck, and if you have any trouble, post your problems here until the situation is [solved]
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- davidthefat
- 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
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
- zodiac976
- 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
I have no idea how to do that, sorry.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.programmerinprogress wrote: Good luck, and if you have any trouble, post your problems here until the situation is [solved]
- dandymcgee
- 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
Just click the "Edit" button on the top right of your first post and change "Subject" to the new title.zodiac976 wrote:I have no idea how to do that, sorry.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.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- zodiac976
- 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]
Thanks .
- dandymcgee
- 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]
No problem. It just helps people who have similar issues in the future to know this topic might contain a solution.zodiac976 wrote:Thanks .
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- programmerinprogress
- 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
REAL men install libraries manuallydavidthefat 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
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
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
- dandymcgee
- 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
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).programmerinprogress wrote:just remember to do everything globally, so you don't have to do it every time you set a project up
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- programmerinprogress
- 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
dandymcgee wrote: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).programmerinprogress wrote:just remember to do everything globally, so you don't have to do it every time you set a project up
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
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
- dandymcgee
- 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
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).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.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!