Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Newbie unlimitedscolobb's Avatar
    Join Date
    Jan 2008
    Posts
    120
    Quote Originally Posted by Robakk View Post
    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
    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>

  3. #3
    Just Joined!
    Join Date
    Apr 2010
    Posts
    3
    Unfortunately adding LDFLAG didnt helped Now Im wondering if I have properly compilled this zlib library

  4. #4
    Linux Newbie unlimitedscolobb's Avatar
    Join Date
    Jan 2008
    Posts
    120
    Quote Originally Posted by Robakk View Post
    Now Im wondering if I have properly compilled this zlib library
    You may use something like (sorry, nothing Debian-like at hand to check)
    Code:
      $ apt-file list zlib
    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.

  5. #5
    Just Joined!
    Join Date
    Apr 2010
    Posts
    3
    I`ve solved the problem using apt-cross and debian repositories Thanks for help anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...