Menu

cross compile to mipsel-linux doesn't work

2006-09-27
2013-03-22
  • andre.frick

    andre.frick - 2006-09-27

    I tried pretty hard to cross compile camsource 0.7.0 with a toolchain for mipsel-linux (http://wiki.ip-phone-forum.de/software:ds-mod:start)

    I cross compiled libjpeg into the toolchain, but configure cannot find it any way i tried though the shared object file is indeed in appropriate position inside the toolchain.

    A native configure works.

    I filled LD_LIBRARY_PATH, filled ld.so.conf, linked with various filenames and ldconfig'ed a lot.

    Is there a way to hand over the direct path to libjpeg.so to configure?

     
    • andre.frick

      andre.frick - 2006-09-27

      I also tried with:
      LDFLAGS=-L/home/common/downloads/ds-0.2.9/toolchain/lib ./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux

      and still get:

      [phoenix@kamasutra camsource-0.7.0]$ LDFLAGS=-L/home/common/downloads/ds-0.2.9/toolchain/target/lib ./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... gawk
      checking whether make sets ${MAKE}... yes
      checking for mipsel-linux-gcc... mipsel-linux-gcc
      checking for C compiler default output... a.out
      checking whether the C compiler works... yes
      checking whether we are cross compiling... yes
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether mipsel-linux-gcc accepts -g... yes
      checking for style of include used by make... GNU
      checking dependency style of mipsel-linux-gcc... gcc3
      checking build system type... i386-pc-linux-gnu
      checking host system type... mipsel-unknown-linux-gnu
      checking for ld used by GCC... /home/common/downloads/ds-0.2.9/toolchain/build/gcc-4.1.0-uClibc-0.9.26/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld
      checking if the linker (/home/common/downloads/ds-0.2.9/toolchain/build/gcc-4.1.0-uClibc-0.9.26/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
      checking for /home/common/downloads/ds-0.2.9/toolchain/build/gcc-4.1.0-uClibc-0.9.26/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld option to reload object files... -r
      checking for BSD-compatible nm... /home/common/downloads/ds-0.2.9/toolchain/target/bin/mipsel-linux-nm -B
      checking whether ln -s works... yes
      checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
      checking command to parse /home/common/downloads/ds-0.2.9/toolchain/target/bin/mipsel-linux-nm -B output... ok
      checking how to run the C preprocessor... mipsel-linux-gcc -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking for mipsel-linux-file... no
      checking for file... /usr/bin/file
      checking for mipsel-linux-ranlib... mipsel-linux-ranlib
      checking for mipsel-linux-strip... mipsel-linux-strip
      checking for objdir... .libs
      checking for mipsel-linux-gcc option to produce PIC... -fPIC
      checking if mipsel-linux-gcc PIC flag -fPIC works... yes
      checking if mipsel-linux-gcc static flag -static works... yes
      checking if mipsel-linux-gcc supports -c -o file.o... yes
      checking if mipsel-linux-gcc supports -c -o file.lo... yes
      checking if mipsel-linux-gcc supports -fno-rtti -fno-exceptions... yes
      checking whether the linker (/home/common/downloads/ds-0.2.9/toolchain/build/gcc-4.1.0-uClibc-0.9.26/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... yes
      checking whether -lc should be explicitly linked in... no
      creating libtool
      checking for mipsel-linux-gcc option to accept ANSI C... none needed
      checking for an ANSI C-conforming const... yes
      checking whether byte ordering is bigendian... no
      checking for ANSI C header files... (cached) yes
      checking linux/videodev.h usability... yes
      checking linux/videodev.h presence... yes
      checking for linux/videodev.h... yes
      checking jpeglib.h usability... yes
      checking jpeglib.h presence... yes
      checking for jpeglib.h... yes
      checking for stdlib.h... (cached) yes
      checking for working malloc... no
      checking for working memcmp... no
      checking for vprintf... yes
      checking for _doprnt... no
      checking for short... yes
      checking size of short... 2
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for dlopen in -ldl... yes
      checking for pthread_create in -lpthread... yes
      checking for libxml... yes, 2.6.23
      checking for jpeg_start_compress in -ljpeg... no
      configure: error: Could not find libjpeg

      But the lib is in that exact directory:

      [phoenix@kamasutra camsource-0.7.0]$ ll /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg*
      -rw-r--r-- 1 phoenix phoenix 255234 26. Sep 16:55 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.a
      lrwxrwxrwx 1 phoenix phoenix     13 26. Sep 18:15 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so -> libjpeg.so.6a
      -rw-r--r-- 1 phoenix phoenix 202834 27. Sep 13:13 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.0
      -rw-r--r-- 1 phoenix phoenix 202834 27. Sep 13:13 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.0.0
      lrwxrwxrwx 1 phoenix phoenix     13 26. Sep 18:15 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.6 -> libjpeg.so.6a
      lrwxrwxrwx 1 phoenix phoenix     13 26. Sep 20:00 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.62 -> libjpeg.so.6a
      lrwxrwxrwx 1 phoenix phoenix     13 26. Sep 20:00 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.62.0 -> libjpeg.so.6a
      -rw-r--r-- 1 phoenix phoenix 202834 27. Sep 13:13 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.62.0.0
      -rw-r--r-- 1 phoenix phoenix 202834 27. Sep 13:13 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.6a
      lrwxrwxrwx 1 phoenix phoenix     13 27. Sep 12:00 /home/common/downloads/ds-0.2.9/toolchain/target/lib/libjpeg.so.6b -> libjpeg.so.6a
      [phoenix@kamasutra camsource-0.7.0]$

       

Log in to post a comment.

MongoDB Logo MongoDB