SDL_ttf 2.0.9 configure error on embedded system

configure creates wrong “naked” compiler options -I and -L !

Hello,
after compiling pkg-config for the target i got rid of the

/usr/bin/freetype-config: line 12: pkg-config: command not found
lines, but that was not the problem.

A developer of the cross-toolchain /ELDK) i?m using advised me of the fact that the empty compiler options -I and -L are causing problems.

configure:20466: gcc -o conftest -O2 -I/freetype2 -I -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT conftest.c -L -Wl,–rpath -Wl, -lfreetype -lz
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread >&5
conftest.c:31:17: error: SDL.h: No such file or directory

It is possible to compile this by “hand”, that means that the embedded environment in principle is able to do the job, although i am not able to do so because of problems to create (or to conserve) the conftest.c file.
I don?t know enough about configure scripting at the moment.
For this reason i am not able to fix the configure script to remove the
"naked" compiler options, too.

Can anybody do that?

Best regards
Bastian.>Hello,

i try to compile SDL_ttf from the source.rpm on an embedded arm system.
The system mounts over nfs.
SDL 1.2.13 and SDL_image have been compiled on this system successful (the
same way).
SDL-devel is installed on the system, sdl-config works, the libs are in
/usr/lib and SDL.h is in /usr/include/SDL .

The configure script gives me the following error:

[…]
checking for working alloca.h… yes
checking for alloca… yes
checking for freetype-config… /usr/bin/freetype-config
/usr/bin/freetype-config: line 12: pkg-config: command not found
/usr/bin/freetype-config: line 13: pkg-config: command not found
/usr/bin/freetype-config: line 15: pkg-config: command not found
/usr/bin/freetype-config: line 16: pkg-config: command not found
/usr/bin/freetype-config: line 12: pkg-config: command not found
/usr/bin/freetype-config: line 13: pkg-config: command not found
/usr/bin/freetype-config: line 15: pkg-config: command not found
/usr/bin/freetype-config: line 16: pkg-config: command not found
checking for sdl-config… /usr/bin/sdl-config
checking for SDL - version >= 1.2.4… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for
the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter case,
you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
configure: error: *** SDL version 1.2.4 not found!
[…]

config.log gives :

[…]
configure:20271: result: /usr/bin/freetype-config
configure:20335: checking for sdl-config
configure:20353: found /usr/bin/sdl-config
configure:20366: result: /usr/bin/sdl-config
configure:20374: checking for SDL - version >= 1.2.4
configure:20466: gcc -o conftest -O2 -I/freetype2 -I -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT conftest.c -L -Wl,–rpath -Wl, -lfreetype -lz
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread >&5
conftest.c:31:17: error: SDL.h: No such file or directory
configure:20469: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
[…]

So i replaced in the configure script the lines

#include “SDL.h”

with

#include “/usr/include/SDL/SDL.h”

After that, configure gives the same error, but config.log looks now like:

[…]
configure:20240: checking for freetype-config
configure:20258: found /usr/bin/freetype-config
configure:20271: result: /usr/bin/freetype-config
configure:20335: checking for sdl-config
configure:20353: found /usr/bin/sdl-config
configure:20366: result: /usr/bin/sdl-config
configure:20374: checking for SDL - version >= 1.2.4
configure:20466: gcc -o conftest -O2 -I/freetype2 -I -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT conftest.c -L -Wl,–rpath -Wl, -lfreetype -lz
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread >&5
/usr/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
configure:20469: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME “”
[…]

Does anybody have an idea whats going on here?

Thank you very much,

Bastian.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org