Movieplayer random play & playlist

Wünsche, Anträge, Fehlermeldungen
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

open a console, find the folder ../tuxbox-cvs/cdk and make neutrino
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Thanks guys
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

:gruebel:
I get an error

Code: Alles auswählen

y@y-desktop:~/tuxbox/tuxbox-cvs$ cd  cdk
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ls
acinclude.m4     CVS            prepare                rules-install-flash
AUTHORS          doc            README                 rules-make
autogen.sh       make           root                   rules-make-cygwin
ChangeLog        Makefile.am    rules-archive          rules.pl
common-licenses  newmake.files  rules-archive.pl
configure.ac     NEWS           rules-downcheck.pl.in
customization    Patches        rules-install
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ make neutrino
make: *** Keine Regel, um »neutrino« zu erstellen.  Schluss.
Something like 'No rule, in order to provide "neutrinos". Conclusion'

How exactly does this work? I have 1 modified file, do I use the diff file somewhere? I edited the file in tuxbox/tuxbox-cvs/apps/tuxbox/neutrino/src/gui

I was under the impression that you make the neutrino from the diff file, is that not correct?
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

please use the manual on Barf's (Bengt Martensson) page step by step. There is described that u have run "configure" first with the needed parameters.
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

@Tommy thanks, but a little more help please? There is a lot of info on that page; > 90% I don't understand. Can you direct me to the relevent section. Understand I have no previous experience in this and am very new to Linux in general....

:dash:

Before I try it is this the commands?? Do I have to unconfigure? it when done to continue with more edits????

http://www.bengt-martensson.de/dbox2/fl ... onfiguring

I see the stuff about autogen, do I just use those typical switches for configure, and do I need to do the compiling section before I do the incremental build guide?
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

In my opinion Barf's guide describes all what u need. If u cannot follow this manual I only can recommend again yBuild from Yjogol http://www.yjogol.com/index.php?option= ... &Itemid=83
This "assistant" u simply have to configure with your pathes. There you can start each buildprocess from menu. Also patching is semi-automatic.
Bild
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Maybe for anyone who knows what thhey are doing ;) Useless for me - I don't understand the principles of what is happening.

Can't I just produce diffs and ask a guru to make the neutrinos? Esp if they have all this configured and understood.

Haven't heard of yBuild b4 I don't think

Some of those instructions may as well be in German!

I am not planning on becomming a code guru, just want to commit a few small mods to movieplayer (I have some others in mind) and am finding all this too much bother really just to get something to see if it even works.

I do appreciate the help though.
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Re: Movieplayer random play & playlist

Beitrag von Houdini »

building a complete image with newmake takes 3 commands,
that shoudn't be a big problem or?
The configure call is one of them :-)
no need to unconfigure anything
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

OK I get that it is simple but what are the three commands, in order, with switches - I cannot figure this out - I am not making new images, I just want a neutrino mod only.

So my questions are:

What are the commands - in sequence - to mke a neutrino
Where do I run them from? ..../cdk?
Where will I find the neutrino file when done?

OH BTW being as I have never, ever coded in C++ before two weeks ago I think I have self-helped - So much so i am getting a headache :dash:
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Re: Movieplayer random play & playlist

Beitrag von PT-1 »

Have a look on Barfs site or in my Helpfile as this has been explained 1000 of times before
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

:o Simple hey? Jesus!

PT I have looked and I don't get it .... I have made that clear. There is plenty that I do get and researched myself, I am not just seeking an easy option here.

A quote from Bengt
for the reader for which most of this is gibberish, hmm, it may be wiser to stay with ready-made images.
So is that it then I don't get to offer what I do know....

I know the three commands just don't know what switches to use or why
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Re: Movieplayer random play & playlist

Beitrag von Houdini »

Well, you have to use 4 commands :-)

Checking out the sources

The Tuxbox sources is distributed through the Tuxbox CVS server. Regular source releases are presently neither made, nor planned. For our purposes, the source are "checked out" (= copied to your local disk) anonymously by first creating an empty directory, say /tuxbox/head, at a (local) disk with "lots" of free space, cd-ing to it, and issuing the command


cvs -d anoncvs@cvs.tuxbox-cvs.sourceforge.net:/cvs/tuxbox -z3 co -f -r newmake -P .


Note the period at the end of the previous line! This command checks out the newmake files, and for the cases where no newmake version is available, the HEAD version.

