andrenho / xsw

Create a presentation based on a config file
GNU General Public License v3.0
2 stars 0 forks source link

Problems with the location of SDL_rotozoom.h #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the source of xsw.
2. ./configure says that it lacks support for rotozomm
3. Install SDL_gfx in /usr/local
4. go to xsw sources
5. ./configure is OK, it finds everything.
6. Compilation fails with SDL_rotozoom.h not found

What is the expected output? What do you see instead?
It should compile fine. The file SDL_rotozoom.h is located in
/usr/local/include/SDL/

What version of the product are you using? On what operating system?
slackware linux 12.2

Please provide any additional information below.
I change the src/command.c file with:
#include <assert.h>
#include "command.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#include "/usr/local/include/SDL/SDL_rotozoom.h"

And it compiles fine.

Original issue reported on code.google.com by oct...@alinto.com on 7 Apr 2009 at 10:03

GoogleCodeExporter commented 9 years ago
What is your output for `sdl-config --cflags`?

Original comment by andre....@gmail.com on 7 Apr 2009 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by andre....@gmail.com on 7 Apr 2009 at 11:40

GoogleCodeExporter commented 9 years ago
$ sdl-config --cflags
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

After check, I can say:
the sdl-config is part of the sdl-1.2.13-i486-2 package from my linux distro 
(which
has a --prefix=/usr ).

The SDL_rotozoom.h file is part of my own compiled package, which resides in
--prefix=/usr/local

Original comment by oct...@alinto.com on 7 Apr 2009 at 12:09

GoogleCodeExporter commented 9 years ago
Thank you. I see what the problem is: since SDL is part of the system, it is 
installed 
in /usr. And since SDL_gfx was installed as a custo package, it was installed 
on 
/usr/local. My mistake was to assume that SDL and SDL_gfx would always live in 
the same 
directory.

I'll have to release a new version fixing this.

Original comment by andre....@gmail.com on 7 Apr 2009 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by andre....@gmail.com on 7 Apr 2009 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by andre....@gmail.com on 7 Apr 2009 at 3:42