I’m new to the Open Source and cross-plattform development.
So I now have the problem to choose the development environment in which
I development my first SDL application.
I have tried to use MS VC++ 2008 Express, Eclipse and MinGW and
Code::Block and MinGW but I could find any good howtos or tutorials to
setup these environments.
Also I couldn’t find any documents on how to develop good
cross-plattform programms (for example which directory structure is the
best and so on).
Could you tell me how to make a good game with SDL and which development
environment is good for this?
Greets
Christoph
P.S.:
Sorry for my bad english. I’m comming from germany.
Hallo Christoph. Wie gehts?
I can help you with some info. From your comments above I am assuming you
are developing under Windows. Generally, if you prefer to use command line
type tools then you will want to use gcc or something like it. If you
prefer to use a nice IDE and don’t mind learning new shortcuts/commands (in
the editor) then I recommend VC 2008 Express.
SDL Development with Visual Studio
-
SDL 1.2.x comes with a .zip file inside the main distribution that
has the Visual Studio project files. It is named VisualC.zip and you unzip
it into your SDL folder. SDL 1.3 already has this as part of the
distribution.
-
Either way the next step is to run Visual Studio and open the
SDL.sln file. In older distributions of SDL 1.2.x you won’t find a SLN
file, just the DSW files. You can open that file and it will upgrade it to
the latest format.
-
With SDL 1.2.x releases you will probably have to set the relative
path to the src files. You can do this by right clicking on the Project
Solution name and selecting Properties. Then go to Configuration Properies
-> C/C++ -> General and set the “Additional Include Directories”.
-
Next build the SDL and SDL_main projects in the solution.
-
Once you have SDL build you can go to the "VisualC\tests" folder
and find the .SLN or .DSW file to build the test samples. Once again, in
versions of SDL prior to 1.3 you will need to set the relative path to find
the .h files and also to find the .lib file.
-
To run one of the samples you will need to either copy the SDL.dll
into your sample executable folder, or you will need to add a path to the
Window’s system settings to point to your SDL.DLL.
Once you have a sample running you are well on your way to developing your
own application/game with SDL. Best of luck and let me know if I can help
in any way!
Homebrew Software
www.homebrewsoftware.com http://www.homebrewsoftware.com/