In HEAD, there are two files cdk/root/etc/init.d/rcS and root/etc/init.d/rcS.insmod. In newmake, these are instead products, which are generated from its source root/etc/init.d/rcS.m4. It is therefore advisable to delete cdk/root/etc/init.d/rcS and cdk/root/etc/init.d/rcS.insmod, just to be on the safe side.

At this point, it may be desirable to apply some source patches to the sources. If you are compiling for the first time, it is advisable not to apply patches. If problems occur, it is much easier (both technically and socially) to help someone who is using the "unmodified CVS sources".
Configuring

Next some intermediate files are generated. Change to the cdk subdirectory, and issue the command

./autogen.sh

(with no arguments). This creates, among other things, a shell script called configure. This script is executed, given a number of options, to set up the system for building an image/a yadd according to the users wishes. For a complete list of options, use the command ./configure --help. This guide will only describe a typical use, and some other options the author happens to consider useful. The spirit of the configuration options are like in typical GNU tools. A typical use, compatible with the selection above, may be

./configure --prefix=/tuxbox --with-cvsdir=/tuxbox/head --enable-maintainer-mode

The --with-cvs-dir states where the sources are located (should have a subdirectory cdk), while the --prefix states that a number of important directories are to be created as subdirectories of said directory. Their location can be further influenced by some other configuration options, ./configure --help produces the full list. --enable-maintainer-mode is practical, also for not-maintainers, since it enables the created Makefiles to be automatically rebuild when the need arise (for example after some software updates).

There are other useful options available; some are being discussed below.

Please examine the output of autogen for errors and warnings. The warning

/usr/local/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES

from autogen.sh can be ignored, as well as these warnings from configure:

configure: WARNING: using tuxbox mklibs
checking for mkcramfs... no
configure: WARNING: using tuxbox cramfs
checking for mkjffs2... no
checking for mkfs.jffs2... no
configure: WARNING: using tuxbox mkfs.jffs2
checking for mksquashfs... no
configure: WARNING: using tuxbox squashfs

Note
The reader comparing this document to similar descriptions from "the dark ages" have noted, that the option --with-targetruleset=[standard,flash] is no longer used. During "the dark ages" it was necessary to, during configuration time, restrict yourself to building either yadds, or images. In newmake this is no longer necessary.
Warning
Do not try to build as root!
Compiling

The high-level make targets relevant for building (full) images are: flash-[neutrino,enigma,all]-[cramfs,squashfs,jffs2,all]-[1x,2x,all]. For YADD-builds, these are: yadd-[neutrino,enigma,all]. For example, the command


make flash-neutrino-jffs2-all yadd-enigma
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Thank you I do have the CVS and am working in a pre-built Dbox VM appliance-

Is that also for just a patch file (neutrino) That seeems to be for an entire image - I don't get the difference.
I have seen this (similar with different switches for config :-? )

Just to explain I have seen diffs posted on this forum and then someone makes them into neutrino patches - that is what I want to do
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Code: Alles auswählen

y@y-desktop:~/tuxbox/tuxbox-cvs$ cd cdk
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ./autogen.sh

I am testing that you have the required versions of libtool, autoconf,
automake, make, gettext, gcc, and g++.

checking for libtool >= 1.4.2 ... yes (version 1.5.22)
checking for autoconf >= 2.57a ... yes (version 2.59)
checking for automake >= 1.8 ... yes (version 1.9.6)
checking for gettext >= 0.12.1 ... yes (version 0.14.5)
checking for make >= 3.80 ... yes (version 3.81)
checking for gcc >= 3.0 or = 2.95 ... yes (version 4.0.3)
checking for g++ >= 3.0 or = 2.95 ... yes (version 4.0.3)

