trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2011

Getting Started - HowToBuild - need a bit of help.

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 21 Jan 2011 12:19:51 -0600
Tim, all,

	As expressed in my email to Tim, my goal is to build trinity (from svn) for
Arch Linux to replace the old Chakra project kdemod3. (which is no longer
supported or available) I'm very proficient in Linux, but I SUCK with cmake. It
might as well be Greek. I've been through:

http://trinity.pearsoncomputing.net/wiki/bin/view/Developers/HowToBuild

and I've stumbled across the linuxquestions.org thread stating you must remove
all existing kde3 installs before building trinity. (Tim this seems to answer my
question whether I can do a parallel install of trinity in /opt/trinity and keep
my existing /opt/kde) So do I really have to nuke my existing kde3 install prior
to building trinity? (assuming yes from the following link)

http://www.linuxquestions.org/questions/slackware-14/trinity-kde-3-5-12-a-837170/page5.html

	This is where I hit my first roadblock.	

(Issue #1) Arch Linux provides python2-sip and pyqt3, but not pykde. I've
downloaded and written an Arch PKGBUILD script to build the PyKDE-3.16.7 package
for Arch. (see: https://bbs.archlinux.org/viewtopic.php?pid=881478#p881478)
However building pykde requires dcopobject.h. Trinity provides:

trinity/kdebindings/dcopc/dcopobject.h
trinity/kdelibs/dcop/dcopobject.h

(of which the kdelibs dcopobject.h looks correct) However, to build pykde, I
have to provide reference to the installed kde3 base (-k /opt/kde) to get it to
build:

python2 configure.py \
  -d /usr/lib/python2.7/site-packages \
  -v /usr/share/sip -k /opt/kde

which builds fine, but the linuxquestion.org thread says if you build against
the existing 3.5.10 dcopobject.h you will have build failures later on. So
what's the trick to get pykde to compile using the dcopobject.h from svn?

(Issue #2) How in the heck to I choose QT3 to get tqtinterface to build? I know
this is a simple switch issue or environment issue, but I've googled and have
just managed to broaden my confusion. This is my cmake shortcoming. When I
attempt the build, I get:

11:49 archangel:/tmp/dependencies/tqtinterface> cmake ./
CMake Error at cmake/modules/TDEMacros.cmake:20 (message):
  #################################################

   You must select a Qt version

  #################################################
Call Stack (most recent call first):
  CMakeLists.txt:46 (tde_message_fatal)


-- Configuring incomplete, errors occurred!

The error is obvious, I need to tell it which Qt version to use, but obviously
I'm too stupid to figure out where or how. Can somebody help a brother out here
and help lift the veil of confusion I'm suffering from here?

Also, I've started a build script to automate the trinity build after I get the
dependencies built. Basically to automate the libtool.m4.in, ltmain.sh and make
-f setup and then provide correct ./configure options that --enable-closure when
required based on the module name. The the plan is simply to build trinity in
the order specified in the HowToBuild from a static list or array. Before I
reinvent the wheel, does anything like this exist? Also, the wiki is a bit
sparse. If anyone has more detailed notes squirreled away on the build process
or how to setup a better build environment/chroot/whatever, if you will make
that information available, I'll commit to adding it to the wiki (with proper
attribution of course)

For anyone interested, I have started the build script and have it functional up
to the point of adding the ordered list to build each module. (currently it is
just a concept that outputs what it will do without actually doing anything).
Basic use is:

sh bldtrinity.sh [ path/to/your/trinitysvn path/to/libtool.m4 path/to/ltmain.sh ]

my defaults [Arch locations]:

trindir=${1:-/home/david/arch/pkg/trinity}
syslibtool=${2:-/usr/share/aclocal/libtool.m4}
sysltmain=${3:-/usr/share/libtool/config/ltmain.sh}


The beginnings of the script are at:

http://www.3111skyline.com/dl/dt/trinity/scr/bldtrinity.sh

I welcome any suggestions or comments. Thanks. I look forward to this project.

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com