Page 1 of 1
[Solved] Installing SDL
Posted: Sun Jun 21, 2009 12:03 pm
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?
Re: Installing SDL
Posted: Sun Jun 21, 2009 12:20 pm
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
Good luck, and if you have any trouble, post your problems here until the situation is [solved]
Re: Installing SDL
Posted: Sun Jun 21, 2009 12:35 pm
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.
Re: Installing SDL
Posted: Sun Jun 21, 2009 5:42 pm
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.
Re: Installing SDL
Posted: Sun Jun 21, 2009 7:44 pm
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
Re: Installing SDL
Posted: Mon Jun 22, 2009 7:01 am
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.
Re: Installing SDL
Posted: Mon Jun 22, 2009 7:52 am
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.
Re: Installing SDL [Solved]
Posted: Mon Jun 22, 2009 8:41 am
by zodiac976
Thanks
.
Re: Installing SDL [Solved]
Posted: Mon Jun 22, 2009 10:46 am
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.
Re: Installing SDL
Posted: Mon Jun 22, 2009 1:04 pm
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
just remember to do everything globally, so you don't have to do it every time you set a project up
Re: Installing SDL
Posted: Mon Jun 22, 2009 3:17 pm
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).
Re: Installing SDL
Posted: Mon Jun 22, 2009 3:22 pm
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.
Re: Installing SDL
Posted: Mon Jun 22, 2009 3:35 pm
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).