Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd May 2006, 06:40 AM
ScottishCaptain Offline
Registered User
 
Join Date: Aug 2005
Posts: 37
New XGL Guide

Greetings to all!

I've decided to post another XGL guide for installing and compiling XGL.

The only real difference is that the guide sets all the libraries, includes, binaries, and sources, up under /opt. Basically, nothing really gets installed to /usr or /usr/lib (or even /usr/lib64, for AMD64 users), so you don't have to worry about prodding Fedora.

If something does bork, just 'rm -rf' everything under Opt. It will take XGL and everything (I do mean everything) associated with XGL with it. No more messing with removing RPM's, or as some of you may have noticed, playing with Control-Center which may/may not change the layout of your System->Preferences menu.

I personally think it's a much more tidy, and clean method of setting up XGL. Fedora isn't touched, so everything should be happy-rainbows even if you have to delete XGL. Anything not associated or built against XGL living under /opt shouldn't be aware that XGL even exists, so control-center and Package Updater shouldn't have to worry about RPM hell, as well as any programs you may compile against the Fedora base system shouldn't be affected.

I may or may not check into building some XGL RPM's that basically install everything under /opt, which should make RPM installation a little more sucsessful.

As always, post if you need help. I'll try and help you with any problems.

http://www.sailingcrusade.com/?page_id=39

-S'Captain
Reply With Quote
  #2  
Old 24th May 2006, 09:16 PM
seanraf Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
I'm kinda new, but when I get to compiling glitz, it says that -prefix is not a valid variable name.
Reply With Quote
  #3  
Old 24th May 2006, 09:23 PM
ScottishCaptain Offline
Registered User
 
Join Date: Aug 2005
Posts: 37
Yup.

Are you copying and pasting the text directly? I know it's a hassle, but it doesn't work if you copy it directly from the guide and paste it into a Terminal.

All the prefix commands start with two dashes. Thus, what looks like "-prefix" is actually "--prefix".

I'm working on finding a better way to quote the commands and let the commands that are on a single-line take up a single line, rather then wrapping around in the quote boxes (which makes things confusing).

I'll take a look at it later on today when I have the time, and possibly update everything to fix this problem.
Reply With Quote
  #4  
Old 25th May 2006, 04:11 AM
Scytale Offline
Registered User
 
Join Date: Jan 2006
Location: Wollongong, Australia
Age: 28
Posts: 198
Hey great guide, I noticed it was written for Gnome, is there a way to get XGL running in KDE?
Reply With Quote
  #5  
Old 25th May 2006, 11:35 AM
Scytale Offline
Registered User
 
Join Date: Jan 2006
Location: Wollongong, Australia
Age: 28
Posts: 198
Ok I've been trying to get it working for a while

and get to configuring compiz

Code:
checking for PLACE... yes
checking for LIBSVG_CAIRO... yes
checking for GNOME_WINDOW_DECORATOR... yes
checking for GNOME_WINDOW_SETTINGS... checking for KDE_WINDOW_DECORATOR... configure: creating ./config.status
config.status: creating compiz.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/compiz.schemas.in
config.status: creating images/Makefile
config.status: creating gnome/Makefile
config.status: creating gnome/window-decorator/Makefile
config.status: creating gnome/compiz.desktop
config.status: creating kde/Makefile
config.status: creating kde/window-decorator/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing intltool commands
config.status: executing po/stamp-it commands

the following optional plugins will be compiled:
  gconf: yes
  place: yes
  svg:   yes

and the following optional features will be compiled:
  gnome: no
  kde:   no
For some reason it can't find the "GNOME_WINDOW_SETTINGS" variable, any idea why

Here's the output of PKG_CONFIG_PATH

Code:
[root@localhost compiz]# echo $PKG_CONFIG_PATH 
/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig:/usr/lib
I had to add user lib to PKG_CONFIG_PATH to make it detect the variable "GNOME_WINDOW_DECORATOR"

any ideas how to get GNOME_WINDOW_SETTINGS to work?
Reply With Quote
  #6  
Old 25th May 2006, 01:04 PM
peppolone Offline
Registered User
 
