[Anjuta-list] Nedd help Linking SDL and SDL_rotozoom ...



I am a beginner and don't undestand about makefiles...
I am trying to use SDL in anjuta
I've had to do many things to link SDL with anjuta:

i've added these lines to project->configuration->libraries:
---------------
dnl Check for SDL
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
            :,
            AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"

AC_CHECK_LIB(SDL_image, 
       main, 
       LIBS="$LIBS -lSDL_image", 
       AC_MSG_ERROR([*** SDL_image library not found!]) 
)

AC_CHECK_LIB(SDL_mixer, 
       main, 
       LIBS="$LIBS -lSDL_mixer", 
       AC_MSG_ERROR([*** SDL_mixer library not found!]) 
)

AC_CHECK_LIB(SDL_rotozoom,
	main,
	LIBS="$LIBS  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread",
	AC_MSG_ERROR([*** SDL_rotozoom library not found])
)

-------------

SDL works, but SDL_rotozoom don't
the .h's files of sdl are located at /usr/include/SDL/   and the .h of
SDL_rotozoom is located at /usr/include

I also put a copy of sdl.m4 on the project directory...

What shoudl I do?

thanks

Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]