[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Unable to compile kdelibs for some time...
From:       fenix <fenix () club-internet ! fr>
Date:       2002-04-23 21:30:47
[Download RAW message or body]

Le mar 23/04/2002 ā 20:43, Bjorn Westlin a écrit :
> Hi.

Hi

 
> I have been unable to compile kdelibs from CVS for some time now, due to some  
> problems in svgicons. Here is the output from make:

already seen this problem ...
 
> /bin/sh ../../libtool --mode=link --tag=CXX c++  -Wnon-virtual-dtor 
> -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith 
> -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
> -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O3 -mcpu=athlon 
> -march=i386 -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION 
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT   -o ksvgtopng  
> ksvgtopng.o libkdesvgicons.la -lqt-mt  -lpng -lz -lm -lXext -lX11 -lresolv 
> -lSM -lICE -lpthread -L/usr/X11R6/lib -L/opt/lib/qt-copy/lib -L/opt/kde3/lib
> objprelink ksvgtopng.o
> c++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall 
> -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi 
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG 
> -DNO_DEBUG -O2 -O3 -mcpu=athlon -march=i386 -fno-exceptions -fno-check-new 
> -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o 
> ksvgtopng ksvgtopng.o  ./.libs/libkdesvgicons.a 
> -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 
> -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../.. -lstdc++ -lc -lgcc 
> -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread 
> -L/usr/X11R6/lib -L/opt/lib/qt-copy/lib -L/opt/kde3/lib
> ./.libs/libkdesvgicons.a(ksvgiconengine.o): In function 
> `KSVGIconEngine::load(int, int, QString const &)':
> ksvgiconengine.o(.text+0xb5): undefined reference to 
> `QDomDocument::setContent(QIODevice *, QString *, int *, int *)'
> ./.libs/libkdesvgicons.a(ksvgiconengine.o)(.QPtrCollection::gnu.linkonce.t.stub.newItem(void 
> *)+0x1): undefined reference to `QPtrCollection::newItem(void *)'
> collect2: ld returned 1 exit status
> make: *** [ksvgtopng] Error 1

this patch must fix this error (it have already posted this patch who
solved the same problem for me)

Index: Makefile.am
===================================================================
RCS file: /home/kde/kdelibs/kdecore/svgicons/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- Makefile.am 7 Apr 2002 16:43:41 -0000       1.1
+++ Makefile.am 9 Apr 2002 19:35:38 -0000
@@ -9,5 +9,6 @@
 
 bin_PROGRAMS = ksvgtopng
 ksvgtopng_SOURCES = ksvgtopng.cpp
+ksvgtopng_LDFLAGS = $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(all_libraries)
-no-undefined -version-info 4:0
 ksvgtopng_LDADD = libkdesvgicons.la $(LIB_QT) $(all_libraries)
 

> It seems like the linker is trying to link against an older version of QT 
> which seems natural due to the  
> -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../.. flag which 
> translates to /usr/lib where QT2 is installed on my machine.
> 
> Also I have been unable to compile libkscan/scandialog.cpp in kdegraphics 
> because -I/usr/include coming before -I/opt/kde3/include which as I 
> understand it makes it compile against kde2.2.

my second patch for this problem

Index: Makefile.am
===================================================================
RCS file: /home/kde/kdegraphics/libkscan/Makefile.am,v
retrieving revision 1.13
diff -u -r1.13 Makefile.am
--- Makefile.am 18 Jan 2002 18:00:40 -0000      1.13
+++ Makefile.am 23 Apr 2002 21:23:02 -0000
@@ -1,4 +1,4 @@
-INCLUDES = $(LIBSANE_INCLUDES) $(all_includes)
+INCLUDES = $(all_includes) $(LIBSANE_INCLUDES)

 lib_LTLIBRARIES = libkscan.la

@@ -18,7 +18,7 @@
        img_canvas.cpp previewer.cpp imgscaledialog.cpp
sizeindicator.cpp


-libkscan_la_LDFLAGS = $(all_libraries) $(LIBSANE_LDFLAGS) -no-undefined
-version-info 1:0
+libkscan_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) $(LIBSANE_LDFLAGS)
-no-undefined -version-info 1:0
 libkscan_la_LIBADD = $(LIBSANE_LIBS) $(LIB_KFILE)

 kde_services_DATA = scanservice.desktop
 
> I'm running Mandrake 8.1 with kde2.2. Do I really have to uninstall the whole 
> kde2.2 to be able to compile kde3? I really would like to keep it...

i have keeped it ... but at each update from HEAD i have compilation
problems like this :(
 
> Any help would be appreciated.

;)

> / Björn  

FeniX


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic