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-83...
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.
On Friday 21 January 2011 20:19:51 David C. Rankin wrote:
Tim, all,
[...]
(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:
[...]
You must select a Qt version
[...]
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?
mkdir /tmp/dependencies/tqtinterface.build cd /tmp/dependencies/tqtinterface.build cmake /tmp/dependencies/tqtinterface -DCMAKE_INSTALL_PREFIX=/usr -DWITH_QT3=ON
Notes:
1) You need to patch Qt3: http://trinity.pearsoncomputing.net/wiki/bin/view/Developers/Qt3
2) I recommend you to use out-of-source mode building, as in my previous example.
[...]
On 01/21/2011 12:42 PM, Serghei Amelian wrote:
mkdir /tmp/dependencies/tqtinterface.build cd /tmp/dependencies/tqtinterface.build cmake /tmp/dependencies/tqtinterface -DCMAKE_INSTALL_PREFIX=/usr -DWITH_QT3=ON
Notes:
- You need to patch Qt3:
http://trinity.pearsoncomputing.net/wiki/bin/view/Developers/Qt3
- I recommend you to use out-of-source mode building, as in my previous
example.
Serghei,
Thank you! I'll will follow your example and learn a bit more about the tricks for out-of-source building. What I've been trying to do is just keep the pristine sources in my ./arch/pkg/trinity dir and I have been copying things to /tmp for build experimentation. Thank you for your help and I'll let you know how it goes :)