Join Date: Jun 2005
Posts: 22
When i configure libsvg-cairo-0.1.6 "[root@localhost libsvg-cairo-0.1.6]# ./configure --prefix=/opt", it stops with
Quote:
checking for libsvg >= 0.1.2 cairo >= 0.5.0... Package libsvg was not found in the pkg-config search path. Perhaps you should add the directory containing `libsvg.pc' to the PKG_CONFIG_PATH environment variable No package 'libsvg' found
configure: error: Library requirements (libsvg >= 0.1.2 cairo >= 0.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
__________________
www.fedora4.com
www.4mj.it
Reply With Quote
  #7  
Old 25th May 2006, 01:49 PM
Scytale Offline
Registered User
 
Join Date: Jan 2006
Location: Wollongong, Australia
Age: 28
Posts: 198
Yeah I got that error too took me ages to work out what was wrong.

Type this and hit return

Code:
export PKG_CONFIG_PATH=/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig:/usr/lib
check to see if it worked by typing

Code:
echo $PKG_CONFIG_PATH
Another bug I've found is the Following line

Code:
    PKG_CONFIG_PATH=/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig ./autogen.sh –prefix=/opt/Xgl –with-gl-libs=”/opt/build/Mesa/lib/libGL.a -pthread -ldrm” –enable-libsvg-cairo
there is no file called libGL.a so the make will fail (the configure works) I fixed this by changing the configure options to

Code:
    cd /opt/build/app/compiz

    PKG_CONFIG_PATH=/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig ./autogen.sh –prefix=/opt/Xgl –with-gl-libs=”/opt/build/Mesa/lib/libGL.so -pthread -ldrm” –enable-libsvg-cairo
I have built the whole thing now but when I run this line

Code:
    /opt/Xgl/bin/Xgl :1 -ac -accel glx:pbuffer -accel xv &

    DISPLAY=:1 /opt/Xgl/bin/compiz decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &

    DISPLAY=:1 /usr/bin/gnome-terminal &
    DISPLAY=:1 /opt/Xgl/bin/gnome-window-decorator &
I get no window border and I can't move resize. I suspect its too do with my earlier problem with compiz not finding GNOME_WINDOW_SETTINGS. Any help would be apreciated.
Reply With Quote
  #8  
Old 26th May 2006, 12:51 AM
voice_of_buddha Offline
Registered User
 
Join Date: May 2006
Posts: 16
Question

I've set up a mint new x86_64 FC5 system to try this guide. But I cannot get over the RPM building. After
Code:
rpmbuild -ba ./control-center.spec
I get no control-center-devel-2.14.1-1.fc5.2.... There are only control-center-2.14.1-1.fc5.2.x86_64.rpm and control-center-debuginfo-2.14.1-1.fc5.2.x86_64.rpm Any hints?

When building the RPMs I can see something like
Code:
Conflicts: desktop-backgrounds-basic < 2.0-27 desktop-backgrounds-extended < 2.0-27
Obsoletes: gnome control-center-devel fontilus
but it doesn't really move me forward. Any hints for me?
Reply With Quote
  #9  
Old 26th May 2006, 01:18 AM
Scytale Offline
Registered User
 
Join Date: Jan 2006
Location: Wollongong, Australia
Age: 28
Posts: 198
Yeah the SRPM linked to in the article is nothing special the built rpms (control-center and control-center-debuginfo) are available from within YUM, chances are you've probably got it installed allready.

In order for me to get gnome support in compiz I had to remove the RPM (rpm -e control-center) and compile and install the version of control centre found here ftp://ftp.gnome.org/pub/gnome/source...2.14.1.tar.bz2
from source For some strange reason the redhat SRPM doesn't work with compiz. It could be due to the fact that there is no devel rpm available I'm not sure.

I have just about got it working now (XGL works from inside a window) but it craps out when I try to load it via GDM. It keeps loading metacity for some strange reason and when I run compiz -- replace from a terminal window the borders go away. It won't let me run gnome decorator since the instance I created in Sessions, startup is allready running. I think I have to edit a config file somewhere to tell it not to run metacity. Since metacity keeeps "overwriting" compiz.

Also the article mentions editing the file /usr/share/gdm/defaults.conf

from experimentation I have found that the command "gdmsetup" from terminal will make the same changes and is a bit friendlier to use. The options we want are under the security tab and then the X-Servers button.
Reply With Quote
  #10  
Old 26th May 2006, 11:13 AM
KClaisse's Avatar
KClaisse Offline
Registered User
 
Join Date: May 2006
Location: Southern California
Age: 23
Posts: 291
OK I followed a VERY similar guide at http://ghaefb.rebootcomic.com/?page_id=41

Anywho after installing, my titlebar disappeared! Also the borders on my windows disappeared too.

EDIT: OK Figured it out, sorta. Well I removed all of the plugins from the list in active_plugins and then redid it in this order:

gconf
decoration
wobbly
fade
minimize
cube
rotate
zoom
scale
move
resize
place
switcher

^^^Use that order. Works PERFECT! I LOVE XGL!!!

Last edited by KClaisse; 26th May 2006 at 11:30 AM. Reason: Figured it oUt!
Reply With Quote
  #11  
Old 26th May 2006, 02:15 PM
peppolone Offline
Registered User
 
Join Date: Jun 2005
Posts: 22
cd /opt/build/app/compiz
PKG_CONFIG_PATH=/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig ./autogen.sh --prefix=/opt/Xgl --with-gl-libs="/opt/build/Mesa/lib/libGL.a -pthread -ldrm" --enable-libsvg-cairo
Quote:
the following optional plugins will be compiled:
gconf: yes
place: yes
svg: yes

and the following optional features will be compiled:
gnome: no
kde: no
In /usr/src/redhat/RPMS/i386/ rpmbuild created control-center-2.14.1-1.fc5.2.i386.rpm and control-center-debuginfo-2.14.1-1.fc5.2.i386.rpm, but no devel.
Why?
__________________
www.fedora4.com
www.4mj.it

Last edited by peppolone; 26th May 2006 at 02:21 PM.
Reply With Quote
  #12  
Old 26th May 2006, 07:46 PM
ework Offline
Registered User
 
Join Date: Oct 2005
Posts: 37
Quote:
Originally Posted by Scytale
Yeah the SRPM linked to in the article is nothing special the built rpms (control-center and control-center-debuginfo) are available from within YUM, chances are you've probably got it installed allready.
I found this link on a blog which has the devel package info included.

http://cng.ateneo.edu/cng/wyu/softwa....fc5.3.src.rpm
Reply With Quote
  #13  
Old 26th May 2006, 07:50 PM
KClaisse's Avatar
KClaisse Offline
Registered User
 
Join Date: May 2006
Location: Southern California
Age: 23
Posts: 291
Quote:
Originally Posted by peppolone
cd /opt/build/app/compiz
PKG_CONFIG_PATH=/opt/Xgl/lib/pkgconfig:/opt/lib/pkgconfig ./autogen.sh --prefix=/opt/Xgl --with-gl-libs="/opt/build/Mesa/lib/libGL.a -pthread -ldrm" --enable-libsvg-cairo

In /usr/src/redhat/RPMS/i386/ rpmbuild created control-center-2.14.1-1.fc5.2.i386.rpm and control-center-debuginfo-2.14.1-1.fc5.2.i386.rpm, but no devel.
Why?

Try the directions on this page. http://ghaefb.rebootcomic.com/?page_id=41
I followed these and they worked perfect.
Reply With Quote
  #14  
Old 27th May 2006, 03:18 PM
Skinney's Avatar
Skinney Offline
Registered User
 
Join Date: Mar 2006
Location: Akershus, Norway
Age: 24
Posts: 325
well i figured out that the hard way that this did not work with ATI's fglrx driver installed... *sigh*

anyone know or have experience with ATI's proparity driver working in XGL?
__________________
Registered Linux User #412673

Last edited by Skinney; 27th May 2006 at 04:23 PM.
Reply With Quote
  #15  
Old 28th May 2006, 09:00 AM
ework Offline
Registered User
 
Join Date: Oct 2005
Posts: 37
Install using repo

I just created a new thread using RPMs to install Xgl. I believe they also work for some ATI cards.

http://www.fedoraforum.org/forum/sho...d.php?t=111226
Reply With Quote
Reply

Tags
guide, xgl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thanks to MJM for his guide stanmc Using Fedora 4 27th July 2009 12:34 AM
FC6 guide (and some) vinster EOL (End Of Life) Versions 1 17th November 2006 01:57 PM
XGL FC5 guide ghaefb Guides & Solutions (No Questions) 109 6th September 2006 06:08 PM
Guide shoaibi Using Fedora 8 29th June 2006 10:26 AM
Guide to FC4? dtm.exe Using Fedora 2 28th September 2005 04:56 AM


Current GMT-time: 12:36 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat