Crosscompiling problem

Support for C series TVs that all user could ask. Please do not ask a questions at other forums.
Post Reply

AmbiZOL
Posts: 11
Joined: Sat Jan 04, 2014 4:55 pm

Crosscompiling problem

Post by AmbiZOL »

I would like to crosscompile boblight application on a Linux PC for UE46C7000.
CPU details:
SpoilerShow
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 798.72
Features : swp half thumb fastmult vfp edsp
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc08
CPU revision : 2

Hardware : Samsung SDP92 Evaluation board
Revision : 0000
Serial : 0000000000000000
I'm using Samsung tool chain located at /home/kerino. Here is my PATH:

Code: Select all

 echo $PATH
/home/kerino/selp-ga-4.3.1.30-arm_v7_vfp_le-20091117/arm_v7_vfp_le/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.7.
Here is one of the configure tries:

Code: Select all

./configure --without-portaudio --without-x11 --without-libusb --host=armv7fl-montavista-linux-gnueabi --prefix=/development/sources/boblight-read-only/result/ --exec-prefix=/development/sources/boblight-read-only/result/ LDFLAGS=-static CFLAGS=-static CXXFLAGS=-static
AmbiZOL
Posts: 11
Joined: Sat Jan 04, 2014 4:55 pm

Re: Crosscompiling problem

Post by AmbiZOL »

Ok. Still hoping that someone could help. Here is config I've used and make result:
SpoilerShow
./configure --without-portaudio --without-x11 --without-libusb --host=armv7fl-montavista-linux-gnueabi --prefix=/development/sources/boblight-read-only/result/ --exec-prefix=/development/sources/boblight-read-only/result

make
make all-recursive
make[1]: Entering directory `/development/sources/boblight-read-only'
Making all in src
make[2]: Entering directory `/development/sources/boblight-read-only/src'
source='lib/boblight_client.cpp' object='libboblight_la-boblight_client.o' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -c -o libboblight_la-boblight_client.o `test -f 'lib/boblight_client.cpp' || echo './'`lib/boblight_client.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -c lib/boblight_client.cpp
libtool: compile: mv -f "boblight_client.o" ".libs/libboblight_la-boblight_client.o"
mv: cannot stat 'boblight_client.o': No such file or directory
make[2]: *** [libboblight_la-boblight_client.lo] Error 1
make[2]: Leaving directory `/development/sources/boblight-read-only/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/development/sources/boblight-read-only'
make: *** [all] Error 2
It quiet strange. I can compile boblight for x86. But still no result for TV.
AmbiZOL
Posts: 11
Joined: Sat Jan 04, 2014 4:55 pm

Re: Crosscompiling problem

Post by AmbiZOL »

In fact the answer is quiet easy for my case:

First is to configure PATH (I've also removed path to "build system" compiler):

Code: Select all

 export PATH=/home/kerino/selp-ga-4.3.1.30-arm_v7_vfp_le-20091117/arm_v7_vfp_le/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
For me the second step was to create copy of all files in /home/kerino/selp-ga-4.3.1.30-arm_v7_vfp_le-20091117/arm_v7_vfp_le/bin with modified name. This was done to remove starting prefix "arm_v7_vfp_le-" from file names, f.e.:

Code: Select all

cp /home/kerino/selp-ga-4.3.1.30-arm_v7_vfp_le-20091117/arm_v7_vfp_le/bin/arm_v7_vfp_le-g++ /home/kerino/selp-ga-4.3.1.30-arm_v7_vfp_le-20091117/arm_v7_vfp_le/bin/g++
I believe there is some option or variable to configure in order not to rename files but it's much faster to rename them than to find it.
Now ready to configure and build!

Code: Select all

./configure --without-libusb --without-portaudio --without-x11 --host=arm-linux-gnueabi --prefix=/development/sources/boblight-read-only/result/ --exec-prefix=/development/sources/boblight-read-only/result
make
make install
And the result awaiting at /development/sources/boblight-read-only/result/

DONE...

Post Reply

Return to “[C] Support”