Difference between revisions of "TDE arts"

From Studiosg
Jump to navigationJump to search
(Created page with 'Benvenuti nella pagina Wiki di Simone Giustetti. Lingue: [http://www.giustetti.net/wiki/index.php?title=En/TDE_arts English] - '''Italiano''' ---- == ARTS == [[trinity_deskto…')
 
(Page updated to new template)
Line 1: Line 1:
Benvenuti nella pagina Wiki di Simone Giustetti.
+
{{header_en|title=Building an Arts package for TDE| keyword={{Template:keyword_en_tde}}| description=Building, installing and configuring a working Arts package for TDE and Slackware Linux | link_page=TDE_arts}}
 
 
 
 
Lingue: [http://www.giustetti.net/wiki/index.php?title=En/TDE_arts English] - '''Italiano'''
 
 
 
----
 
  
 
== ARTS ==
 
== ARTS ==
[[trinity_desktop_environment#Prerequisiti]]
+
[[En/trinity_desktop_environment#Prerequisites | TDE - Prerequisites]]
  
'''A'''nalog '''R'''eal '''T'''ime '''S'''ynthesizer è una libreria audio utilizzata in KDE 2, KDE 3 ed in TDE avente lo scopo di simulare un sintetizzatore analogico utilizzato dall'ambiente grafico e dalle sue applicazioni. La libreria fornisce '''un sound server integrato''', il software '''artsd''', avente il compito di mixare diversi flussi sonori in tempo reale. Nelle distribuzioni Linux recenti la funziona di mixer è stata passata ad [http://www.alsa-project.org/main/index.php/Main_Page '''ALSA'''] il sottosistema sonoro del kernel Linux. La libreria ARts '''non è più attivamente supportata dal 2004''' ed è stata sostituita dalla nuova '''API Phonon''' in KDE 4.
+
'''A'''nalog '''R'''eal '''T'''ime '''S'''ynthesizer is a multimedia library used by KDE 2, KDE 3 and TDE whose main goal consists of simulating an analog synthesizer used by the desktop environments and their many applications. '''An integrated sound server''', the '''artsd''' daemon, is part of the library and is used to merge distinct sound streams in real time. In later Linux distributions the mixer function shifted to [http://www.alsa-project.org/main/index.php/Main_Page '''ALSA'''] the Linux kernel sound subsystem. ARts '''is no longer in active development and hasn't been since 2004''' when it was replaced by '''the Phonon API''' in KDE 4.
  
=== ARts su Slackware ===
+
=== ARts and Slackware ===
  
Come altri pacchetti inclusi nell'insieme dei prerequisiti, anche '''ARts è stato portato a [http://www.cmake.org cmake]''' e non richiede pertanto '''autotools''' per configurare e compilare il codice sorgente. Lo script di compilazione è basato sullo slackbuild uffciale di '''ARts per Slackware 13.0''' a cui sono state apportate alcune modifiche ed integrazioni pensate per cmake. È stata impostata '''/opt/trinity''' come directory principale del pacchetto in modo da garantire la coesistenza con KDE 4 e di uniformare ARts alle componenti compilate in precedenza. Basandosi sulla [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild documentazione ufficiale] si è imposto il flag '''-DCMAKE_SKIP_RPATH="OFF"''' al comando cmake in modo da permettere l'esecuzione di binari durante il processo di compilazione.
+
ARts is part of the prerequisite packages for TDE. Its build scripts '''were ported to [http://www.cmake.org cmake]''' therefore the '''autotools''' build suite is no longer needed to configure and compile the source code. A build script was written based on the official ''' Slackware 13.0 slackbuild script for ARts''' with some updates to integrate cmake. The  '''/opt/trinity''' directory was used as root directory for the package both to ensure a pacific coexistence with KDE 4 and to uniform ARts configuration to the other packages. The '''-DCMAKE_SKIP_RPATH="OFF"''' flag was imposed to the cmake command as suggested int the [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build how-to]. The flag will allow ARTs to execute command during the build process.
  
Lo script slackbuild preparato è contenuto nell'archivio scaricabile dal seguente [http://www.giustetti.net/resource/slackbuild/tde/35132/arts.tar.gz indirizzo]. Di seguito sono commentati gli accorgimenti adottati durante la stesura per garantire una compilazione esente da errori.
+
The slackbuild script for the ARts package is part of the archive found at the following [http://www.giustetti.net/resource/slackbuild/tde/35132/arts.tar.gz link]. Some comments to the commands used through the script to ensure a smooth build follow.
  
È innanzi tutto necessario '''pulire la cache di cmake'''. Compito eseguito dalle righe:
+
First of all you need to '''clean the cmake cache'''. Task accomplished by lines:
 +
<syntaxhighlight lang="bash">
 
   # Clean cmake cache
 
   # Clean cmake cache
 
   find . -name CMakeCache.txt -exec rm {} \;
 
   find . -name CMakeCache.txt -exec rm {} \;
In seguito &egrave; necessario '''creare una directory''' ove verranno compilati i sorgenti e salvati i binari prodotti. ''La directory dovr&agrave; chiamarsi '''build''' perch&egrave; cmake la riconosca'':
+
</syntaxhighlight>
 +
Then you must '''create a  directory''' where to compile the source code and store output files. ''Cmake seems to have a preference for '''build''' as directory name. It won't work otherwise'':
 +
<syntaxhighlight lang="bash">
 
   # Create a directory where to build source (cmake wants the name to be build).
 
   # Create a directory where to build source (cmake wants the name to be build).
 
   cd ${TMP}/tmp-${PRGNAM}
 
   cd ${TMP}/tmp-${PRGNAM}
 
   mkdir build
 
   mkdir build
 
   cd build
 
   cd build
Bisogna poi '''configurare i percorsi delle librerie Qt''' perch&egrave; le stesse siano trovate dagli script durante la compilazione:
+
</syntaxhighlight>
 +
'''Qt library paths are needed''' for scripts to find binary files while building the source code:
 +
<syntaxhighlight lang="bash">
 
   # Add temporary paths to handle new libraries during build
 
   # Add temporary paths to handle new libraries during build
 
   export QTDIR=/opt/trinity
 
   export QTDIR=/opt/trinity
Line 32: Line 32:
 
   export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX}
 
   export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX}
 
   export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH
 
   export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH
Ed infine &egrave; possibile lanciare il comando cmake con le opzioni necessarie:
+
</syntaxhighlight>
  cmake ${TMP}/tmp-${PRGNAM}/${PRGNAM}-${VERSION} \
+
Finally you can run cmake with the aforementioned option:
      -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
+
<syntaxhighlight lang="bash">
 +
    -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
 
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
 
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
 
       -DCMAKE_INSTALL_PREFIX=${PREFIX} \
 
       -DCMAKE_INSTALL_PREFIX=${PREFIX} \
Line 43: Line 44:
 
       -DQT_INCLUDE_DIR=/opt/trinity/include \
 
       -DQT_INCLUDE_DIR=/opt/trinity/include \
 
       2>&1 | tee ${OUTPUT}/${PRGNAM}_configure.log
 
       2>&1 | tee ${OUTPUT}/${PRGNAM}_configure.log
Quindi procedere alla compilazione lanciando il comando '''make''' e le restanti operazioni di pacchettizzazione.
+
</syntaxhighlight>
 +
And go on running the '''make''' command to build all then execute the packaging steps.
  
Il pacchetto ottenuto potr&agrave; essere installato facendo ricorso al comando '''installpkg''' come &egrave; consuetudine in Slackware Linux.
+
The outcome package can be installed recurring to the '''installpkg''' command as usual in Slackware linux.  
  
  
Per commenti, consigli, domande inviate una e-mail all'indirizzo ''studiosg [chiocciola] giustetti [punto] net''.
+
For any feedback, questions, errors and such, please e-mail me at ''studiosg [at] giustetti [dot] net''
  
  
Link esterni
+
External Links
 
----
 
----
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild Istruzioni per compilare TDE]
+
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide]
* [http://it.wikipedia.org/wiki/ARts La pagina di Wikipedia dedicata ad ARts]
+
* [http://en.wikipedia.org/wiki/ARts Wikipedia ARts page]
* [http://www.arts-project.org La pagina originale del progetto ARts]
+
* [http://www.arts-project.org Arts project home page]
* [http://www.arts-project.org/doc/mcop-doc/artsd-faq.html La pagina FAQ del progetto ARts]
+
* [http://www.arts-project.org/doc/mcop-doc/artsd-faq.html Arts project FAQ]
* [http://multimedia.kde.org Pagina dedicata a Phonon: il successore di ARts]
+
* [http://multimedia.kde.org Phonon: ARts replacement]
  
 
----
 
----
  
Lingue: [http://www.giustetti.net/wiki/index.php?title=En/TDE_arts English] - '''Italiano'''
+
{{footer_en | link_page=TDE_arts}}

Revision as of 14:38, 21 December 2016

Welcome to Simone Giustetti's wiki pages.


Languages: English - Italiano


ARTS

TDE - Prerequisites

Analog Real Time Synthesizer is a multimedia library used by KDE 2, KDE 3 and TDE whose main goal consists of simulating an analog synthesizer used by the desktop environments and their many applications. An integrated sound server, the artsd daemon, is part of the library and is used to merge distinct sound streams in real time. In later Linux distributions the mixer function shifted to ALSA the Linux kernel sound subsystem. ARts is no longer in active development and hasn't been since 2004 when it was replaced by the Phonon API in KDE 4.

ARts and Slackware

ARts is part of the prerequisite packages for TDE. Its build scripts were ported to cmake therefore the autotools build suite is no longer needed to configure and compile the source code. A build script was written based on the official Slackware 13.0 slackbuild script for ARts with some updates to integrate cmake. The /opt/trinity directory was used as root directory for the package both to ensure a pacific coexistence with KDE 4 and to uniform ARts configuration to the other packages. The -DCMAKE_SKIP_RPATH="OFF" flag was imposed to the cmake command as suggested int the TDE build how-to. The flag will allow ARTs to execute command during the build process.

The slackbuild script for the ARts package is part of the archive found at the following link. Some comments to the commands used through the script to ensure a smooth build follow.

First of all you need to clean the cmake cache. Task accomplished by lines:

   # Clean cmake cache
   find . -name CMakeCache.txt -exec rm {} \;

Then you must create a directory where to compile the source code and store output files. Cmake seems to have a preference for build as directory name. It won't work otherwise:

   # Create a directory where to build source (cmake wants the name to be build).
   cd ${TMP}/tmp-${PRGNAM}
   mkdir build
   cd build

Qt library paths are needed for scripts to find binary files while building the source code:

   # Add temporary paths to handle new libraries during build
   export QTDIR=/opt/trinity
   export PATH=/opt/trinity/bin:/usr/bin:$PATH
   export LIBDIR=/usr/lib${LIBDIRSUFFIX}
   export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX}
   export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH

Finally you can run cmake with the aforementioned option:

     -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
      -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
      -DCMAKE_INSTALL_PREFIX=${PREFIX} \
      '''-DCMAKE_SKIP_RPATH="OFF"''' \
      -DSYSCONF_INSTALL_DIR="/etc/trinity" \
      -DLIB_SUFFIX=${LIBDIRSUFFIX} \
      -DQT_VERSION=3 \
      -DQT_INCLUDE_DIR=/opt/trinity/include \
      2>&1 | tee ${OUTPUT}/${PRGNAM}_configure.log

And go on running the make command to build all then execute the packaging steps.

The outcome package can be installed recurring to the installpkg command as usual in Slackware linux.


For any feedback, questions, errors and such, please e-mail me at studiosg [at] giustetti [dot] net


External Links





Languages: English - Italiano