SDL Image: Difference between revisions
Jump to navigation
Jump to search
Levidsmith (talk | contribs) No edit summary |
Levidsmith (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Development Environment Setup === | |||
Steps for setting up SDL_Image | Steps for setting up SDL_Image | ||
Line 24: | Line 26: | ||
-lSDL_image -lm | -lSDL_image -lm | ||
*Add #include "SDL_image.h to your source code | *Add #include "SDL_image.h" to your source code | ||
*Download SDL_image-1.2.10-win32.zip from http://www.libsdl.org/projects/SDL_image/ | |||
*Add the following libraries to the working directory of the program, and distribute them with the package | |||
**jpeg.dll | |||
**libpng12-0.dll | |||
**libtiff-3.dll | |||
**SDL_image.dll | |||
**zlib1.dll | |||
=== More Information === | |||
Official documentation: http://jcatki.no-ip.org:8080/SDL_image/SDL_image.html | Official documentation: http://jcatki.no-ip.org:8080/SDL_image/SDL_image.html |
Latest revision as of 06:26, 23 January 2010
Development Environment Setup
Steps for setting up SDL_Image
- Download SDL_image-1.2.10.tar.gz from http://www.libsdl.org/projects/SDL_image/
- Rename if the browser messed up the extension
- Extract the source files
$ mv SDL_image-1.2.10.tar.tar SDL_image-1.2.10.tar.gz $ gzip -d SDL_image-1.2.10.tar.gz $ tar -xvf SDL_image-1.2.10.tar
- cd to the new directory
- build the library
$ cd SDL_image-1.2.10 $ ./configure $ make $ make install
- Besure to add -lSDL_image to your Makefile
lotux.exe: lotux.c audio.c boomerang.c file_read.c font.c globals.h levelselect. c maps.h menu.c save_file.c event.c gcc -o lotux.exe *.c `sdl-config --cflags --libs` -lSDL_mixer -lSDL_ttf -lSDL_image -lm
- Add #include "SDL_image.h" to your source code
- Download SDL_image-1.2.10-win32.zip from http://www.libsdl.org/projects/SDL_image/
- Add the following libraries to the working directory of the program, and distribute them with the package
- jpeg.dll
- libpng12-0.dll
- libtiff-3.dll
- SDL_image.dll
- zlib1.dll
More Information
Official documentation: http://jcatki.no-ip.org:8080/SDL_image/SDL_image.html