Disko Forum logo Login  |  Register  |  Lost Password
<< Start < Prev 1 2 3 Next > End >>
Cross Compiler DISKO-1.6.0 to DM6446

Bermuda
Posts: 21
graphgraph

Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 5 Months ago  
Thanks.

I modify sanity.bbclass

and finally ~ done. Now is building.

THANKS VERY MUCH : )


=====================

I remember that I still have to cross compiler the libaries?

because I have not get my Beagleboard. so I can't test it.

[QUESTION 1]
My question is that with the "bitbake" method I dont have to cross compiler each libary manully? (by ./configure --host=arm-linux....and make) right??

======================

[QUESTION 2]
With the cross compiler of lib.

Where can I set the lib path for disko if I use the scons and make command to build the disko?

(something like Make -I/home/user/lib/??)

because the disko.conf and scons -h seems no arguements for this,

also --host=arm_v5t_le is unrecognized.

(I still working...on porting this to DM6446.)
 
  The administrator has disabled public write access.
Cross Compiler DISKO-1.6.0 to DM6446

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 5 Months ago  
With bitbake disko-image the whole root-filesystem is created including disko and a small test application. So you don't have to worry about cross-compiling disko and its dependencies.

If you want to cross-compile disko manually, you can set the environment variables $CXX, $CXXFLAGS and $LDFLAGS to use the correct compiler and set include and library paths.
 
  The administrator has disabled public write access.
Cross Compiler DISKO-1.6.0 to DM6446

Bermuda
Posts: 21
graphgraph

Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 4 Months ago  
Thanks for Matthias. Now I almost know the way to crocoss compiler this.. I guess..

===

By typing the command

[bitbake disko-oimage]

It's seems there is still problem as following :

NOTE: Running task 1253 of 5234 (ID: 5229, /home/bermuda/oe/openembedded/recipes/xorg-proto/fixesproto_4.1.1.bb, do_distribute_sources)
Segmentation fault
NOTE: Task failed: localedef returned an error (command was PATH="/home/bermuda/oe/angstrom-dev/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/bermuda/oe/angstrom-dev/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/bermuda/oe/angstrom-dev/staging/i686-linux/usr/sbin:/home/ bermuda/oe/angstrom-dev/staging/i686-linux/usr/bin:/home/bermuda/oe/angstrom-dev/cross/armv7a//bin:/home/bermuda/oe/angstrom-dev/staging/i686-linux/sbin:/home/bermuda/oe/angstrom-dev/staging/i686-linux/bin:/home/bermuda/oe/openembedded/bitbake/bin:/ home/bermuda/oe/openembedded/bitbake/bin:/home/bermuda/oe/bitbake-1.8.18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" I18NPATH="/home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r35.3/locale-tree//usr/share/i18n" qemu-arm -s 1048576 -r 2.6.24 -L /home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r35.3/locale-tree -E LD_LIBRARY_PATH=/home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r35.3/locale-tree/lib -cpu cortex-a8 /home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r35.3/locale-tree/bin/localedef --force --old-style --no-archive --prefix=/home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r35.3/locale-tree --inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI).
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/bermuda/oe/openembedded/recipes/glibc/glibc_2.9.bb do_package failed
ERROR: Task 234 (/home/bermuda/oe/openembedded/recipes/glibc/glibc_2.9.bb, do_package) failed
NOTE: Waiting for 2 active tasks to finish
NOTE: 1: /home/bermuda/oe/openembedded/recipes/xorg-proto/fixesproto_4.1.1.bb, do_distribute_sources (995)
NOTE: 2: /home/bermuda/oe/openembedded/recipes/perl/perl-native_5.8.8.bb, do_configure (29363)
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /home/bermuda/oe/openembedded/recipes/perl/perl-native_5.8.8.bb, do_configure (29363)
NOTE: Tasks Summary: Attempted 1250 tasks of which 1239 didn't need to be rerun and 1 failed.
ERROR: '/home/bermuda/oe/openembedded/recipes/glibc/glibc_2.9.bb' failed


I have tried to google but still no answer.
 
 
Last Edit: 2010/04/10 11:46 By Bermuda.
  The administrator has disabled public write access.
Cross Compiler DISKO-1.6.0 to DM6446

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 4 Months ago  
Alright, this looks like a bug in the angstrom-distribution regarding the
xorg-proto recipes. Are you using the stable or the development version
of angstrom?
And please try bitbake -DDD disko-image again, this prints more verbose
information. Maybe you can recognize the error.
 
  The administrator has disabled public write access.
Cross Compiler DISKO-1.6.0 to DM6446