Generating configuration files for tuxbox-cdk, please wait....
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
configure.ac:9: installing `./config.guess'
configure.ac:9: installing `./config.sub'
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./COPYING'
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ./configure

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 a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 for style of include used by make... GNU
checking dependency style of gcc... none
checking for apps directory... configure: WARNING: appsdir /home/y/tuxbox/tuxbox-cvs/cdk/apps not found
checking for boot directory... configure: WARNING: bootdir /home/y/tuxbox/tuxbox-cvs/cdk/boot not found
checking for driver directory... configure: WARNING: driverdir /home/y/tuxbox/tuxbox-cvs/cdk/driver not found
checking for hostapps directory... configure: WARNING: hostappsdir /home/y/tuxbox/tuxbox-cvs/cdk/hostapps not found
checking for m4... /usr/bin/m4
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for mkcramfs... /usr/local/bin/mkcramfs
checking for mkjffs2... no
checking for mkfs.jffs2... /usr/local/bin/mkfs.jffs2
checking uboot rules... done
checking linux rules... done
checking linux24 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 automount rules... done
checking nfs_utils rules... done
checking fuse rules... done
checking fusekernel rules... done
checking djmount rules... done
checking ftpd rules... done
checking module_init_tools rules... done
checking modutils rules... done
checking netkit_telnet rules... done
checking portmap rules... done
checking procps rules... done
checking udev rules... done
checking watchdog rules... done
checking mrouted rules... done
checking samba rules... done
checking cramfs rules... done
checking squashfs rules... done
checking dosfstools rules... done
checking libboost rules... done
checking libcommoncplusplus rules... done
checking libcrypto rules... done
checking libcurl rules... done
checking libdirectfb rules... done
checking libdirectfbpp rules... done
checking libppdirectfb rules... done
checking libdvb rules... done
checking libdvbpsi rules... done
checking libexpat rules... done
checking libffi rules... done
checking libfreetype rules... done
checking libfribidi rules... done
checking libid3tag rules... done
checking libgmp rules... done
checking libmad rules... done
checking libncurses rules... done
checking libjpeg rules... done
checking libungif rules... done
checking libpcap rules... done
checking libpng rules... done
checking libreadline rules... done
checking libsdl rules... done
checking libsigc rules... done
checking libvorbisidec rules... done
checking libxml2 rules... done
checking libz rules... done
checking libglib rules... done
checking libiconv rules... done
checking libtool rules... done
checking libFLAC rules... done
checking bzip2 rules... done
checking console_data rules... done
checking console_tools rules... done
checking directfb_examples rules... done
checking fbset rules... done
checking lirc rules... done
checking lsof rules... done
checking ssh rules... done
checking tcpdump rules... done
checking bonnie rules... done
checking vdr rules... done
checking lufs rules... done
checking dropbear rules... done
checking kermit rules... done
checking wget rules... done
checking ncftp rules... done
checking hdparm rules... done
checking e2fsprogs rules... done
checking utillinux rules... done
checking parted rules... done
checking hddtemp rules... done
checking xfsprogs rules... done
checking smartmontools rules... done
checking ccache rules... done
checking cabextract rules... done
checking msttf rules... done
checking gdb rules... done
checking insight rules... done
checking ltrace rules... done
checking strace rules... done
checking nano rules... done
checking mc rules... done
checking joe rules... done
checking bash rules... done
checking kaffe rules... done
checking kaffeh rules... done
checking gnuboy rules... done
checking scummvm rules... done
checking sdldoom rules... done
checking tinygl rules... done
checking dvbdate rules... done
checking dvbstream rules... done
checking dvbtext rules... done
checking dvbtune rules... done
checking vls rules... done
checking bluez_hcidump rules... done
checking bluez_libs rules... done
checking bluez_pan rules... done
checking bluez_sdp rules... done
checking bluez_utils rules... done

summary:
----------------------------------------
target cpu:                     823
kernel:                         2.4.x
glibc-pthreads:                 linuxthreads
target:                         powerpc-tuxbox-linux-gnu
host:                           i686-pc-linux-gnu
flash rules:                    yes
target prefix:                  /dbox2/cdkroot
host prefix:                    /dbox2/cdk
boot prefix:                    /dbox2/tftpboot
build prefix:                   /home/y/tuxbox/tuxbox-cvs/cdk
root partition size:            0x660000
default locale:                 deutsch
serversupport:                  /dbox2/serversupport
checkImage:                     true
target apps directory:          missing
boot directory:                 missing
driver directory:               missing
host apps directory:            missing
logo directory:                 /home/y/tuxbox/tuxbox-cvs/cdk/logos
customization directory:        /home/y/tuxbox/tuxbox-cvs/cdk
ucode directory:                NONE
GNU server:                     ftp.gwdg.de/pub/misc/gnu/ftp/gnu
default server:                 tuxbox.berlios.de/pub/tuxbox/cdk/src
update http prefix:
IDE support:                    no
Ext2/3 support for IDE:         no
XFS support for IDE:            no
NFS server:                     no
Samba server:                   no
dosfstools:
Neutrino UPnP-support:          no
FLAC support:                   no
German keymaps:                 no
----------------------------------------
ccache support:                 no
ccache installdir:              /usr/bin

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


