Enigma1 THE BIBLE - Environment setup to compile your code

Enviroment setup to compile your code

  1. Environment setup to compile your code

Before to start to learn Enigma you need an Environment to compile
sources and test the code.

You need:
1) A pc with Linux opsys
2) enigma CDK

Warning: If you install the Enigma CDK following these instructions and using the directory /dream as described here you can compile all the demo sources with the supplied makefile. Otherwise you have to change paths in the makefile to accord it with your installed CDK.

Instructions to setup your environment.

1) Be sure you have installed on your Pc a recent Linux distribution with the following packages:
- cvs
- autoconf >= 2.57a
- automake >= 1.8
- libtool >= 1.4.2
- gettext >= 0.12.1
- make >= 3.79
- makeinfo (texinfo)
- tar
- bunzip2 (bzip2)
- gunzip (gzip)
- patch
- infocmp (ncurses-bin / ncurses-devel)
- gcc 2.95 or >= 3.0
- g++ 2.95 or >= 3.0
- flex
- bison
- pkg-config
- wget
- libpng2 or libpng3 (DirectFB)

2) Login into Linux machine as root and digit this commands from the command line. (Warning to the dot after rdreambox).
This is a long procedure and will take some hours.
Code:
cd /
mkdir /dream
cd /dream
export CVS_RSH=ssh
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .
cd cdk
chmod ugo+x prepare
./prepare dm7000
make checkout
make dreamboximage_root
make rebuild-flash
make flash-compress
This is a standard procedure and you can find many tutorials in the net to install Enigma1 cdk.
Once you have installed the CDK you are ready to continue with this tutorial and to compile the demo applications provided.
You have only to create a working directory as for example:
mkdir mydevel
and copy in it the sources you want to compile.
To compile a demo source you have only to go in this directory and digit the command:
make

To test a compiled code you have only to upload in your Dreambox in /var/tuxbox/plugins directory
the files:
Bibledemo.so
Bibledemo.cfg

To be continued ...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值