Bermuda
Posts: 21
graphgraph

Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 4 Months ago  
[VERSION]
I', not sure the version about the version of angstrom, but here

in the angstrom-2008.1.conf I see as follow:

should I modify??

#DISTRO_VERSION = "2009.X"
DISTRO_VERSION = "2010.4-test-${DATE}"
DISTRO_REVISION = "3"
DISTRO_PR = ".5"



[bitbake -DDD disko-image]

make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7/am'
make[2]: Entering directory `/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7'
make[2]: Leaving directory `/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7'
make[1]: Leaving directory `/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7'
DEBUG: Parsing /home/bermuda/oe/openembedded/recipes/guile/guile-native_1.8.7.bb (full)
DEBUG: BB /home/bermuda/oe/openembedded/recipes/guile/guile-native_1.8.7.bb: handle(data)
DEBUG: BB /home/bermuda/oe/openembedded/recipes/guile/guile-native.inc: handle(data, include)
DEBUG: BB :0: inheriting classes/autotools.bbclass
DEBUG: BB /home/bermuda/oe/openembedded/classes/autotools.bbclass: handle(data, include)
DEBUG: BB :0: inheriting classes/siteinfo.bbclass
DEBUG: BB /home/bermuda/oe/openembedded/classes/siteinfo.bbclass: handle(data, include)
DEBUG: BB :0: inheriting classes/native.bbclass
DEBUG: BB /home/bermuda/oe/openembedded/classes/native.bbclass: handle(data, include)
DEBUG: update_data()
DEBUG: update_data()
DEBUG: update_data()
DEBUG: Executing task do_compile
DEBUG: update_data()
DEBUG: mkdirhier(/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7)
DEBUG: mkdirhier(/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/guile-1.8.7)
DEBUG: mkdirhier(/home/bermuda/oe/angstrom-dev/work/i686-linux/guile-native-1.8.7-r0/temp)
DEBUG: mkdirhier(/home/bermuda/oe/angstrom-dev/stamps/i686-linux)
ERROR: Task 234 (/home/bermuda/oe/openembedded/recipes/glibc/glibc_2.9.bb, do_package) failed
NOTE: Waiting for 2 active tasks to finish
NOTE: 1: /home/bermuda/oe/openembedded/recipes/guile/guile-native_1.8.7.bb, do_compile (21563)
NOTE: 2: /home/bermuda/oe/openembedded/recipes/gcc/gcc-cross_4.3.3.bb, do_install (21262)
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /home/bermuda/oe/openembedded/recipes/guile/guile-native_1.8.7.bb, do_compile (21563)
NOTE: Tasks Summary: Attempted 1046 tasks of which 1045 didn't need to be rerun and 1 failed.
ERROR: '/home/bermuda/oe/openembedded/recipes/glibc/glibc_2.9.bb' failed

Here is the last part of me debug message.

Is there any way to fix this?



==FIXED==
The problem has been fixed by modify angstrom version to stable.
 
 
Last Edit: 2010/04/14 16:27 By Bermuda.
  The administrator has disabled public write access.
Cross Compiler DISKO-1.6.0 to DM6446

Bermuda
Posts: 21
graphgraph

Re:Cross Compiler DISKO-1.6.0 to DM6446 5 Years, 4 Months ago  
I have get some trouble in do_compiler in

/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/disko-testprog-1.0-r2/temp/log.do_compile.21091


at first the error message is
[main.cpp:31:31: error: mmsmedia/mmsvideo.h: No such file or directory]

after I copy th folder mmsmedia by typing

cp -rf ${OE_HOME}/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/disko-1.6.0-git-r3/git/inc/mmsmedia ${OE_HOME}/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/disko

it's still make error like this:

==message==
NOTE: make -j3 -e MAKEFLAGS=
arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp main.cpp -o disko-test -isystem/home/bermuda/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -L/home/bermuda/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/home/bermuda/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu `pkg-config --cflags --libs disko`
/tmp/cc74SL1D.o: In function `main':
/home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/disko-testprog-1.0-r2/disko-testprog-1.0/main.cpp:62: undefined reference to `MMSVideo::MMSVideo(MMSWindow*, bool)'
/home/bermuda/oe/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/disko-testprog-1.0-r2/disko-testprog-1.0/main.cpp:63: undefined reference to `MMSVideo:tartPlaying(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)'
collect2: ld returned 1 exit status
make: *** [all] Error 1
FATAL: oe_runmake failed

How can I fix this?
 
  The administrator has disabled public write access.
<< Start < Prev 1 2 3 Next > End >>
Powered by FireBoard
get the latest posts directly to your desktop