Sponsored links


Go Back   Sat Industry Forums > Dreambox > Dreambox Hardware > DM-7020s
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #61 (permalink)  
Old 08-16-2005
Registered User
 
Join Date: Feb 2005
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
picc2001 is on a distinguished road
How to compile an application using cross-compile...?

Hi,

I want to compile an application and install it on the DM7020.

What I have:
-> source code of my application...
-> My PC with Fedora Core 3 + all the enviroment ready and working to create a complete DM7020 image (nfi), using bitbake + OE.DB + ...
-> Of course, my DreamBox... 7020

Can some one please, explain me How to compile (on my PC) a package (cross-compile) using bitbake ... or any other tool for 7020?

By example, before to try with a new package, I decided to try with an included package called "htun"

Attached you will find:
=> htun-xx-xx.BB (included in the OE.DB, original)

Some config files:
----------------------------------------------
=> /mnt/linux2/stuff/build/env.source

export BBPATH="${OE_BASE}/org.openembedded.dreambox/:${OE_BASE}/bb/:${OE_BASE}/build/"
PATH=$PATH:${OE_BASE}/bb/bin:/mnt/linux2/stuff/build/tmp/cross/bin
export PATH
export LD_LIBRARY_PATH=
export LANG=C
----------------------------------------------
=> /mnt/linux2/stuff/build/conf/local.conf

DL_DIR = "/mnt/linux2/stuff/sources"
OE_BASE = "/mnt/linux2/stuff"
BBFILES = "${OE_BASE}/org.openembedded.dreambox/packages/*/*.bb"
BBMASK = "(nslu.*|.*-sdk.*)"

PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"

MACHINE = "dm7020"
TARGET_OS = "linux"
DISTRO = "opendreambox-1.2"
CACHE = "/mnt/linux2/stuff/cache/oe-cache.${USER}"
CVS_TARBALL_STASH = "http://www.treke.net/oe/source/"
SOURCEFORGE_MIRROR = "http://puzzle.dl.sourceforge.net/sourceforge"

----------------------------------------------

What I did:
execute -> bitbake htun

The result was:

[root@localhost build]# bitbake htun
NOTE: Using cache in '/mnt/linux2/stuff/cache/oe-cache.root'
NOTE: Handling BitBake files: | (2592/2593) [99 %]ERROR: inherit while parsing / mnt/linux2/stuff/org.openembedded.dreambox/packages/httptunnel/httptunnel_3.3.bb
NOTE: Parsing finished. 0 cached, 2466 parsed, 88 skipped, 38 masked.
NOTE: build 200508161211: started

OE Build Configuration:
TARGET_ARCH = "powerpc"
TARGET_OS = "linux"
MACHINE = "dm7020"
DISTRO = "opendreambox"
TARGET_FPU = "soft"

NOTE: package htun-0.9.5: started
NOTE: package htun-0.9.5-r0: task do_fetch: started
NOTE: package htun-0.9.5-r0: task do_fetch: completed
NOTE: package htun-0.9.5-r0: task do_compile: started
ERROR: function do_compile failed
ERROR: see log in /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_com pile.4834
NOTE: Task failed: /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_co mpile.4834
NOTE: package htun-0.9.5-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package htun-0.9.5: failed
ERROR: Build of htun failed
[root@localhost build]#

OK... lets see the LOG file...

-------------------------------------------------------
=> /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_compile.4834

NOTE: make
gcc -I../include -I. -g -D_REENTRANT -c y.tab.c
gram.y:306: error: conflicting types for 'die_error'
gram.y:205: error: previous implicit declaration of 'die_error' was here
gram.y:323: error: conflicting types for 'yyerror'
y.tab.c:1684: error: previous implicit declaration of 'yyerror' was here
gram.y:328: error: conflicting types for 'yy_error'
gram.y:199: error: previous implicit declaration of 'yy_error' was here
gram.y:333: error: conflicting types for 'set_ip'
gram.y:154: error: previous implicit declaration of 'set_ip' was here
gram.y:347: warning: static declaration of 'get_answer' follows non-static declaration
gram.y:122: warning: previous implicit declaration of 'get_answer' was here
gram.y:357: warning: static declaration of 'set_base64_user_pass' follows non-static declaration
gram.y:212: warning: 'set_base64_user_pass' declared inline after being called
gram.y:212: warning: previous implicit declaration of 'set_base64_user_pass' was here
make: *** [y.tab.o] Error 1
FATAL: oe_runmake failed
-------------------------------------------------------