******************************************************************
*                       !!!WARNING!!!                            *
* one or more of your CVS source directories could not be found, *
* (for details see above), did you maybe supply an incorrect     *
*  --with-cvsdir argument to configure?                          *
*                       !!!WARNING!!!                            *
******************************************************************

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/etc/network/Makefile
config.status: creating root/share/Makefile
config.status: creating root/share/udhcpc/Makefile
config.status: creating rules-downcheck.pl
config.status: executing depfiles commands
config.status: executing rules-downcheck-chmod commands
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ cd $CP
y@y-desktop:~$ ls
Desktop  tuxbox
y@y-desktop:~$ ./configure --with-cvsdir="$CP"
bash: ./configure: No such file or directory
y@y-desktop:~$ ./configure --with-cvsdir="~/tuxbox/tuxbox-cvs"
bash: ./configure: No such file or directory
y@y-desktop:~$ ./configure --with-cvsdir="/home/y/tuxbox/tuxbox-cvs"
bash: ./configure: No such file or directory
y@y-desktop:~$ ./configure --with-cvsdir="/home/y/tuxbox/tuxbox-cvs/cdk"
bash: ./configure: No such file or directory
y@y-desktop:~$ cd tuxbox/tuxbox-cvs/cdk/
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ make neutrino
false || \
        wget -c --passive-ftp -P Archive ftp://ftp.gwdg.de/pub/misc/gnu/ftp/gnu/../../../gcc/releases/gcc-3.4.6/gcc-core-3.4.6.tar.bz2 || \
        wget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/gcc-core-3.4.6.tar.bz2
--16:13:06--  ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.4.6/gcc-core-3.4.6.tar.bz2
           => `Archive/gcc-core-3.4.6.tar.bz2'
Auflösen des Hostnamen »ftp.gwdg.de«.... 134.76.12.3
Verbindungsaufbau zu ftp.gwdg.de|134.76.12.3|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /pub/misc/gcc/releases/gcc-3.4.6 ... fertig.
==> PASV ... fertig.    ==> RETR gcc-core-3.4.6.tar.bz2 ... fertig.
Länge: 13.366.790 (13M) (unmaßgeblich)

100%[==================================================================================================>] 13.366.790   115.72K/s    ETA 00:00

16:16:26 (103.82 KB/s) - »Archive/gcc-core-3.4.6.tar.bz2« gespeichert [13366790]

false || \
        wget -c --passive-ftp -P Archive ftp://ftp.gwdg.de/pub/misc/gnu/ftp/gnu/../../../gcc/releases/gcc-3.4.6/gcc-g++-3.4.6.tar.bz2 || \
        wget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/gcc-g++-3.4.6.tar.bz2
--16:16:26--  ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.4.6/gcc-g++-3.4.6.tar.bz2
           => `Archive/gcc-g++-3.4.6.tar.bz2'
Auflösen des Hostnamen »ftp.gwdg.de«.... 134.76.12.3
Verbindungsaufbau zu ftp.gwdg.de|134.76.12.3|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /pub/misc/gcc/releases/gcc-3.4.6 ... fertig.
==> PASV ... fertig.    ==> RETR gcc-g++-3.4.6.tar.bz2 ... fertig.
Länge: 2.511.332 (2.4M) (unmaßgeblich)

100%[==================================================================================================>] 2.511.332     59.08K/s    ETA 00:00

16:17:02 (87.33 KB/s) - »Archive/gcc-g++-3.4.6.tar.bz2« gespeichert [2511332]

false || \
        wget -c --passive-ftp -P Archive ftp://ftp.gnu.org/gnu/glibc/glibc-2.3.6.tar.bz2 || \
        wget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/glibc-2.3.6.tar.bz2
