build help

David Reiser <[email protected]> Fri, 28 Jan 2005 16:23:46 -0500
Newsgroups gmane.comp.db.rekall.devel
Message-ID <[email protected]>
I've been trying to build 2.3.2 against a fink installed Qt3.3.3 on my 
mac. I did get make to run, but make install was a disaster at first. 
Now rekall is looking for its first shared library in 'ports/qt3/xxx'. 
Ack.

I'm guessing that I didn't get something specified quite right. Fink 
studiously avoids installing anything in /usr, so it uses /sw as its 
base. I figured I'd try to keep from fouling up /sw by using 
prefix=/opt.  Something is clearly not working correctly. I'm pretty 
sure I didn't "get this right" when attempting to enter:

KDEDIR=/xxx make config

My default shell is tcsh, which didn't like any form of that command I 
could think of, and since I was building a QT version, and QTDIR 
already existed in my enviroment list, I just did "make config". Now 
that I've learned a bit more about tcsh and bash, I tried switching to 
bash and entering KDEDIR=/opt make config. It runs, but I can see 
absolutely no difference in the rkConfig.py file, so I'm concerned that 
something is still amiss. Should it be KDEDIR=/opt (where I'm expecting 
make install to put the rekall files) or should it be KDEDIR=/sw (where 
all the QT related files are)? Or should it be something else?

Is it normal to have all the intermediate compile files put in the 
source directories? Is there a simple recursive rm I can use to clean 
out the source tree before I try another 'make'?

I'd really like to see rekall be available as a fink maintained source 
distribution. After all, no matter how much you make it look like a 
normal Mac app in the Finder, once it's launched, what you see is Qt's 
interface. I think the only difference between most fink installed 
sources and the Linux versions is having to force the dynamic library 
generation. There are always some details, but even gnucash (with a 
huge dependency list and a gnome 1.4 interface) works well after a fink 
install. You can even create a Finder icon that will launch X and then 
gnucash -- I never use it because I want to see any messages that get 
sent to the X console, but plenty of folks just treat that icon as the 
gnucash app. Gnucash does some of the mac specific library generation 
forcing in it's config file, but the gnucash.info (fink distribution 
element) also edits libtool on the fly to tweak the files in the Linux 
tarball.

I did change several things in the rkBuilder.py file to eliminate 
errors from both make and make install. My goal at the moment is to 
mimic a Linux /opt installation. I got at least as far as getting make 
to run and make install to put all the files where I'm expecting them 
in /opt/lib opt/bin opt/share etc. But rekall still looks for 
libkbase_kde.dylib in 'ports/qt3/'.

My first make install used the rkBuilder.py default of instDir='macx' 
-- the disaster being that I had 20+ macx directories spread all over 
the source tree because rkBuilder effective told the system to ignore 
rkConfig.prefix.

So far I've only run one completed make. The rest of my efforts have 
been at getting install to target the right directories. The targeting 
seems to be working, but I must have a build issue.

Any suggestions?

Thanks.

Dave
--
David Reiser
[email protected]