SDL Image: Difference between revisions

From LD Smith Games Workshop
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:


   lotux.exe: lotux.c audio.c boomerang.c file_read.c font.c globals.h levelselect.
   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
  c maps.h menu.c save_file.c event.c
         gcc -o lotux.exe *.c `sdl-config --cflags --libs` -lSDL_mixer -lSDL_ttf
         gcc -o lotux.exe *.c `sdl-config --cflags --libs` -lSDL_mixer -lSDL_ttf
-lSDL_image -lm
-lSDL_image -lm

Revision as of 03:53, 23 January 2010

Steps for setting up SDL_Image

 $ 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