--16:17:02--  ftp://ftp.gnu.org/gnu/glibc/glibc-2.3.6.tar.bz2
           => `Archive/glibc-2.3.6.tar.bz2'
Auflösen des Hostnamen »ftp.gnu.org«.... 140.186.70.20
Verbindungsaufbau zu ftp.gnu.org|140.186.70.20|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /gnu/glibc ... fertig.
==> PASV ... fertig.    ==> RETR glibc-2.3.6.tar.bz2 ... fertig.
Länge: 14.014.977 (13M) (unmaßgeblich)

100%[==================================================================================================>] 14.014.977   164.23K/s    ETA 00:00

16:22:57 (71.82 KB/s) - »Archive/glibc-2.3.6.tar.bz2« gespeichert [14014977]

false || \
        wget -c --passive-ftp -P Archive ftp://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.6.tar.bz2 || \
        wget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/glibc-linuxthreads-2.3.6.tar.bz2
--16:22:57--  ftp://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.6.tar.bz2
           => `Archive/glibc-linuxthreads-2.3.6.tar.bz2'
Auflösen des Hostnamen »ftp.gnu.org«.... 140.186.70.20
Verbindungsaufbau zu ftp.gnu.org|140.186.70.20|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /gnu/glibc ... fertig.
==> PASV ... fertig.    ==> RETR glibc-linuxthreads-2.3.6.tar.bz2 ... fertig.
Länge: 243.534 (238K) (unmaßgeblich)

100%[==================================================================================================>] 243.534       88.38K/s

16:23:01 (88.24 KB/s) - »Archive/glibc-linuxthreads-2.3.6.tar.bz2« gespeichert [243534]

false || \
        wget -c --passive-ftp -P Archive ftp://ftp.de.kernel.org/pub/linux/devel/binutils/binutils-2.17.50.0.9.tar.bz2 || \
        wget -c --passive-ftp -P Archive ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-2.17.50.0.9.tar.bz2 || \
        wget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/binutils-2.17.50.0.9.tar.bz2
