compiling kdelib 2.2.1

compiling kdelib 2.2.1

Post by Matt Bant » Sat, 17 Nov 2001 11:50:52



Hi all!

I am trying to compile and install KDE from scratch because I enjoy
torturing myself :) I keep getting this error when I run make on kdelib:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../libltdl -I../kdecore
-I../kdeui -I../kssl -I/usr/local/qt/include -I/usr/X11R6/include
-I/usr/local/kde/include -D_REENTRANT -O2 -fno-exceptions -fno-check-new
-ftemplate-depth-99 -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE
-DQT_NO_COMPAT -DQT_NO_ASCII_CAST -c dcopclient.cpp  -fPIC -DPIC -o
.libs/dcopclient.o
In file included from dcopclient.cpp:52:
dcopobject.h:223: ANSI C++ forbids declaration `QList' with no type
dcopobject.h:223: template-id `QList<DCOPObject>' used as a declarator
dcopobject.h:223: parse error before `('
dcopobject.h:286: ANSI C++ forbids declaration `QList' with no type
dcopobject.h:286: template-id `QList<DCOPObjectProxy>' used as a
declarator
dcopobject.h:286: parse error before `*'
dcopclient.cpp:113: `QList' is not a template
dcopclient.cpp:113: confused by earlier errors, bailing out
make[3]: *** [dcopclient.lo] Error 1
make[3]: Leaving directory `/home/src/kdelibs-2.2.1/dcop'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/src/kdelibs-2.2.1/dcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/kdelibs-2.2.1'
make: *** [all-recursive-am] Error 2

Anyone have a clue what the problem could be? Thanks!

Matt.

 
 
 

compiling kdelib 2.2.1

Post by bowma » Sat, 17 Nov 2001 12:50:08



> Anyone have a clue what the problem could be? Thanks!

Is your Qt tree compatible with 2.2.1?

 
 
 

compiling kdelib 2.2.1

Post by Matt Bant » Sat, 17 Nov 2001 13:28:48




> > Anyone have a clue what the problem could be? Thanks!

> Is your Qt tree compatible with 2.2.1?

I am using qt-x11-free-3.0.0. Will that work with 2.2.1? I thought this
was the most recent version of qt.

Thanks for your help!

Matt.

 
 
 

compiling kdelib 2.2.1

Post by Kevin Kramme » Sat, 17 Nov 2001 18:34:11





>> > Anyone have a clue what the problem could be? Thanks!

>> Is your Qt tree compatible with 2.2.1?

> I am using qt-x11-free-3.0.0. Will that work with 2.2.1? I thought
> this was the most recent version of qt.

Qt2.3.2 is the most recent Qt version for KDE2.x

The KDE branch for Qt3 is called KDE3 :)

Kevin

--

Student at Graz University of Technology
http://www.sbox.tu-graz.ac.at/home/v/voyager

 
 
 

compiling kdelib 2.2.1

Post by Matt Bant » Sun, 18 Nov 2001 13:43:08



> Qt2.3.2 is the most recent Qt version for KDE2.x

> The KDE branch for Qt3 is called KDE3 :)

Well there certainly does seem to be some logic in that :)

That made the compile work longer but it still barfs on:

make[3]: Entering directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I./.. -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
-I/include  -D_REENTRANT -I/usr/local/include  -O2   -c templates.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./..
-I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
-I/include -D_REENTRANT -I/usr/local/include -O2 -c templates.c  -fPIC
-DPIC -o .libs/templates.o
In file included from /usr/local/include/libxml2/libxml/parser.h:576,
                 from /usr/local/include/libxml2/libxml/xmlerror.h:4,
                 from templates.c:18:
/usr/local/include/libxml2/libxml/globals.h:70: parse error before
`xmlGenericErrorFunc'
/usr/local/include/libxml2/libxml/globals.h:70: warning: no semicolon at
end of struct or union
/usr/local/include/libxml2/libxml/globals.h:89: parse error before `}'
/usr/local/include/libxml2/libxml/globals.h:217: parse error before
`xmlGenericError'
/usr/local/include/libxml2/libxml/globals.h:217: warning: data definition
has no type or storage class
make[3]: *** [templates.lo] Error 1
make[3]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/kdelibs-2.2.1'
make: *** [all-recursive-am] Error 2
bash-2.05#

Does anyone know what is going on know? One thing I like about a package
like kde is that I hope once I get things working it will be much easier
to compile and install them. Yes I could use an rpm or deb based distro
but that would take all the frustration and challenge of it :)

Thanks for your help!

Matt.

 
 
 

compiling kdelib 2.2.1

Post by James Richard Tyre » Mon, 19 Nov 2001 15:14:36




> > Qt2.3.2 is the most recent Qt version for KDE2.x

> > The KDE branch for Qt3 is called KDE3 :)

> Well there certainly does seem to be some logic in that :)

> That made the compile work longer but it still barfs on:

> make[3]: Entering directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
> -I./.. -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
> -I/include  -D_REENTRANT -I/usr/local/include  -O2   -c templates.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./..
> -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
> -I/include -D_REENTRANT -I/usr/local/include -O2 -c templates.c  -fPIC
> -DPIC -o .libs/templates.o
> In file included from /usr/local/include/libxml2/libxml/parser.h:576,
>                  from /usr/local/include/libxml2/libxml/xmlerror.h:4,
>                  from templates.c:18:
> /usr/local/include/libxml2/libxml/globals.h:70: parse error before
> `xmlGenericErrorFunc'
> /usr/local/include/libxml2/libxml/globals.h:70: warning: no semicolon at
> end of struct or union
> /usr/local/include/libxml2/libxml/globals.h:89: parse error before `}'
> /usr/local/include/libxml2/libxml/globals.h:217: parse error before
> `xmlGenericError'
> /usr/local/include/libxml2/libxml/globals.h:217: warning: data definition
> has no type or storage class
> make[3]: *** [templates.lo] Error 1
> make[3]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/src/kdelibs-2.2.1'
> make: *** [all-recursive-am] Error 2
> bash-2.05#