I am trying to find some documentation (which files are nedded... which parameters should be use to create the .BB file... ) ... I know how to compile in my FC3... How to translate it to do the same using the .BB files?

Thank's in advance...
Picc2001
Attached Files
File Type: txt htun_0.9.5.bb.txt (398 Bytes, 3 views)
Reply With Quote
Sponsored links
  #62 (permalink)  
Old 08-17-2005
Registered User
 
Join Date: Sep 2004
Posts: 339
Thanks: 0
Thanked 0 Times in 0 Posts
noggie is on a distinguished road
Quote:
Originally Posted by picc2001
I want to compile an application and install it on the DM7020.

What I have:
-> source code of my application...
-> My PC with Fedora Core 3 + all the enviroment ready and working to create a complete DM7020 image (nfi), using bitbake + OE.DB + ...
-> Of course, my DreamBox... 7020

Can some one please, explain me How to compile (on my PC) a package (cross-compile) using bitbake ... or any other tool for 7020?

By example, before to try with a new package, I decided to try with an included package called "htun"
You sure know how to pick'em... I tried to compile "htun", got the same errors that you have, and looked at the source. That stuff is just plain broken. I haven't tried to unravel the whole story, but it looks as if the source is depending on bugs in older versions of the include files in glibc. If you were doing this just as a test, pick another package to test. There was nothing wrong with what *you* did. If you actually need htun, try hacking the source and add the missing semicolons in the macros defined and used in queue.c. That might be enough...

Sorry, but I can't give you much help in writing a .bb file. The few times I've done anything like that, I've just copied something that was similar to what I needed, and hacked it (without any deep understanding of what I was doing) until it somehow worked. I assume you have already trawled the wiki pointed to by www.openembedded.org for documentation, but like many opensource projects, the developers are busy writing code, and don't have time for much documentation. Reading the source code is always an option, of course.
Reply With Quote
  #63 (permalink)  
Old 08-22-2005
Registered User
 
Join Date: Feb 2005
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
picc2001 is on a distinguished road
Quote:
Originally Posted by noggie
You sure know how to pick'em... I tried to compile "htun", got the same errors that you have, and looked at the source. That stuff is just plain broken. I haven't tried to unravel the whole story, but it looks as if the source is depending on bugs in older versions of the include files in glibc. If you were doing this just as a test, pick another package to test. There was nothing wrong with what *you* did. If you actually need htun, try hacking the source and add the missing semicolons in the macros defined and used in queue.c. That might be enough...

Sorry, but I can't give you much help in writing a .bb file. The few times I've done anything like that, I've just copied something that was similar to what I needed, and hacked it (without any deep understanding of what I was doing) until it somehow worked. I assume you have already trawled the wiki pointed to by www.openembedded.org for documentation, but like many opensource projects, the developers are busy writing code, and don't have time for much documentation. Reading the source code is always an option, of course.
Thank you for the answer... and yes, I spend some time searching and reading... but still needing more info in order to understand it better. In fact, I want to compile a package called: httptunnel ... it's similar than htun (that's why I tried with htun), but the test I did got similar errors... it's complicate to try to compile in this way...

Regards,
Picc2001
Reply With Quote
  #64 (permalink)  
Old 10-20-2007
Registered User
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
salem2196 is on a distinguished road
Re: Understanding the DM7020 - a build-it-from-source exploration of the new Dreambox

Thank you! Well done
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto build a complete Image for any dreambox! hemertje Dreambox Development 266 09-29-2008 02:42 AM
How to use USB Memory sticks on Dreambox MrBandwidth Accessories 2 07-10-2007 03:00 PM
How to build a Dreambox Source Raph4el DB Images 27 12-09-2005 05:06 AM
Multiboot for 7020 - public beta noggie Dreambox Development 265 08-22-2005 08:29 AM
bitcontrolŽ MPEG-2 Decoder and Dreambox Receiver for Windows hemertje DB Images 3 10-27-2004 04:22 PM


All times are GMT +10. The time now is 01:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Page generated in 0.31251 seconds with 11 queries