In diesem thread habe ich einige nützliche Hinweise gefunden, wie man ein testplugin (z.B. Hello World) erstellen kann.
Nun bin ich (als absoluter linux und c++ Neuling) wie folgt vorgegangen:
1. habe mir debian installiert
2. habe mir das cvs mit diesem Befehl runtergeladen: cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -P -rdreambox .
3. hab mir unter apps/tuxbox/plugins ein Verzeichnis testplugin erstellt (inklusive testplugin.c .h .cfg und Makefile.am wie hier beschrieben. Auch habe ich Makefile.am und configure.ac geändert
4. habe ich mal prepare aufgerufen und folgende Ausgabe erhalten (bis auf ein paar Warnings sieht das für mich als Anfänger gar nicht so schlecht aus )
ZitatAlles anzeigen
debian:~/dreambox/cdk# prepare
Generating configuration files for tuxbox-cdk, please wait....
aclocal
libtoolize --automake
autoconf
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
automake --add-missing
Makefile.am:2012: endif without if
Makefile.am:2019: endif without if
Makefile.am:2528: endif without if
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... powerpc-tuxbox-linux-gnu
checking for apps directory... yes
checking for boot directory... yes
checking for driver directory... yes
checking for hostapps directory... yes
checking for python... /usr/bin/python
checking for fakeroot... no
configure: WARNING: can't build images with uid 0 as non-root
checking for mkcramfs... /usr/sbin/mkcramfs
checking for mkjffs2... no
checking for mkfs.jffs2... no
configure: WARNING: can't build jffs2
checking linux rules... done
checking linux_libc_headers rules... done
checking binutils rules... done
checking bootstrap_gcc rules... done
checking glibc rules... done
checking gcc rules... done
checking uclibc rules... done
checking busybox rules... done
checking ftpd rules... done
checking modutils rules... done
checking portmap rules... done
checking procps rules... done
checking watchdog rules... done
checking mrouted rules... done
checking libdirectfb rules... done
checking libdirectfbpp rules... done
checking libppdirectfb rules... done
checking libboost rules... done
checking libcommoncplusplus rules... done
checking libcrypto rules... done
checking libcurl rules... done
checking libdb2 rules... done
checking libdvbpsi rules... done
checking libffi rules... done
checking libfreetype rules... done
checking libfribidi rules... done
checking libgmp rules... done
checking libmad rules... done
checking libid3tag rules... done
checking libncurses rules... done
checking libnet rules... done
checking libnids rules... done
checking libjpeg rules... done
checking libpcap rules... done
checking libpng rules... done
checking libpopt rules... done
checking libreadline rules... done
checking libsdl rules... done
checking libsdl_mixer rules... done
checking libsdl_sound rules... done
checking libsdl_image rules... done
checking libsdl_net rules... done
checking libsigc rules... done
checking libungif rules... done
checking libvorbisidec rules... done
checking libxml2 rules... done
checking libxmlparse rules... done
checking libxmlwrapp rules... done
checking libz rules... done
checking console_data rules... done
checking console_tools rules... done
checking dsniff rules... done
checking fbset rules... done
checking lirc rules... done
checking lsof rules... done
checking polipo rules... done
checking pump rules... done
checking ssh rules... done
checking tcpdump rules... done
checking xrc rules... done
checking thttpd rules... done
checking e2fsprogs rules... done
checking reiserfsprogs rules... done
checking utillinux rules... done
checking samba rules... done
checking etherwake rules... done
checking dreamfiles rules... done
checking dreamdriver_dm7000 rules... done
checking dreamdriver_dm56x0 rules... done
checking dreamdriver_dm500 rules... done
checking nfs_utils rules... done
checking less rules... done
checking diffutils rules... done
checking dropbear rules... done
checking gdb rules... done
checking insight rules... done
checking ltrace rules... done
checking strace rules... done
checking nano rules... done
checking joe rules... done
checking kaffe rules... done
checking kaffeh rules... done
checking gnuboy rules... done
checking scummvm rules... done
checking sdldoom rules... done
checking wxbase rules... done
checking amule rules... done
checking ctorrent rules... done
checking dvbdate rules... done
checking dvbstream rules... done
checking dvbtext rules... done
checking dvbtune rules... done
checking vls rules... done
summary:
----------------------------------------
target cpu: 405
target box: dm7000
webif type: standard
epg: standard
mhw-epg: no
flashtool: standard
external-flastool: yes
reiserfs: no
enigma debug: yes
host rule set: standard
target rule set: flash
target prefix: /root/dreambox/root/cdkroot
host prefix: /root/dreambox/root/cdk
boot prefix: /root/dreambox/root/tftpboot
build prefix: /root/dreambox/cdk
target apps directory: /root/dreambox/apps
boot directory: /root/dreambox/boot
driver directory: /root/dreambox/driver
host apps directory: /root/dreambox/hostapps
GNU server: ftp.gnu.org/gnu
configure: creating Makefile-archive
configure: creating ./config.status
config.status: creating Makefile
config.status: creating root/Makefile
config.status: creating root/etc/Makefile
config.status: creating root/etc/init.d/Makefile
config.status: creating root/share/Makefile
config.status: creating root/share/tuxbox/Makefile
config.status: creating root/share/udhcpc/Makefile
config.status: creating root/var_init/Makefile
config.status: creating root/var_init/etc/Makefile
config.status: creating root/var_init/tuxbox/Makefile
config.status: creating root/var_init/tuxbox/config/Makefile
config.status: creating root/var_init/tuxbox/config/enigma/Makefile
5. Nun habe in versucht "make plugins" aufzurufen um mein testplugin zu erzeugen und diesen Fehler erhalten:
Zitatdebian:~/dreambox/cdk# make plugins
Makefile:2191: *** missing separator. Schluss.
6. Nun, auf Zeile 2191 von Makefile steht:
Zitat
if !BOXTYPE_DM7000
echo "i:/ezap/osd/alpha=00000000" >> $(flashprefix)/root/var_init/tuxbox/config/enigma/config
echo "i:/ezap/osd/brightness=00000073" >> $(flashprefix)/root/var_init/tuxbox/config/enigma/config
echo "i:/ezap/osd/gamma=00000066" >> $(flashprefix)/root/var_init/tuxbox/config/enigma/config
Ich kann verstehen, dass ich vielleicht zu viel verlange und zu wenig weiß, aber vielleicht kann mir doch jemand weiterhelfen mein HalloWelt Plugin zu kompilieren.
Danke
Edy