--16:23:01--  ftp://ftp.de.kernel.org/pub/linux/devel/binutils/binutils-2.17.50.0.9.tar.bz2
           => `Archive/binutils-2.17.50.0.9.tar.bz2'
Auflösen des Hostnamen »ftp.de.kernel.org«.... 82.96.64.7, 62.201.161.85, 195.71.9.196, ...
Verbindungsaufbau zu ftp.de.kernel.org|82.96.64.7|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /pub/linux/devel/binutils ... fertig.
==> PASV ... fertig.    ==> RETR binutils-2.17.50.0.9.tar.bz2 ... fertig.
Länge: 13.248.675 (13M) (unmaßgeblich)

100%[==================================================================================================>] 13.248.675   290.66K/s    ETA 00:00

16:25:01 (110.18 KB/s) - »Archive/binutils-2.17.50.0.9.tar.bz2« gespeichert [13248675]

/usr/bin/install -c -d /dbox2/cdkroot/bin
/usr/bin/install: kann Verzeichnis „/dbox2“ nicht anlegen: Permission denied
make: *** [.deps/directories] Fehler 1
y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$
What happened :lol: Do I have a neutrino somewhere ... :gruebel:
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: Movieplayer random play & playlist

Beitrag von seife »

you need to call ./configure --... from the cdk/ directory, not the one above cdk.
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Code: Alles auswählen

y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ./configure
I did didn't I??

Come you guys someone just make a neutrino - I am going to forget what on earth i did in the code before I even get to test it..... Eventually I might get this but for now let me code... :-?
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

Code: Alles auswählen

Come you guys someone just make a neutrino
and then every hour a new version if you have modified the code again? I have a family and other hobbies too :D

learn it or leave it :evil:
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

LOL I appreciate that - The guides assume too much previous knowledge and understanding fro me.

I have had a response on my other forum which is a little clearer so will persist. Believe me I will be happy when I understand how...
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Re: Movieplayer random play & playlist

Beitrag von Houdini »

./configure --prefix=/tuxbox --with-cvsdir=/tuxbox/head --enable-maintainer-mode
->

Code: Alles auswählen

y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ./configure
why don't you read the posts from other people?
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

@Houdini: lass es, er will nicht :(
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

Houdini hat geschrieben:
./configure --prefix=/tuxbox --with-cvsdir=/tuxbox/head --enable-maintainer-mode
->

Code: Alles auswählen

y@y-desktop:~/tuxbox/tuxbox-cvs/cdk$ ./configure
why don't you read the posts from other people?
:evil: I do - I was just struggling to understand the basics - There are several variants of that config line switches and I did not know which or what the impllications of running the wrong one.

I have it sorted now thanks, with some patient help from WOD forum and I am progressing and testing the code.

I currently have success with a random and unique play of a TS folder. It is currently hard coded in and needs an option moving to the conf file. I am also looking at possibly changing the folder select (When multi-select) from the OK button to RC Input Blue or something, if I can.

Sorry for messing you guys a bit, just a slow learner I guess ...

The code for your interest ...

Code: Alles auswählen

cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
Using this option to access a repository which some users write to may
cause intermittent sandbox corruption.
Index: movieplayer.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/gui/movieplayer.cpp,v
retrieving revision 1.158
diff -U3 -r1.158 movieplayer.cpp
--- a/movieplayer.cpp	9 Dec 2007 23:30:53 -0000	1.158
+++ b/movieplayer.cpp	27 Jan 2008 01:30:04 -0000
@@ -149,6 +149,8 @@
 #endif /* __USE_FILE__OFFSET64 */
 ringbuffer_t *ringbuf;
 bool bufferfilled;
+bool g_settings_streaming_allow_random=true;
+std::string played;
 int streamingrunning;
 unsigned short pida, pidv,pidt;
 short ac3;
@@ -1661,11 +1663,11 @@
   //-----------------------------------
   for(;;)
   {
-	if (isTerminated) return NULL;  // abort
-	
 	//-- check low level ... --  
 	if ( level < 2 )
-	{	
+	{
+		if (isTerminated) return NULL;  // abort
+	
 		//-- ... and freeze playback --
   		if (!freezed)
   		{
@@ -1681,6 +1683,8 @@
 	//-- in freezed state --
 	else if (freezed)
 	{
+		if (isTerminated) return NULL;  // abort
+
 		//-- wait for buffer filled or ... --
 		if ( level < nSegsOpt )
 		{
@@ -3023,8 +3027,53 @@
 				//-- eventually activate autoplay for next file in a playlist --
 				if( (ctx->itChanged == false) && ctx->lst_cnt )
 				{
-					ctx->it++;
-					if(ctx->it < ctx->lst_cnt)	ctx->itChanged = true;
+				//Hardcoded to test only; want a MP setting in conf- Jan08
+				g_settings_streaming_allow_random == true;
+				fprintf(stderr, "[mp] BoolRandom? = [%d]\n", g_settings_streaming_allow_random );
+				//Can I add a new MP Setting to the .conf file? - Jan08
+					if (!g_settings_streaming_allow_random)
+					{
+						ctx->it++;
+						if(ctx->it < ctx->lst_cnt)   ctx->itChanged = true;
+						fprintf(stderr, "[mp] Playlist item? = [%d]\n", ctx->it );
+					}
+					else
+					{
+				//-- This will probably just play random files indefinitely with repeats until [Home key] to exit
+						srand(time(0));
+						// generates random number between 1 and lst_cnt - Jan08
+						std::string str_it;
+						std::string it_check;
+						int loc;
+						bool find_unique = false;
+						int it_cnt = 0;
+						// Make playlist item unique - No repeats until all played once
+						// Builds a string of used indexes and then checks instring.
+						while(!find_unique) {
+							ctx->it = rand() % (ctx->lst_cnt-1) + 1;
+							std::stringstream ss;
+							ss << "A";
+							ss << ctx->it;
+							ss << "A";
+							it_check = ss.str();
+							it_cnt++;
+							fprintf(stderr, "[mp] Check is Unique it = [%s]\n", it_check.c_str() );
+							loc = played.find(it_check, 0);
+							fprintf(stderr, "[mp] -1 is unique = [%d]\n", loc );
+								if ( loc == -1 || it_cnt == (ctx->lst_cnt-1)) {   // && it_cnt == (ctx->lst_cnt-1)
+								find_unique = true;
+								fprintf(stderr, "[mp] Is unique\n");
+								} else {
+								it_check = "";
+								}
+						}
+
+						ctx->itChanged = true;
+						fprintf(stderr, "[mp] Random playlist item? = [%d]\n", ctx->it );
+				// No Repeat - Simple build string of played items - Needs declaring!
+						played = played + it_check;
+						fprintf(stderr, "[mp] Played items = [%s]\n", played.c_str() );
+					}
 				}
 				close(ctx->inFd);
 			}
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

I have run ./autogen and ./configure with parameters and then make and been making changes and testing the patches just fine.

Can I edit any files within the tree tuxbox_cvs/ without needing to ./autogen and .configure again? Or are there areas within the tree that require re-compiling?
For example I am editing movieplayer.cpp, filebrowser.cpp, filebrowser.h, locals.h, english.locale and then just running make neutrino
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Re: Movieplayer random play & playlist

Beitrag von Houdini »

Can I edit any files within the tree tuxbox_cvs/ without needing to ./autogen and .configure again?
yes, you only have to reconfigure the buildsystem if the buildsystem itself has changed or new or updated packages have been included
ozbodd
Interessierter
Interessierter
Beiträge: 94
Registriert: Donnerstag 24. März 2005, 18:25

Re: Movieplayer random play & playlist

Beitrag von ozbodd »

@Houdini thanks

OK Here is where I am at.

movieplayer.cpp, when multi-select is true, is playng random and unique files from the playlist correctly.

Code: Alles auswählen

cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
Using this option to access a repository which some users write to may
cause intermittent sandbox corruption.
Index: movieplayer.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/gui/movieplayer.cpp,v
retrieving revision 1.158
diff -U3 -r1.158 movieplayer.cpp
--- a/movieplayer.cpp	9 Dec 2007 23:30:53 -0000	1.158
+++ b/movieplayer.cpp	27 Jan 2008 16:06:54 -0000
@@ -149,6 +149,9 @@
 #endif /* __USE_FILE__OFFSET64 */
 ringbuffer_t *ringbuf;
 bool bufferfilled;
+bool allow_random=true;
+int it_cnt;
+std::string played;
 int streamingrunning;
 unsigned short pida, pidv,pidt;
 short ac3;
@@ -1661,11 +1664,11 @@
   //-----------------------------------
   for(;;)
   {
-	if (isTerminated) return NULL;  // abort
-	
 	//-- check low level ... --  
 	if ( level < 2 )
-	{	
+	{
+		if (isTerminated) return NULL;  // abort
+	
 		//-- ... and freeze playback --
   		if (!freezed)
   		{
@@ -1681,6 +1684,8 @@
 	//-- in freezed state --
 	else if (freezed)
 	{
+		if (isTerminated) return NULL;  // abort
+
 		//-- wait for buffer filled or ... --
 		if ( level < nSegsOpt )
 		{
@@ -3023,8 +3028,66 @@
 				//-- eventually activate autoplay for next file in a playlist --
 				if( (ctx->itChanged == false) && ctx->lst_cnt )
 				{
-					ctx->it++;
-					if(ctx->it < ctx->lst_cnt)	ctx->itChanged = true;
+				//Hardcoded to test only; want a MP setting in conf- Jan08
+				// allow_random == true;
+				fprintf(stderr, "[mp] BoolRandom? = [%d]\n", allow_random );
+				//Can I add a new MP Setting to the .conf file? - Jan08
+					if (!allow_random)
+					{
+						ctx->it++;
+						if(ctx->it < ctx->lst_cnt)   ctx->itChanged = true;
+						fprintf(stderr, "[mp] Sequential Playlist Item = [%d]\n", ctx->it );
+					}
+					else
+					{
+					//-- This will play random files indefinitely without repeats until [Home key] to exit
+						srand(time(0));
+						// generates random number between 1 and lst_cnt - Jan08
+						std::string str_it;
+						std::string it_check;
+						int loc;
+						bool find_unique = false;
+						// Make playlist item unique - No repeats until all played once
+						// Builds a string of used indexes and then checks instring.
+						while(!find_unique) {
+							ctx->it = rand() % (ctx->lst_cnt-1) + 1;
+							// Conv Int To Sting and Concatenate a unique identifier for search in string
+							std::stringstream ss;
+							ss << ctx->it;
+							ss << "A";
+							it_check = ss.str();
+							it_cnt++;
+							fprintf(stderr, "[mp] it_cnt = [%d]\n", it_cnt );
+							// Start played with identifier
+							if (it_cnt ==1 ) {
+								played = played + "A";
+							}
+							// Reset played after all tracks played
+							if (it_cnt > (ctx->lst_cnt-1) ) {
+								played = "A";
+								it_cnt = 1;
+							}
+							fprintf(stderr, "[mp] Check is Unique it = [%s]\n", it_check.c_str() );
+							// find in string if played before
+							loc = played.find("A"+it_check, 0);
+							fprintf(stderr, "[mp] -1 is unique = [%d]\n", loc );
+								if ( loc == -1 || it_cnt == (ctx->lst_cnt-1)) {   // && it_cnt == (ctx->lst_cnt-1)
+								find_unique = true;
+								fprintf(stderr, "[mp] Is unique\n");
+								} else {
+								it_check = "";
+								}
+						}
+						ctx->itChanged = true;
+						fprintf(stderr, "[mp] Random playlist item = [%d]\n", ctx->it );
+						// No Repeat - Simply build string of played items with pattern ID wrapping
+						played = played + it_check;
+						// Prevent string overflow (Random files in blocks of 120 tracks effectively)
+						if (played.length() > 245) {
+						played = "A";
+						}
+						fprintf(stderr, "[mp] Played items = [%s]\n", played.c_str() );
+					}
 				}
 				close(ctx->inFd);
 			}

What remains is to set the varialble 'allow_random' somewhere in the menus. I am proposing using the RC input DBox button in the filebrowser to toggle Shuffle on and off (like the filter RC Blue option)

I am having problems with the next step... I am trying to declare some new variables within the locals.h, filebrowser.h and english.locals. When I do and I make the patch I am finding the DBox menu corrupts (large fonts and some missing items) I cannot see how these changes have caused this - Please take a look at the three diffs

Code: Alles auswählen

cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
Using this option to access a repository which some users write to may
cause intermittent sandbox corruption.
Index: locals.h
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/system/locals.h,v
retrieving revision 1.111
diff -U3 -r1.111 locals.h
--- a/locals.h	17 Dec 2007 19:24:19 -0000	1.111
+++ b/locals.h	27 Jan 2008 15:57:51 -0000
@@ -339,6 +339,8 @@
 	LOCALE_FILEBROWSER_SCAN,
 	LOCALE_FILEBROWSER_SELECT,
 	LOCALE_FILEBROWSER_SHOWRIGHTS,
+	LOCALE_FILEBROWSER_SHUFFLE_ACTIVE,
+	LOCALE_FILEBROWSER_SHUFFLE_INACTIVE,
 	LOCALE_FILEBROWSER_SORT_DATE,
 	LOCALE_FILEBROWSER_SORT_NAME,
 	LOCALE_FILEBROWSER_SORT_NAMEDIRSFIRST,

Code: Alles auswählen

cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
Using this option to access a repository which some users write to may
cause intermittent sandbox corruption.
Index: english.locale
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/data/locale/english.locale,v
retrieving revision 1.375
diff -U3 -r1.375 english.locale
--- a/english.locale	4 Jan 2008 22:24:54 -0000	1.375
+++ b/english.locale	27 Jan 2008 15:53:52 -0000
@@ -312,6 +312,8 @@
 filebrowser.scan Scanning folder
 filebrowser.select Select
 filebrowser.showrights Show File Permissions
+filebrowser.shuffle.active Shuffle On
+filebrowser.shuffle.inactive Shuffle Off
 filebrowser.sort.date (date)
 filebrowser.sort.name (filename)
 filebrowser.sort.namedirsfirst (filename2)

Code: Alles auswählen

cvs: WARNING: Read-only repository access mode selected via `cvs -R'.
Using this option to access a repository which some users write to may
cause intermittent sandbox corruption.
Index: filebrowser.h
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/gui/filebrowser.h,v
retrieving revision 1.40
diff -U3 -r1.40 filebrowser.h
--- a/filebrowser.h	14 Nov 2004 20:38:54 -0000	1.40
+++ b/filebrowser.h	27 Jan 2008 15:56:27 -0000
@@ -190,6 +190,7 @@
 
 		std::string		Path;
 		bool			Multi_Select;
+		bool			allow_random;
 		bool			Dirs_Selectable;
 		bool        Dir_Mode;
 		CFileFilter *	Filter;
No other changes have been made in the source (apart from the working movieplayer.cpp)

Any ideas?
I am uploading neutrino to /tmp and restarting it.
Perhaps I have to kill and restart some other file as well as neutrino??
Or will this require a compllete image flash to test - Trying to avoid this...
Tommy
Tuxboxer
Tuxboxer
Beiträge: 4332
Registriert: Dienstag 7. Mai 2002, 17:04

Re: Movieplayer random play & playlist

Beitrag von Tommy »

as usual: if u test a second neutrino u have to kill start_neutrino and THEN neutrino. Otherwise the box shutting down (OR the normal neutrino start again and again) with killing neutrino