Message: previous - next
Month: July 2015

Re: [Trinity-devel] Build enviroment for 3rd party programs

From: deloptes <deloptes@...>
Date: Sat, 25 Jul 2015 09:41:58 +0200
Bro. Michael Henry wrote:

> Hello,
> How do I make TDevelop "SEE" the Include directory? I have spent 2 days of
> Building, "can't find such and such header file", coping over said header
> to the main directory, and redo... This is getting old. I searched online,
> but the online thing I come up with was Linux automatically pointed to ALL
> headers and if an IDE couldn't find headers, it was a bug. Any help would
> be appreciated.

going back to the original question:

 I would like to convert some KDE3 apps/QT3 apps to TDE/TQT

I had absolutely no issue converting a KDE3 app to TDE recently by following
Timothy's advise in the thread 

 "how to setup environment for compiling older KDE3 packages on TDE r14"

Here is his answer again:

 "There are two scripts in the TDE source archive
(experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3 and
experimental/kde-tde/convert_existing_kde3_app_to_tde).  Look at those
scripts, make any modifications needed for your system, and run them from
within the original source archive.

If you want to help by adding a new application to TDE, you could first
import the original sources to a new GIT repository, then clean up the old and configure files and commit that as a cleanup commit.
After that run the conversion scripts, verify buildability, and commit the
converted sources before pushing the entire repository up to GitHub or

Note that you will probably want to delete the old admin module and
replace it with the current TDE admin submodule.  You can do that from
within your converted source directory as follows:
rm -rf admin
git submodule add
http://system@.../scm/git/tde-common-admin admin
git submodule add
http://system@.../scm/git/tde-common-cmake cmake
git submodule update --init
git commit -a -m "Added common directories"
git push origin master

Hope this helps!


In my case I had to apply some customization to the automake build scripts
and fix this and that.


cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4
> aclocal.m4

perl -pi -e 's:\&kwin:TDE Window:g' doc/*/howto-bug-reporting.docbook
perl -pi -e 's:theKProcessController:theTDEProcessController:g'

# fixed in admin/
#perl -pi -e  's:LIBSM\ \=\ \-lSM\ \-lICE:LIBSM\ \=\ \-lSM\ \-lICE\ \-lDCOP\
\-ltdeio:' kplayer/Makefile

//extern TQDragManager* qt_dnd_manager; kplayer/kplayernodeview.cpp

bash ../../../kplayer-0.6.3-myconfig

dh_make  -s \
        -c  gpl2 \
        -e  deloptes@...  \
        -f  ../kplayer_0.6.3.orig.tar.bz2 \
        --packagename kplayer-trinity

# after make maintainer-clean

rm -v admin/config.guess admin/config.guess.cdbs-orig
admin/config.guess.dh-orig admin/config.sub admin/config.sub.cdbs-orig
admin/config.sub.dh-orig doc/ doc/da/
doc/en/ doc/es/ doc/it/ doc/pt/
doc/sv/ icons/ kplayer/ po/
aclocal.m4 configure

and the content of the myconfig file is like this. I think you need to try
something that fits your build env.
I also think the admin scripts for the automake are not fitting debian
jessie the best.

export PREFIX=/opt/trinity
export SYSCONFDIR=/etc/trinity
export LIBDIR=/opt/trinity/lib
export MANDIR=/opt/trinity/man
export QTDIR=/usr/include/tqt/Qt
export PATH=$QTDIR/bin:/usr/share/tqt3/bin:/opt/trinity/bin:$PATH
export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:$QTDIR/lib/pkgconfig
# Enable only one of the following:
export DEBUG_AUTOTOOL_OPT="--disable-debug"
#export DEBUG_CMAKE_OPT=""

export CFLAGS="$CPUOPT $CFLAGS -I/usr/include/tqt -I/usr/include/tqt3 -Wall"
$CXXFLAGS -I/usr/include/tqt -I/usr/include/tqt3 -Wall"
export LDFLAGS="$LDFLAGS  -L/opt/trinity/lib -L/usr/lib -Wall"

make -f admin/Makefile.common

dpkg-buildpackage -rfakeroot -b -us -uc -j8