LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-09-2009, 09:30 PM   #1
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Rep: Reputation: 79
Post Help on build libX11 + xcb


Hi there,

Any directions on building libX11 with xcb support? I 'trashed' my system for two times getting rid of fglrx. It's one xpress1100 [RS482 [Radeon Xpress 200M]].

Right now is kernel 2.6.29.1, xserver 1.5.2, mesa 7.4 and all the latest or gits protos/libs/drivers/..., but with libxcb, xcb and libX11 from slackware 12.2. 2D is very good and got dri, but have some image corruption and errors.

Desired is xserver 1.6.

Thanks.

Last edited by BrZ; 04-10-2009 at 04:06 AM.
 
Old 04-11-2009, 11:41 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,676
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
What exactly are you having problems with? libX11 will build against XCB if XCB is installed on your system. No additional configure switches should be necessary. Otherwise installing libX11 is as simple as executing the configure script, make, and make install.

Installing XCB is similar (configure, make, make install). Install xcb-proto, then libxcb, then (recommended) xcb-utils. You'll need Python to build xcb-proto. You'll need libXSLT, libXau, and libpthread-stubs to build libxcb. You'll need gperf to build xcb-utils. In the end, you'll have libX11-xcb in addition to libX11.
 
Old 04-11-2009, 01:07 PM   #3
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Original Poster
Rep: Reputation: 79
Tried again and failed. libxcb-xlib.so is not created and some programs/libs, specially xauth and kdeinit, seems to be linked against (?). As my acpi only works with kernel 2.6.28 and up, I was forced to keep an eye on every update. Before that was all pain with dsdt corretions.

Yesterday I was able to build mesa, xcb and xserver, with libX11, all from git. Copied libxcb-xlib to /usr/lib, made the symlinks and got warnings about some missing _lock_ calls. Also had errors on some kde applications, like the battery meter not showing. DRI was ok and, even if my fps was very slow, got compiz to work. I'm impressed it even worked.

Right now I'm 'unbuilding' all the mess...

Thanks for your reply.
 
Old 04-11-2009, 03:55 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Tried again and failed. libxcb-xlib.so is not created and some programs/libs, specially xauth and kdeinit, seems to be linked against (?)
Newer xcb (iirc from version 1.1.92) does not include libxcb-xlib anymore. That is a problem since many other apps are linked against this library. There are scripts that search the libtool files (*.la files) of the libraries in /etc/ld.so.conf and remove the libxcb-xlib dependency, but I think it's a risk to break your system if you use them.
This is the reason that I couldn't either upgrade to lastest X.
 
Old 04-11-2009, 05:57 PM   #5
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Original Poster
Rep: Reputation: 79
Is there any way to build the new server without xcb support and have video acceleration ?
 
Old 04-12-2009, 03:28 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
You could try to build latest X keeping the just the xcb provided by Slackware. This way you will have the libxcb-xlib library needed by kde and gtk apps. Compile libX11 with the "--with-xcb" option to use xcb.
 
Old 04-13-2009, 07:42 PM   #7
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Original Poster
Rep: Reputation: 79
Sorry for bothering, as my initial desire was really build with xcb and improving kernel compatibility with my broken BIOS. The R300, R400 and R500 will be dropped from the next fglrx, and the 9.3 won't compile on the 2.6.29 and future kernels. The RS480 is supposed to work well with the radeon driver.

No luck again, but learned to fix a lot of things Downgraded to last .28 series and made the proprietary module again. Will try at least upgrading some protos. On the desktop I have one old 8500. No luck also. The desktop was messed very hard this time. As the result the rig is now almost a fresh 12.2. Not bad at all 8]

Thanks for taking your time.
 
