# Configure script problems

**URL:** <https://discourse.libsdl.org/t/configure-script-problems/17225>\
**Category:** SDL Development\
**Created:** [March 20, 2010, 6:11am UTC](https://discourse.libsdl.org/t/configure-script-problems/17225 "2010-03-20T06:11:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ersin\_Akinci](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/4bbf92/32.png) [@Ersin\_Akinci](https://discourse.libsdl.org/u/Ersin_Akinci)\
**Post date:** [March 20, 2010, 6:11am UTC](https://discourse.libsdl.org/t/configure-script-problems/17225/1 "2010-03-20T06:11:19Z")

</div>

Hi all,

I’ve been trying to build SDL\_image with a custom cross-compiling toolchain,  
but I’ve been having a number of problems with the configure script. The  
configure line that I’m using right now is:

SDL\_CONFIG=/home/ersin/vorpo/toolchain/usr/bin/sdl-config CC=“i386-linux-gcc  
–sysroot=/home/ersin/vorpo/toolchain” CFLAGS="-Os" ./configure  
–prefix=/home/ersin/vorpo/toolchain/usr --host=i386-linux  
–disable-jpg-shared --disable-png-shared --disable-tif-shared

where all the libraries that I’m trying to link against are in  
/home/ersin/vorpo/toolchain/usr/lib. When I try this, however, I get error  
messages that libjpeg cannot be found (but jpeglib.h is found and usable).  
Also, previously I was manipulating some stuff in my GCC specs file instead  
of setting --sysroot, and although it got me past the libjpeg problem during  
the configure, while building it was giving me errors about libpng, which is  
not even installed under /home/ersin/vorpo/toolchain/usr/lib, but rather is  
in my host system’s directories.

Is there something I’m missing here? It looks like SDL\_image’s script is  
arbitrarily ignoring my --sysroot (and, before when I was using a specs  
file, my -lsystem and -nostdinc) commands.

Best,  
Ersin–  
What Digital Revolution? – [www.whatdigitalrevolution.com](http://www.whatdigitalrevolution.com)  
Thinking critically about digital worlds.
