This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Which lib/compiler versions should I use for an svn build?

Tags: None
(comma "," separated)
User avatar
megadriver
Registered Member
Posts
22
Karma
0
OS
Hi guys,

Could anyone who is able to successfully build kde from svn please tell me what are the versions are you using for the following ?

gcc
glib
gstreamer

I'm getting mad with this ... tried to compile using the latest gcc (4.4.0), glib (2.21.2) and gstreamer (0.10.23) and I get tons of errors ... mostly involving gstreamer and glib ...

Thanks!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
GStreamer is not a recommended backend, it is recommended to use the Xine backend.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
megadriver wrote:gcc

gcc (Debian 4.3.3-10) 4.3.3

megadriver wrote:glib

2.20.3

megadriver wrote:gstreamer

0.10.23

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
megadriver
Registered Member
Posts
22
Karma
0
OS
Downgrading GCC and GLIB didn't solve my problem ...

I'm getting tons of errors, mostly related to glib. These are the first ones ...
Code: Select all
/usr/include/glib-2.0/glib/gthread.h:268: error: 'GSystemThread' does not name a type
/usr/include/glib-2.0/glib/gthread.h:336: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:336: error: ISO C++ forbids declaration of 'gsize' with no type
/usr/include/glib-2.0/glib/gthread.h:337: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:337: error: ISO C++ forbids declaration of 'gsize' with no type
/usr/include/glib-2.0/glib/gthread.h:338: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:339: error: ISO C++ forbids declaration of 'gsize' with no type


I was getting these errors with kdesupport and phonon with gstreamer. Then I've disabled gtreamer and was able to compile, but now I'm facing the very same problem with kdebase :S

Any clues ?

Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I recommend disabling GStreamer completely, and using Xine instead. Xine is far more supported especially for applications such as Amarok.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
megadriver
Registered Member
Posts
22
Karma
0
OS
bcooksley wrote:I recommend disabling GStreamer completely, and using Xine instead. Xine is far more supported especially for applications such as Amarok.


I doesn't look like it's a problem related to gstreamer, it seems to be an issue with glib.
While trying to compile kdebase 4.2.1 (same happens with any other earlier version, including svn):

Code: Select all
[ 75%] Building CXX object apps/nsplugins/viewer/CMakeFiles/nspluginviewer.dir/viewer.o
In file included from /usr/include/glib-2.0/glib/glist.h:34,
                 from /usr/include/glib-2.0/glib/gcache.h:34,
                 from /usr/include/glib-2.0/glib.h:39,
                 from /home/kde4test/kde4/src/kdebase-4.2.1/apps/nsplugins/viewer/glibevents.h:30,
                 from /home/kde4test/kde4/src/kdebase-4.2.1/apps/nsplugins/viewer/viewer.cpp:52:
/usr/include/glib-2.0/glib/gmem.h:42:5: warning: "GLIB_SIZEOF_VOID_P" is not defined
/usr/include/glib-2.0/glib/gmem.h:42:26: warning: "GLIB_SIZEOF_LONG" is not defined
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from /home/kde4test/kde4/src/kdebase-4.2.1/apps/nsplugins/viewer/glibevents.h:30,
                 from /home/kde4test/kde4/src/kdebase-4.2.1/apps/nsplugins/viewer/viewer.cpp:52:
/usr/include/glib-2.0/glib/gthread.h:268: error: 'GSystemThread' does not name a type
/usr/include/glib-2.0/glib/gthread.h:336: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:336: error: ISO C++ forbids declaration of 'gsize' with no type
/usr/include/glib-2.0/glib/gthread.h:337: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:337: error: ISO C++ forbids declaration of 'gsize' with no type
/usr/include/glib-2.0/glib/gthread.h:338: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gthread.h:339: error: ISO C++ forbids declaration of 'gsize' with no type
In file included from /usr/include/glib-2.0/glib.h:37,
                 from /home/kde4test/kde4/src/kdebase-4.2.1/apps/nsplugins/viewer
(...)
Tons of more ...
(...)


Anyways, how do I "completely disable the gstreamer support" and leave only xine ?

Thanks
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
Looks like an incomplete installation of glib or the include paths for using glib are not detected properly

What does this command tell you?
Code: Select all
pkg-config --cflags glib-2.0


Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
megadriver
Registered Member
Posts
22
Karma
0
OS
anda_skoa wrote:Looks like an incomplete installation of glib or the include paths for using glib are not detected properly

What does this command tell you?
Code: Select all
pkg-config --cflags glib-2.0


Cheers,
_


Code: Select all
kde4test@asgard:~> pkg-config --cflags glib-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include


thx.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Completely disabling GStreamer can be done by uninstalling the GStreamer development packages, then cleaning the build directory.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
Also, in kdesupport/phonon/CMakeLists.txt you may want to comment (#) the add_directory(gstreamer) line.


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
User avatar
megadriver
Registered Member
Posts
22
Karma
0
OS
dpalacio wrote:Also, in kdesupport/phonon/CMakeLists.txt you may want to comment (#) the add_directory(gstreamer) line.


Did that, and that was how I was able to compilie kdesupport. But it doesn't solve the problem with glib and kdebase (and probably other packages that I haven't tried yet).

Why KDE, which uses QT, would need glib anyways ?!? LOL

Thx.
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
megadriver wrote:
dpalacio wrote:Also, in kdesupport/phonon/CMakeLists.txt you may want to comment (#) the add_directory(gstreamer) line.


Did that, and that was how I was able to compilie kdesupport. But it doesn't solve the problem with glib and kdebase (and probably other packages that I haven't tried yet).

Why KDE, which uses QT, would need glib anyways ?!? LOL

Thx.

It does not need Glib. It is an optional dependency, for integration with GLib libraries, plugins. If you're not interested in that kind integration, you can omit it completely by removing Glib devel headers, or passing an option to Qt's configure (forgot which, -no-glib?).


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
GStreamer is based on GLib and therefore KDE needs to interface with it in order to use GStreamer. Xine the recommended backend to use ( for most problems with audio, the first thing requested is to switch to the Xine backend )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, mickae, Sogou [Bot]