Changes

From Studiosg
Jump to navigationJump to search
158 bytes added ,  17:21, 21 December 2016
Page updated to new template
Line 1: Line 1: −
Welcome to Simone Giustetti's wiki pages.
+
{{header_en|title=Building Tdevelop package for TDE| keyword={{Template:keyword_en_tde}}| description=Building, installing and configuring a working Tdevelop package for TDE and Slackware Linux | link_page=TDE_tdevelop}}
 
  −
 
  −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_tdevelop Italiano]
  −
 
  −
----
      
== TDEVELOP ==
 
== TDEVELOP ==
[[En/trinity_desktop_environment#Base_Packages]]
+
[[En/trinity_desktop_environment#Base_Packages | TDE - Base Packages]]
    
'''Tdevelop''' is an open source IDE ('''I'''ntegrated '''D'''evelopment '''E'''nvironment) 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 [http://www.gnu.org/software/gcc/ 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''' is an open source IDE ('''I'''ntegrated '''D'''evelopment '''E'''nvironment) 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 [http://www.gnu.org/software/gcc/ 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.
Line 13: Line 8:  
=== Tdevelop and Slackware ===
 
=== 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 [http://www.cmake.org 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.
+
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 [http://www.cmake.org 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''':
 
First thing the build script '''has to clean the cmake cache''':
 +
<syntaxhighlight lang="bash">
 
   # Clean cmake cache
 
   # Clean cmake cache
 
   find . -name CMakeCache.txt -exec rm {} \;
 
   find . -name CMakeCache.txt -exec rm {} \;
 +
</syntaxhighlight>
 
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'':
 
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'':
 +
<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>
 
'''Specifically set Qt libraries paths''' in order for build scripts to find them at build time:
 
'''Specifically set Qt libraries paths''' in order for build scripts to find them at build time:
 +
<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 30: Line 30:  
   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>
 
Last the script runs the cmake command with the proper options:
 
Last the script runs the cmake command with the proper options:
 +
<syntaxhighlight lang="bash">
 
   # Configure the package
 
   # Configure the package
 
   cmake ${TMP}/tmp-${PRGNAM}/${PRGNAM}-${VERSION} \
 
   cmake ${TMP}/tmp-${PRGNAM}/${PRGNAM}-${VERSION} \
Line 47: Line 49:  
       -DBUILD_ALL=ON \
 
       -DBUILD_ALL=ON \
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 +
</syntaxhighlight>
 
Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.
 
Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.
   Line 56: Line 59:     
External Links
 
External Links
 +
 
----
 
----
 +
 
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide]
 
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide]
 
* [http://kdevelop.org/ kdevelop official page]
 
* [http://kdevelop.org/ kdevelop official page]
Line 64: Line 69:  
----
 
----
   −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_tdevelop Italiano]
+
{{footer_en | link_page=TDE_tdevelop}}

Navigation menu