Old 04-14-2009, 07:29 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Just FYI.
I've managed to build xorg-server-1.6, along with xcb-1.2 and Mesa-7.4 for testing it.
Since I also use gtk compiled from source, I had to rebuild gtk and its dependencies and had no problem with gtk apps
Thank god I use fluxbox and not kde, because kde is heavily dependent on libxcb-xlib, as it seems from:
Code:
grep libxcb-xlib /usr/lib/*.la
 
Old 04-14-2009, 10:51 AM   #9
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Hi,

I've also compiled X11 from source to experiment with latest xorg-server and intel drivers, and while I successfully built the entire X from source without the libxcb-xlib, it turned out that I had one or more goofs in my system to fix the libtool references to this library. As a result, while X11 runs like a charm, all other X applications also needed recompile...

Any chance you can share with us how you fixed the libtool files without having to recompile every single X-dependent application?

For those interested, here's the order in which I built X11 from scratch on a clean system (ie a system with absolutely no X or XAP packages installed (all latest version from contrib catalog on xorg except where noted, and mesa 7.4)

Code:
 1. ./x11.SlackBuild lib libpthread-stubs        
 2. libdrm                                       
 3. fontconfig                                   
 4. ./x11.SlackBuild proto                       
 5. ./x11.SlackBuild util                        
 6. ./x11.SlackBuild lib libXau                  
 7. ./x11.SlackBuild lib libXdmcp                
 8. ./x11.SlackBuild xcb xcb-proto               
 9. ./x11.SlackBuild xcb libxcb                  
10. ./x11.SlackBuild lib xtrans                  
11. ./x11.SlackBuild lib libX11                  
12. ./x11.SlackBuild data xbitmaps               
13. ./x11.SlackBuild lib libICE                  
14. lib libFS                                    
15. lib libXrender                               
16. lib pixman                                   
17. lib libXext         (only with libxproto 1.0.3)
18. lib libSM
19. lib libXt
20. lib libXmu
21. lib libXpm
22. lib libXaw
23. lib libXfixes
24. lib libXcursor
25. lib libXcomposite
26. lib libXft
27. lib libfontenc
28. lib libXfont
29. lib libxkbfile
30. lib libxkbui
31. lib libXv
32. lib libXvMC
33. lib libXp
34. lib libXprintUtil
35. lib libXprintAppUtil
36. ./x11.SlackBuild lib
37. app
38. data
39. xserver
40. drivers
 
Old 04-14-2009, 04:05 PM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
As a result, while X11 runs like a charm, all other X applications also needed recompile...
What you mean by "all other X apps"?
The apps in /usr/X11/bin are OK (I've tried more than 20 of them). Also fluxbox, firefox, thunderbird, gimp, openoffice etc work also without a hitch.
The only thing that has problems is kde, its libs and related apps. As I've already mentioned above I dont's use kde, so I didn't have to recompile anything, apart from gtk and its dependencies.
If you are interested you can try the solution posted in comments #15 and #20 in this bug report.
 
Old 04-14-2009, 09:00 PM   #11
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Original Poster
Rep: Reputation: 79
Quote:
Originally Posted by bathory View Post
Just FYI.
I've managed to build xorg-server-1.6, along with xcb-1.2 and Mesa-7.4 for testing it.
Since I also use gtk compiled from source, I had to rebuild gtk and its dependencies and had no problem with gtk apps
Thank god I use fluxbox and not kde, because kde is heavily dependent on libxcb-xlib, as it seems from:
Code:
grep libxcb-xlib /usr/lib/*.la
I see it now. Next time I'll try to make one separated server and run another desktop manager. My 'fresh' 12.2 is so rosed I can't even compile the radeon 6.0.9 again

Good to see I'm not alone, just a couple of years late.

Last edited by BrZ; 04-14-2009 at 09:07 PM.
 
Old 04-14-2009, 11:34 PM   #12
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Quote:
Originally Posted by bathory View Post
What you mean by "all other X apps"?
I meant everything I compiled by hand under the x11 tree works, but everything else relying on x, such as firefox, xchat etc means "all other X apps"..

I tried the solution from the gentoo bug report, but ended up borking my system. Have unfortunately not had sufficient time to dive deeper into this, as recompiling X from scratch already took more time than allowed :-)
 
Old 04-15-2009, 02:35 AM   #13
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
but everything else relying on x, such as firefox, xchat etc means "all other X apps".
firefox, xchat etc, are gtk apps, that's why I told you they work for me, cause I am also using gtk compiled from source.
Quote:
I tried the solution from the gentoo bug report, but ended up borking my system.
Hope you have a backup of the modified .la files.
 
Old 04-15-2009, 02:39 AM   #14
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Quote:
Originally Posted by bathory View Post
firefox, xchat etc, are gtk apps, that's why I told you they work for me, cause I am also using gtk compiled from source.
Ah, ofcourse... more rebuilding....

Quote:
Originally Posted by bathory View Post
Hope you have a backup of the modified .la files.
Yeah, but it's on a separate build-machine where I both have snapshots and it doesn't really matter since it's reserved for this kind of breakage :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesa 6.5.2 Build Failure s3v_state.c EmrldDrgn Linux - Software 1 01-09-2009 02:27 AM
xcb error prashant.kumar Linux - General 0 02-15-2008 07:01 AM
XCB, XLib and X extensions orhun Programming 3 06-04-2006 10:18 PM
problem compiling XCB filitov Linux - Software 0 08-13-2005 03:04 PM
Installing Mesa & Mesa-demos... bozotix Linux - Software 2 05-09-2002 12:55 AM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration