EnvironmentSetup/it

From OOo4Kids

Jump to: navigation, search

OOo4Kids

Setup dell'Ambiente



  • Setup per Linux

Bozza

Setup dell'ambiente Linux

  • Setup per Mac OS X

Bozza

Setup dell'ambiente Mac OS X

  • Setup per Windows

Bozza

Setup dell'ambiente su Windows XP (o successivi)





Questa è una guida temporanea per il setup del tuo ambiente di sviluppo su MacOS e Linux.

Dato che non abbiamo ancora un repository per il codice per OOo4Kids, utilizziamo il codice sorgente per OOo 3.0 milestone 47 e su quello applichiamo alcune modifiche. Per vostra informazione (FYI) la milestone 47 rappresenta di fatto la versione di OOo 3.2.

Prerequisiti

Avrai bisogno almento dei seguenti packages. Usate liberamente, copiate/incollate quello di cui avete bisogno ;-)

sudo apt-get install libarchive-zip-perl
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libpam-dev
sudo apt-get install gperf
sudo apt-get install python-dev
sudo apt-get install curl
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libxaw7-dev
sudo apt-get install libxrandr-dev
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install libgconf2-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install autoconf

Checkout del codice sorgente

L'obiettivo di questo step è ottenere il codice sorgente di OpenOffice 3.0 milestone 47. La dimensione totale è di 4,4 Gb. Per questo sarà necessario un bel po di tempo a seconda della tua connessione e della larghezza di banda disponibile. (ad esempio: con la mia ADSL da 1Mb ho impiegato circa 4 ore)

In primo luogo hai bisogno di installare il subversion package. Sul sistema operativo debian-like :

apt-get install subversion

Il comando da usare è questo :

svn checkout svn://svn.services.openoffice.org/ooo/tags/DEV300_m47

Ottenere la patch

The goal of this step is to get all the modifications done to the OpenOffice 3.0 to transform it in OOo4Kids. As the code is not public at the moment you have to contact a developer on the IRC chanel #EducOOo to get the necessary patch.

The most up to date archive containing everything, including the needed patch to ask is:

OOo4Kids_archive_09_05_07.tar.gz

IMPORTANT: the name of the patch does contain the date it was created. So the name ot the patch may vary :-)

Scompattare e mettere a posto la patch

  • scompattare la patch ricevuta
  • mettere ogni singolo files con la stessa struttura gerarchica della cartella DEV300_m47

Tutti i file hanno inolte un nome differente da alcune icone dello start center. E' sufficiente accettare le modifiche.

Applicare la patch

Goto the source folder :

cd /path/to/DEV300_m47

Copy the patch here


cp /path/to/the/patch/new_complete_OOo4Kids_0.3_09_05_07.diff .

First try to patch as dummy for testing:

patch --dry-run -p0 < new_complete_OOo4Kids_0.3_09_05_07.diff 

If it's ok, patch for real with:

patch  -p0 < new_complete_OOo4Kids_0.3_09_05_07.diff

Rigenerare la "configure"

E' sufficiente scrivere:

autoconf


Esportare per ccache (OPZIONALE)

ccache may save you a lot of time if you have to compile again the software. Let's say it may divide compilation time by 2 or 3 but will need an additional 1 Go disk space. Using ccache is NOT mandatory.

If you want to install ccache, you can follow the short tutorial to install ccache

When ccache is installed, it's time to make an export:

export CC="ccache gcc"
export CXX="ccache g++"

Eseguire la "configure"

Always in DEV300_m47 folder, you have different files all starting with "my_configure". Just choose the one relevant to your architecture. Let's say that you are running GNU/Linux with an Interl like processor, just type:

cat my_configure_Linux_Intel.txt

This will print on your terminal a quite big commandline to execute with all parameters. (you can change the option --with-vendor="Eric Bachard" )

The command looks like :

./configure --with-lang=fr --disable-cups --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --with-system-python ... and so on !

Copy/paste and execute this command

Il bootstrap (compilazione del dmake)

E' sufficiente scrivere il seguente comando in /path/to/DEV300_m47

./bootstrap

Source dell'ambiente di compilazione

Usa il seguente comando con Mac OS X Intel:

source MacOSXX86Env.Set.sh

Usa il seguente comando con Mac OS X PowerPC:

source MacOSXPPCEnv.Set.sh

Usa il seguente comando con Linux Intel:

source LinuxX86Env.Set.sh

Usa il seguente comando con Linux PowerPC:

source LinuxPPCEnv.Set.sh

Controlla se tutto è ok con:

set | grep OOo4Kids 

Dovresti ottere questo:

OOo4Kids=YES

Lanciare la compilazione

Usa il seguente comando:

cd instsetoo_native

E dopo :

  • su un computer piccolo ( gdium, ad esempio 512MB di RAM) :
build --all -P2
  • su un computer potente (bi-cores, un bel po di RAM... )
build --all -P2 -- -P2

oppure con il comando "time" per avere le statistiche dei tempi alla fine

  • su un computer piccolo ( gdium, ad esempio 512MB di RAM) :
time build --all -P2
  • su un computer potente (bi-cores, un bel po di RAM... )
time build --all -P2 -- -P2

... e essere pazienti !


per completare la compilazione:

export PKGFORMAT=installed
build

CTRL+C per interrompere il processo ma dopo dovrai ripetere nuovamente il comando.

CTRL+Z per mettere in pausa se vuoi liberare un po di memoria o tempi del processore per qualcos'altro temporaneamente. Per ripartire nuovamente :

fg
Tempo stimato di compilazione per la configurazione (basato su test effettivi)
µProcessor Frequenza RAM Tempo stimato
Pentium 4 HT 3.2 Ghz 2 GB ~ 7 Ore
Intel(R) Pentium(R) M 1.73GHz 1 GB ~ 7/8 Ore
AMD Athlon(tm) 64 X2 3800+ 2GHz 2 GB ~ 2/3 Ore
64bits Loongson™ 2F by STMicroelectronics 900 MHz 512 MB ~ 2 Giorni
IBM PowerPC 74xx (G4) 1,25 GHz 1,5 GB ~ 17 Ore|-
Intel Core 2 Duo 2 (Macbook pro)
(Windows XP in ana Sun VirtualBox)
2,33 GHz 2 GB ~ 12 Ore
(utilizzando build --all -P2 -- -P2)
Intel T2300 dual core (ASUS M6N)
(Ubuntu)
1.66 GHz 1.5 GB ~ 7 Ore
(utilizzando build --all -P2 -- -P2)

Completate liberamente questa tabella aggiungendo i tuoi dati

Test del risultato

No that the compilation is finish, you would probably want to try launch your OOo4kids :)

Su macOS

  • Go to /DEV300_m47/instetoo_native/unxmacxi.pro/OOo4Kids/dmg/install/fr/
  • Mount the DMG file (i.e: OOo4Kids_0.3_YYMMDD_MacOSIntel_install_fr.dmg)
  • Drag and drop the OOoKids icon to the application folder
  • Double click on OOoKids
  • The .dmg archive size is around 104 MB

Su GNU/Linux

  • Go to DEV300_m47/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install/fr/ooo4kids0.3/program
  • Execute soffice

Nota : Se vuoi copiare/incollare OOo4kids da qualche altra parte, devi trasportare anche la cartella "fr". La dimensione compressa è di circa 95 Mb.

Personal tools