En/TDE tdevelop

Revision as of 10:56, 15 May 2014 by Wikiuser (talk | contribs) (Added page about Tdevelop, TDE and Slackware 14.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Welcome to Simone Giustetti's wiki pages.


Languages: English - Italiano


TDEVELOP

En/trinity_desktop_environment#Base_Packages

Tdevelop is an open source IDE (Integrated Development Environment) included in the Trinity Desktop environment and able to run on many Linux, Unix flavors and Mac Os X. Tdevelop includes no compiler software but can easily interface to GNU GCC and many other development tools, debug tools, graphical interface drawing utilities and profiling tools. It is possible to extend the program functionality installing optional plug-ins which permit to support a multitude of languages. The last TDE included tdevelop stable release supports: Ada, C, C++, Fortran, Java, Pascal, Perl, PHP, Python, Ruby and SQL.

Tdevelop and Slackware

The tdevelop package replaces and updates the corresponding kdevelop distributed with KDE release 3.5. As a consequence it inherits a build script that can be used as reference to build a Slackware 14.0 installable binary package. Tdevelop was fully ported to cmake which is now the default build system. The SlackBuild script is in need of heavy rewriting to adapt to the new system. The project guidelines were strictly followed: /opt/trinity was configured as the root directory for the package ensuring TDE coexistence with KDE 4. The package was built after installing tdesdk in order to enable support for the CVS versions system. Some script lines of code and related comments follow.

First thing the build script has to clean the cmake cache:

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

Then it creates a directory where to build software and store output binaries. As for previously built packages the directory was named build in order for cmake to find it:

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

Specifically set Qt libraries paths in order for build scripts to find them at build time:

  # 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

Last the script runs the cmake command with the proper options:

  # Configure the package
  cmake ${TMP}/tmp-${PRGNAM}/${PRGNAM}-${VERSION} \
     -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} \
     -DMAN_INSTALL_DIR=${PREFIX}/man \
     -DWITH_BUILDTOOL_ALL=ON \
     -DWITH_LANGUAGE_ALL=ON \
     -DWITH_VCS_CVSSERVICE=OFF \
     -DWITH_VCS_ALL=ON \
     -DWITH_DEPRECATION=ON \
     -DBUILD_ALL=ON \
     2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log

Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.

A full script can be downloaded from the following link. The output package can be installed by mean of command installpkg 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