Jan Eliasen wrote:
Compiling a static version is very complicated and the current --with-static
pretty much only works on a Linux Mandrake 7.2 system. Also KDE will never
work in a static binary (Relies heavily on dynamic runtine linking internally).
If you really need this you will need to do some serious tweaking of the
tora-static rule in the Makefile. There probably is some way to let the dynamic
linker know of extra paths to search for libraries. In linux it is called
--rpath, don't know what it might be on your system.
On Tue, 13 Nov 2001, Henrik Johnson wrote:
No, there are no plans for two versions. However using some tweaking of
the makefile you very easily make this yourself. If you run the command:
grep "static to[A-Za-z]*Tool" *.cpp
You find all the files that contain tool definitions. They are pretty
self sufficient (Although the worksheet is embedded in other tools in a
few places) so you can simply remove the tools you don't want from the
makefile and type make and vioala a stripped down tora.
Excellent - and it works, too! :-)
Now, next question; What about compiling kde and qt-libraries into the
binary, so the LD_LIBRARY_PATH doesn't need to be set in order to start up
tora? I've tried setting the LDFLAGS environment with "-R/pack/kde/lib
-R/pack/qt-2.3.1/lib" and then adding $(LDFLAGS) in the Makefile both for
tora-mono and tora-static. That didn't work. Then I tried running the
configure script with a --with-static - but then I got an error saying
that /usr/X11R6/lib/something.a didn't exist (which it doesn't).
Now what? Any ideas?