Results 1 to 5 of 5
Hi everyone
I`ve got some problems with cross compilation on ARM proccesors. I am using Code Sourcery toolchain, target application is game freeciv I run configuration script this way:
CC=arm-none-linux-gnueabi-gcc ...
- 04-12-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 3
Cross compilation, configuration script
Hi everyone

I`ve got some problems with cross compilation on ARM proccesors. I am using Code Sourcery toolchain, target application is game freeciv
I run configuration script this way:
CC=arm-none-linux-gnueabi-gcc ./configure --prefix=/root/CodeSourcery/Sourcery_G++_Lite --host=arm-none-linux-gnueabi
The problem is with zlib
checking for gzgets in -lz... no
configure: error: Could not find zlib library.
Log from the config.log:
configure:19088: checking for gzgets in -lz
configure:19113: arm-none-linux-gnueabi-gcc -o conftest -g -O2 -DLOCALEDIR=""${datarootdir}/locale"" conftest.c -lz >&5
/root/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
This problem comes up with other games too. I`ve got zlib1g-dev installed via apt-get. Now I`m trying other way I`ve got compiled this library (zlib) for arm proccesors but I dont know how to "tell" configurer where to search for the library. If someone could help me with this it would be great
- 04-13-2010 #2
Please note that I'm not an autotools expert and you probably had better wait for a cleverer guy to say something

Running ./configure --help in one of my projects using autotools gave the following (seemingly) relevant bits:
Code:Some influential environment variables: ... LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>
- 04-14-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 3
Unfortunately adding LDFLAG didnt helped
Now Im wondering if I have properly compilled this zlib library
- 04-14-2010 #4
You may use something like (sorry, nothing Debian-like at hand to check)
to see which files the zlib package brings to your system and then see whether you have all those files in the directory where you built your zlib. That's a crude check, but it may still be useful.Code:$ apt-file list zlib
- 04-16-2010 #5Just Joined!
- Join Date
- Apr 2010
- Posts
- 3
I`ve solved the problem using apt-cross and debian repositories
Thanks for help anyway


Reply With Quote