> Does anyone know what is going on know? One thing I like about a package
> like kde is that I hope once I get things working it will be much easier
> to compile and install them. Yes I could use an rpm or deb based distro
> but that would take all the frustration and challenge of it :)

Perhaps you have the wrong version of libxml2.

I have version 2.4.0 and have compiled this OK.  I read somewhere that
the newer one doesn't work.

Also, which compiler are you using?

JRT

 
 
 

compiling kdelib 2.2.1

Post by CxVx » Tue, 20 Nov 2001 08:19:45





>> > Qt2.3.2 is the most recent Qt version for KDE2.x

>> > The KDE branch for Qt3 is called KDE3 :)

>> Well there certainly does seem to be some logic in that :)

>> That made the compile work longer but it still barfs on:

>> make[3]: Entering directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
>> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
>> -I./.. -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
>> -I/include  -D_REENTRANT -I/usr/local/include  -O2   -c templates.c
>> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./..
>> -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2
>> -I/include -D_REENTRANT -I/usr/local/include -O2 -c templates.c  -fPIC
>> -DPIC -o .libs/templates.o
>> In file included from /usr/local/include/libxml2/libxml/parser.h:576,
>>                  from /usr/local/include/libxml2/libxml/xmlerror.h:4,
>>                  from templates.c:18:
>> /usr/local/include/libxml2/libxml/globals.h:70: parse error before
>> `xmlGenericErrorFunc'
>> /usr/local/include/libxml2/libxml/globals.h:70: warning: no semicolon at
>> end of struct or union
>> /usr/local/include/libxml2/libxml/globals.h:89: parse error before `}'
>> /usr/local/include/libxml2/libxml/globals.h:217: parse error before
>> `xmlGenericError'
>> /usr/local/include/libxml2/libxml/globals.h:217: warning: data definition
>> has no type or storage class
>> make[3]: *** [templates.lo] Error 1
>> make[3]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools/libxslt'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/src/kdelibs-2.2.1/kdoctools'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/src/kdelibs-2.2.1'
>> make: *** [all-recursive-am] Error 2
>> bash-2.05#

>> Does anyone know what is going on know? One thing I like about a package
>> like kde is that I hope once I get things working it will be much easier
>> to compile and install them. Yes I could use an rpm or deb based distro
>> but that would take all the frustration and challenge of it :)

> Perhaps you have the wrong version of libxml2.

> I have version 2.4.0 and have compiled this OK.  I read somewhere that
> the newer one doesn't work.

> Also, which compiler are you using?

> JRT

Her's a list of what I installed to get kde to compile. It worked for 2.2.1
and 2.2.2 so it should work for you too :)

Im not totaly sure about the right order but this should be about it. You
should be able to find them all searching on freshmeat.

audiofile-0.2.3
cdparanoia-III-alpha9.8.src
lame3.89beta

lesstif-0.93.14

libao-0.8.0     //vorbis.org
libogg-1.0rc2   ""
libvorbis-1.0rc2        ""

jpegsrc.v6b    
libpng-1.2.0
libmng-1.0.3
lcms-1.07

tiff-v3.5.6-beta
libtiff-lzw-compression-kit-1.2

libxml2-2.4.5
openssl-0.9.6b
pcre-3.4

objprelink
qt2.3.2

Kdelibs, kdebase, ....

CxVx

 
 
 

compiling kdelib 2.2.1

Post by Matt Bant » Tue, 20 Nov 2001 13:33:03



> Perhaps you have the wrong version of libxml2.

> I have version 2.4.0 and have compiled this OK.  I read somewhere that
> the newer one doesn't work.

> Also, which compiler are you using?

Yeah, switching to libxml2-2.4.0 seemed to do the trick. Does anyone keep
a list up of what versions of the libraries need to be installed with what
version of kde. I didn't see it in the painfully obvious places (install
guide on kde.org) but that doesn't mean that they don't keep it in
slightly less obvious places and I just didn't see it.

Thanks again for all your help :)

Matt.

 
 
 

1. Internal compile error compiling kdelib

The following happens when I attempt to compile
kdelibs-19990425-source-qt20.tar.gz 0n linux v2.2.5, gcc
version 2.7.2.3:
-----

kformula.cc: In method `double KFormula::evaluate(class QStrList, class QArray<double>, int * = 0, class box * = 0)':
kformula.cc:351: Internal compiler error.

make: *** [kformula.lo] Error 1
-----

Any ideas?

--
Spammer toll-free numbers: (800) 607-6006 ext. 2668, (877) 299-5465

Bob Broughton

WWW: http://canadawired.com/~rbrought
Vancouver, BC, Canada

2. Starting Kde 1.1

3. Problems compiling kdelibs

4. DOOM pretty fast !

5. compiling kdelib snapshot

6. Problem With Redhat And Aix

7. errors compiling kdelibs

8. NFS Client/Server Situation with x86

9. problems compiling kdelibs please help

10. Compiling Kdelibs

11. Error compiling kdelibs-2.0.*: "undefined reference to mainParse in kio/.libs/libksycoca.so"

12. Compiling kdelibs-3.0.2 - aRts 1.0.x not found