This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ICS 4.0.3 on DM3730x, camera integration ,cross compiling media-ctl



Hi Team,

                i have downloaded the media-ctl source from : git://git.ideasonboard.org/media-ctl.git

                as per http://omappedia.org/wiki/Camera-ISP_Driver#Testing

               steps followed :

$ sudo apt-get install autoconf libtool

$ cd $linux-2.6.39/trunk/tools/media-ctl/

$ export CC=/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc

$ export CPP=/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc

$ export PATH=$PATH:/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

$ autoreconf --install

and in the  configure i also given the cross compiler

./configure --with-kernel-headers=/usr/arm  --build=arm  CC=arm-eabi-gcc CPP=arm-eabi-cpp  CFLAGS=-static LDFLAGS=/home/root1/SECJORJIN/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/lib --prefix=/home/root1/DRIVERS/MEDIA_CTL/dibin/tool

but getting the error

LOG---------

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... arm-eabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/root1/DRIVERS/MEDIA_CTL/SECOND/media-ctl':
configure: error: C compiler cannot create executables
See `config.log' for more details

and in my config.log i think the problem is here

onfigure:3299: checking whether the C compiler works
configure:3321: arm-eabi-gcc -static  -L/home/root1/SECJORJIN/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/lib conftest.c  >&5
/home/root1/SECJORJIN/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3325: $? = 1
configure:3363: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "media-ctl"
| #define PACKAGE_TARNAME "media-ctl"
| #define PACKAGE_VERSION "0.0.1"
| #define PACKAGE_STRING "media-ctl 0.0.1"
| #define PACKAGE_BUGREPORT "laurent.pinchart@ideasonboard.com"
| #define PACKAGE_URL ""
| #define PACKAGE "media-ctl"
| #define VERSION "0.0.1"
| /* end confdefs.h.  */
|

Regards,

Dibin