[bt-devel] current static build errors.

Brook Humphrey bt-devel@crosswire.org
Mon, 18 Jun 2001 09:48:25 -0700


On Monday 18 June 2001 09:35 am, you wrote:
> Add -lXft to the linker line of BibleTime (Add -lXft in
> bibletime/Makefile.am before or after -lXext).
> This should work.

this is my current patch to the makfile. I have already added -lXft to the 
QTLIBS line.

diff -u -r bibletime-1.0.beta/bibletime/Makefile 
bibletime-1.0.beta-patch/bibletime/Makefile
--- bibletime-1.0.beta/bibletime/Makefile	Sun Jun 10 09:53:39 2001
+++ bibletime-1.0.beta-patch/bibletime/Makefile	Sun Jun 10 10:03:50 2001
@@ -102,24 +102,24 @@
 KDE_USE_FINAL_FALSE = 
 KDE_USE_FINAL_TRUE = #
 LIBCOMPAT = 
-LIBCRYPT = -lcrypt
-LIBDL = -ldl
-LIBJPEG = -ljpeg
+LIBCRYPT = -static -lcrypt
+LIBDL = -static -ldl
+LIBJPEG = -static -ljpeg
 LIBMICO = @LIBMICO@
 LIBOBJS = @LIBOBJS@
-LIBPNG = -lpng -lz -lm
+LIBPNG = -static -lpng -static -lz -static -lm
 LIBPTHREAD = @LIBPTHREAD@
 LIBPYTHON = @LIBPYTHON@
 LIBQIMGIO = @LIBQIMGIO@
-LIBSM = -lSM -lICE
+LIBSM = -static -lSM -static -lICE
 LIBSOCKET = 
 LIBTIFF = @LIBTIFF@
 LIBTOOL = $(SHELL) $(top_builddir)/libtool
 LIBUCB = 
-LIBZ = -lz
+LIBZ = -static -lz
 LIB_KAB = -lkab
 LIB_KDECORE = -lkdecore
-LIB_KDEUI = -lkdeui
+LIB_KDEUI = -static -lkdeui
 LIB_KFILE = -lkfile
 LIB_KFM = 
 LIB_KFORMULA = -lkformula
@@ -130,9 +130,9 @@
 LIB_KSPELL = -lkspell
 LIB_KSYCOCA = -lksycoca
 LIB_KWRITE = -lkwrite
-LIB_QT = -lqt $(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)
-LIB_SMB = -lsmb
-LIB_X11 = -lX11 $(LIBSOCKET)
+LIB_QT = -static -lqt -static -lXft -static -lmng -static -lfreetype 
$(LIBPNG) $(LIBJPEG) -static -lXext $(LIB_X11) $(LIBSM)
+LIB_SMB = -static -lsmb
+LIB_X11 = -static -lX11 $(LIBSOCKET)
 LN_S = ln -s
 MAKEINFO = makeinfo
 MCOPIDL = $(kde_bindir)/mcopidl
@@ -190,7 +190,7 @@
 kde_wallpaperdir = ${prefix}/share/wallpapers
 micodir = @micodir@
 qt_includes = /usr/lib/qt2/include
-qt_libraries = /usr/lib/qt2/lib
+qt_libraries = /usr/lib/qt2/lib/libqt.a
 x_includes = /usr/X11R6/include
 x_libraries = /usr/X11R6/lib
 # claim, which subdirectories you want to install
@@ -200,7 +200,7 @@
 bibletime_SOURCES =  bibletime_init.cpp bibletime_slots.cpp bibletime.cpp 
main.cpp
 
 
-bibletime_LDADD =  ./printing/libprinting.a 
./frontend/optionsdialog/liboptionsdialog.a 
./frontend/presenters/libpresenters.a ./frontend/keychooser/libkeychooser.a 
./frontend/groupmanager/libgroupmanager.a 
./frontend/searchdialog/libsearchdialog.a ./frontend/libfrontend.a 
./frontend/thirdparty/qt3stuff/libqt3stuff.a 
./frontend/thirdparty/libthirdparty.a 
./backend/sword_backend/libswordbackend.a ./backend/libbackend.a  -lpthread 
-lXext $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KFILE) $(LIB_X11) 
$(LIBSOCKET)
+bibletime_LDADD =  ./printing/libprinting.a 
./frontend/optionsdialog/liboptionsdialog.a 
./frontend/presenters/libpresenters.a ./frontend/keychooser/libkeychooser.a 
./frontend/groupmanager/libgroupmanager.a 
./frontend/searchdialog/libsearchdialog.a ./frontend/libfrontend.a 
./frontend/thirdparty/qt3stuff/libqt3stuff.a 
./frontend/thirdparty/libthirdparty.a 
./backend/sword_backend/libswordbackend.a ./backend/libbackend.a 
/usr/lib/qt2/lib/libqt.a /usr/X11R6/lib/libXft.a /usr/X11R6/lib/libXext.a 
/usr/X11R6/lib/libX11.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a 
/usr/X11R6/lib/libXrender.a /usr/lib/libfreetype.a /usr/lib/libm.a 
/usr/lib/libc.a /usr/lib/libz.a /usr/lib/libmng.a -lpthread -lXext $(LIB_QT) 
$(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KFILE) $(LIB_X11) $(LIBSOCKET)
 
 
 SUBDIRS = backend frontend docs xml printing pics


>
> Joachim
>