Difference between revisions of "En/TDE arts"

From Studiosg
Jump to navigationJump to search
(Created page with 'Welcome to Simone Giustetti's wiki pages. Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_arts Italiano] ---- == ARTS == [[En/trinity_desktop_en…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Welcome to Simone Giustetti's wiki pages.
+
{{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}}
 
 
 
 
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_arts Italiano]
 
 
 
----
 
  
 
== ARTS ==
 
== ARTS ==
[[En/trinity_desktop_environment#Prerequisites]]
+
[[En/trinity_desktop_environment#Prerequisites | TDE - Prerequisites]]
  
 
'''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.
 
'''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.
Line 18: Line 13:
  
 
First of all you need to '''clean the cmake cache'''. Task accomplished by lines:
 
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 {} \;
 +
</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'':
 
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
 +
</syntaxhighlight>
 
'''Qt library paths are needed''' for scripts to find binary files while building the source code:
 
'''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
 +
</syntaxhighlight>
 
Finally you can run cmake with the aforementioned option:
 
Finally you can run cmake with the aforementioned option:
 +
<syntaxhighlight lang="bash">
 
     -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
 
     -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
 
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
 
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
Line 42: 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
 +
</syntaxhighlight>
 
And go on running the '''make''' command to build all then execute the packaging steps.
 
And go on running the '''make''' command to build all then execute the packaging steps.
  
Line 60: Line 63:
 
----
 
----
  
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_arts Italiano]
+
{{footer_en | link_page=TDE_arts}}

Latest revision as of 14:05, 21 March 2022

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