Dbox2:Development (Oldmake) obsolete

Aus TuxBoxWIKI
Version vom 6. Januar 2009, 21:54 Uhr von Dbt (Diskussion | Beiträge) (ergänzt wegen nich benötigter Dateien)
Wechseln zu: Navigation, Suche


General

Here you will find some important basic requirements for a development environment. For more various issues, e.g. image creation or CDK, take a look at the right sidebar.


Review-KandidatDieser Artikel befindet sich derzeit im Reviewprozess. Hilf mit, ihn zu verbessern! Falls du bei weiteren Artikeln helfen willst, findest du hier eine Auswahl offener Artikel.

Prerequistes

Tool Version
cvs
autoconf 2.57a
automake 1.8
libtool 1.4.2
gettext 0.12.1
make 3.80
makeinfo Texinfo
tar
bunzip2 bzip2
gunzip gzip
patch
infocmp ncurses
gcc = 2.95 or >= 3.0
g++ = 2.95 or >= 3.0
flex
bison
pkg-config
wget


Ensure that you have these programs installed and accessible on your system. Compare version numbers where applicable. Don't report any bugs before having verified that you are using the correct versions.


Getting the sources

  • It is recommended to add a new user to your system, to prevent data loss.

If you do not have sufficient rights to do so, remember that everything you do happens at your own risk. Do never build as root. Don't even think of it! It will make your system go nuts and eat your cat!

  • Login as anonym user.
  • Enter the following commands:
you@pc:~$ mkdir $HOME/tuxbox-cvs
you@pc:~$ cd $HOME/tuxbox-cvs
you@pc:~/tuxbox-cvs$ export CVS_RSH=ssh
you@pc:~/tuxbox-cvs$ cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -f -r oldmake -P .

Note: There is a dot at the end of the cvs command line and, yes, it actually belongs to the command.

  • Checkout as cvs user with this example script:
echo "Checkout HEAD"
CVSNAME="<username>"
echo "--------------------------------------------------------------"
cvs -z3 -d "$CVSNAME@cvs.tuxbox.org:/cvs/tuxbox" co -P .
echo "--------------------------------------------------------------"
echo "Checkout oldmake registred"
echo "--------------------------------------------------------------"
cvs -z3 -d "$CVSNAME@cvs.tuxbox.org:/cvs/tuxbox" co -r oldmake -P cdk/oldmake.files
cvs -z3 -d "$CVSNAME@cvs.tuxbox.org:/cvs/tuxbox" co -r oldmake `cat cdk/oldmake.files`


  • Remove some not needed files
echo "removing not needed files..."
echo "--------------------------------------------------------------"
rm -fv cdk/root/etc/init.drcS.m4
rm -rfv cdk/make
rm -fv apps/tuxbox/plugins/pluginx/pluginx.cpp
  • updating
cvs up -f -r oldmake -dP > cvs.log 2>&1

Please do that, even if you have a broadband internet connection, to reduce our traffic costs. Thank you!


Generating the Makefiles

  • Enter the following commands:
you@pc:~/tuxbox-cvs$ cd cdk
you@pc:~/tuxbox-cvs/cdk$ ./autogen.sh
you@pc:~/tuxbox-cvs/cdk$ ./configure --enable-maintainer-mode --prefix=$HOME/dbox2 --with-cvsdir=$HOME/tuxbox-cvs


Building the CDK

  • Enter the following command (see Makefile.am for other make targets):
you@pc:~/tuxbox-cvs/cdk$ make all
  • If you want to try building additional programs which are usually not needed for using tuxbox applications, then enter
you@pc:~/tuxbox-cvs/cdk$ make extra
  • These programs are hardly maintained, so they might sometimes fail to build.

If you encounter errors, then please report them to the address mentioned above, but do not expect to get the problems fixed quickly if you do not provide a solution to the problem.

  • Note that you can skip single make targets by typing
you@pc:~/tuxbox-cvs/cdk$ touch .deps/package_name



Review-KandidatDieser Artikel befindet sich derzeit im Reviewprozess. Hilf mit, ihn zu verbessern! Falls du bei weiteren Artikeln helfen willst, findest du hier eine Auswahl offener Artikel.