SourceForge Logo

Monday, November 28, 2005

Requirements

DreamBoxDev is a development IDE that, for being able to carry out compilations, is leaned to Tuxbox CDK for DreamBox.

The platform used for the development is WIN32, therefore it turns out necessary, for being able to correctly install the cross-compiling of the CDK, to install a LinuxBox before, that is the CYGNWIN.
Of continuation the procedure to follow:

  1. To install the CygnWin: http://www.cygwin.com/setup.exe . Fundamental is to install all the part ' Development: Devel' (comprised gettext 0,14,1).
  2. To install (that is recompile!) the CDK. In net a simple script shell (see again and corrected from me is available) that it allows one long but simple installation. The rows can be downloaded here: http://dreamboxdev.sourceforge.net/files/cygwin-cdk.sh
  • Copy the file into some directory (for es./home/username/
  • chmod +x cygnwin-cdk.sh
  • /cygnwin-cdk.sh

If all it goes well, to the fine ones you will find again your development environment for Dreambox on Windows!

Obviously, being the DreamBoxDev an application written in C #, is necessary NET. The framework it can be unloaded here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=262d2ë3-f589-4842-8157-034d1e7cfá3&displaylang=en

Problems find to you during the compilation of the CDK

I hold to specify that normally these problems would not have to happen; I have recompiled various times the CDK under Linux and I have not never had problems. Perhaps in Cygwin the various things are different... however it is these are the problems that I have had.

DirectFB:

DirectFB does not find the libpthreads: for dark reasons to me, the compilation of the DirectFB finished with a message of error dictated from the fact that the libpthreads had not been found... although there were! After some troubleshooting I have resolved the problem:

cd ~/dbox2/cdk/powerpc-tuxbox-linux-gnu/lib

rm libpthread.so

ln - s libpthread.so.0 libpthread.so

libxml2-2.4.30 :

For dark reasons to me, the tar unloaded from the Makefile of the CDK for libxml2-2.4.30.tar.gz it fails during the uncompression of the files. Perhaps it is a problem of version of tar. However it is, like workaround can be uncompress the archives with (for ex.) winrar and then to reconstruct it with the same one tar through the command:

tar cvfz libxml2-2.4.30.tar.gz/path_temporaneo/libxml2-2.4.30

Therefore to copy the rows recreated under: ... /tuxbox-cvs/cdk/Archive

* gettext *:

msgfmt *:

During the phase of installation of the demanded package gettext like requirement from the tuxbox cdk, some error happens that me is not clear. The fact is that the commands * gettext * and msgfrmt * under/usr/local/bin are corrupts.

The version that I hold installed with cigwin (that one that is installed automatically in phase of installation of part DEVEL) is the 0.14.1. This works and is under: .

I have commented the download of gettext the 0,12 from the script sh, why verification the problem in issue. Eventually you wanted to insert it and you would obtain the aforesaid problem, to pact to have installed gettext the 0,14,1 (or sup) you can make as it follows.

Mine workaround for the problem in issue it is:

rm/usr/local/bin/*gettext *

cd/usr/local/bin

for in/usr/bin/*gettext *; I give ln - s $$i.; done

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

rm/usr/local/bin/msg *

cd/usr/local/bin

for in/usr/bin/msg *; I give ln - s $$i.; dome

This section is in continuous modernization.


Versione Italiana

DreamBoxDev è un ambiente di sviluppo che, per poter effettuare compilazioni, si appoggia al Tuxbox CDK per DreamBox.
La piattaforma utilizzata per lo sviluppo è WIN32, quindi risulta necessario, per poter installare correttamente l'ambiente cross-compiling del CDK, installare prima un LinuxBox, ovvero il CYGNWIN.
Di seguito la procedura da seguire:

  1. Installare il CygnWin: http://www.cygwin.com/setup.exe. E' fondamentale installare tutta la parte 'Development: Devel' (compreso gettext 0.14.1).
  2. Installare (ovvero ricompilare!) il CDK. In rete è disponibile un semplice script shell (riveduto e corretto da me) che permette una lunga ma semplice installazione. Il file può essere prelevato qui: http://dreamboxdev.sourceforge.net/files/cygwin-cdk.sh
  • Copiare il file nella home dell'utente cygnwin (per es. /home/username/
  • chmod +x cygnwin-cdk.sh
  • ./cygnwin-cdk.sh

Se tutto va bene, alla fine vi ritroverete il vostro ambiente di sviluppo per Dreambox su Windows!

Ovviamente, essendo il DreamBoxDev un'applicazione scritta in C#, è necessario .NET. Il framework può essere scaricato qui:
http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en

Problemi riscontrati durante la compilazione del CDK

Tengo a precisare che normalmente questi problemi non dovrebbero accadere; io ho ricompilato diverse volte il CDK sotto Linux e non ho mai avuto problemi. Forse in Cygwin le cose sono un pò diverse...comunque sia questi sono i problemi che ho avuto io.

DirectFB:

DirectFB non trova le libpthreads: per motivi a me oscuri, la compilazione del DirectFB terminava con un messaggio di errore dettato dal fatto che le libpthreads non erano state trovate...sebbene ci fossero! Dopo un pò di smanettamenti ho risolto il problema cosi:

cd ~/dbox2/cdk/powerpc-tuxbox-linux-gnu/lib

rm libpthread.so

ln -s libpthread.so.0 libpthread.so

libxml2-2.4.30:

Per motivi a me oscuri, il tar scaricato dal Makefile del CDK per libxml2-2.4.30.tar.gz fallisce durante lo scompattamento dei files. Forse è un problema di versione di tar. Comunque sia, come workaround si può scompattare l'archivio con (per es.) winrar e poi ricostruirlo con lo stesso tar attraverso il comando:

tar cvfz libxml2-2.4.30.tar.gz /path_temporaneo/libxml2-2.4.30

Quindi copiare il file ricreato sotto: ..../tuxbox-cvs/cdk/Archive

*gettext*:

msgfmt*:

Durante la fase di installazione del pacchetto gettext richiesta come requisito dal tuxbox cdk, avviene qualche errore che non mi è chiaro. Il fatto è che i comandi *gettext* e msgfrmt* sotto /usr/local/bin sono corrotti.

La versione che tengo installata con cigwin (quella cioè installata automaticamente in fase di installazione della parte DEVEL) è la 0.14.1. Questa funziona e sta sotto: /usr/bin.

Ho commentato il download del gettext 0.12 dallo script sh, perchè si verifica il problema in questione. Eventualmente voleste inserirlo ed otterreste il suddetto problema, a patto di aver installato il gettext 0.14.1 ( o sup) potete fare come segue.

Il mio workaround per il problema in questione è:

rm /usr/local/bin/*gettext*

cd /usr/local/bin

for i in /usr/bin/*gettext*; do ln -s $i .; done

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

rm /usr/local/bin/msg*

cd /usr/local/bin

for i in /usr/bin/msg*; do ln -s $i .; dome

Questa sezione è in continuo aggiornamento.