LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-02-2011, 08:11 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Rep: Reputation: 7
enable-gl option in Cairo


i'm installing cairo.the configure command is like this:
Code:
./configure --prefix=/usr --enable-tee --enable-gl
at the end of the page the book says remove --enable-gl if you have not installed Mesalib.when i see the list of dependencied in Mesalib, there's a package named libdrm.this is where it's become intresting.because libdrm has a dependency named "cairo".how's that possible?
it can't be right.i mean for installing cairo, first i should install Mesalib.but for installing Mesalib i should install libdr.and for installing libdrm i should cairo!!!
do we have a loop here???
 
Old 12-02-2011, 08:45 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

As you might have noticed, there are more --enable-XYZ options mentioned in the Command Explanations then in the ./configure command. Some you might want to use. At this stage you need to omit the --enable-gl (mesalib isn't installed yet).

You might want to (re)install cairo at a later stage when mesalib is installed and include the --enable-gl option.

Another options you might want to include is the --enable-xcb (assuming libxcb-1.7 is installed).

Hope this helps.
 
Old 12-02-2011, 09:18 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
apparently. pixman-0.18.4 should be installed.i installed pixman-0.18.4.then i installed cairo and libdrm, but i can't make MesaLib.here's the error:
Code:
File "/sources/mesa-7.9/src/mesa/main/APIspecutil.py", line 28 in <module>
import libxml2
ImportError: No module named libxml2
it seems that one of the python' modules is missing->libxml2
how can i install it?
 
Old 12-02-2011, 09:42 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Did you install this one: libxml2-2.7.8 (have a look at the Contents part -> Installed Libraries: libxml2.{so,a} and optionally, the libxml2mod.{so,a} Python module)

You might have installed it if you followed the dependencies:

cairo-1.10.2 needs: pkg-config-0.26, libpng-1.5.5, pixman-0.15.20, and Fontconfig-2.8.0

Fontconfig-2.8.0 needs: FreeType-2.4.4 and either expat-2.0.1 or libxml2-2.7.8

Hope this helps.
 
Old 12-02-2011, 09:50 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
i did install it and i have libxml2.la,libxml2.so,libxml2.so.2 and libxml2.so,2.7.8 under /usr/lib

Last edited by devilboy09; 12-02-2011 at 09:56 AM.
 
Old 12-02-2011, 10:08 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Have you checked and double checked if you met all the dependencies?

Here's a list that needs to be installed:
Code:
Dependencies and their dependencies:

GLib-2.30.1
Python-2.7.2
FreeType-2.4.4 
expat-2.0.1 
libxml2-2.7.8
pkg-config-0.26
libpng-1.5.5
pixman-0.15.20 
Fontconfig-2.8.0
cairo-1.10.2
libpthread-stubs-0.3 
libatomic_ops-1.2
Xorg Protocol Headers
Xorg Libraries
makedepend-1.0.3 
libdrm-2.4.23 
expat-2.0.1 
talloc-2.0.1

The above is needed to install:

MesaLib-7.9
Hope this helps.
 
Old 12-02-2011, 10:33 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Have a look here (again the first google hit): Mesalib 7.9
 
Old 12-02-2011, 11:01 AM   #8
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
Have a look here (again the first google hit): Mesalib 7.9
it says i may compiled libxml2 without python support.so, how am i suppose to do that?
BTW:i can import libxml2 in python programming interface

Last edited by devilboy09; 12-02-2011 at 11:03 AM.
 
Old 12-02-2011, 11:17 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by devilboy09 View Post
it says i may compiled libxml2 without python support.so, how am i suppose to do that?
It should have been picked up when you installed libxml2.

I'm guessing you installed libxml2 before you installed python 2.7 and that's why it was not included. I do think it is OK to reinstall libxml2 at this point. I'm not 100% sure if other already installed packages need to be reinstalled. You might want to check. If the dependency is Optional it is up to you to decide if you need it or not.

Quote:
BTW:i can import libxml2 in python programming interface
????
 
Old 12-02-2011, 11:23 AM   #10
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
????
my point was the module is not missing
 
Old 12-02-2011, 11:39 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by devilboy09 View Post
Code:
????
my point was the module is not missing
I do believe it is missing:
Quote:
Originally Posted by devilboy09
i did install it and i have libxml2.la,libxml2.so,libxml2.so.2 and libxml2.so,2.7.8 under /usr/lib
I don't see libxml2mod.{so,a}.......
 
Old 12-03-2011, 02:21 AM   #12
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
i re-installed the python and a few packages.now when i make the mesalib i just get an error without any explaination:
Code:
make: *** [default] Error 1
 
Old 12-03-2011, 02:46 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by devilboy09 View Post
i re-installed the python and a few packages.
- Why did you re-install Python? You needed to re-install libxml2 (and possibly packages that depend on it) as mentioned in post #9.
- Which other packages are you talking about?
- which order did you re-install them?
Details please.

Quote:
now when i make the mesalib i just get an error without any explaination:
Code:
make: *** [default] Error 1
Only posting one error line doesn't tell us one bit (you should know that by now).
- Did you see anything in the output of the config step?
- What else was shown by the make step?
- Did you start fresh when installing Mesalib?
Again: Details please.
 
Old 12-03-2011, 03:07 AM   #14
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
Why did you re-install Python? You needed to re-install libxml2 (and possibly packages that depend on it) as mentioned in post
the only package that depend on libxml is python2.7, which is optional.i re-installed python2.7 and after that i installed a module named pyXML(i thought it would be relevant) and then i installed libxml.

Code:
Only posting one error line doesn't tell us one bit
i know.but i don't know where to look up.config.status doesn't tell so much

Code:
 What else was shown by the make step?
nothng.it's just a few make command make[1],make[2] and make[3] that i guess they went well

Code:
Did you start fresh when installing Mesalib?
yes

and this is the last thing i see when i'm making mesalib:
http://www.4shared.com/photo/_n8JqQuv/Untitled.html

Last edited by devilboy09; 12-03-2011 at 03:08 AM.
 
Old 12-03-2011, 03:21 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by devilboy09 View Post
Code:
Why did you re-install Python? You needed to re-install libxml2 (and possibly packages that depend on it) as mentioned in post
the only package that depend on libxml is python2.7, which is optional.
No. Python does not have a dependency called libxml2. libxml2 has a dependency called python! No need whatsoever to re-install python.

Quote:
i re-installed python2.7 and after that i installed a module named pyXML(i thought it would be relevant) and then i installed libxml.
As far as I can tell the PyXML Module isn't mentioned as a dependency (seen from what you are installing at the moment) and is not relevant.

Quote:
Code:
Only posting one error line doesn't tell us one bit
i know.but i don't know where to look up.config.status doesn't tell so much
The configure step tells you what has been picked up and what has not been picked up (the config.status: creating ... at the bottom of the output). You can also look at the config.log file.

Quote:
Code:
 What else was shown by the make step?
nothng.it's just a few make command make[1],make[2] and make[3] that i guess they went well
That output might hold valuable information, especially when things go wrong.

Quote:
and this is the last thing i see when i'm making mesalib:
http://www.4shared.com/photo/_n8JqQuv/Untitled.html
That screen print isn't readable.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] problem with --enable-libx264 option in ffmpeg sumeet inani Linux - Newbie 17 09-22-2012 09:55 PM
[SOLVED] Nm-Applet can't enable mobilebroadband option ( OB + Tint2 ) hellnest Arch 1 11-26-2010 01:38 AM
Enable connection timed out option in ssh msivadass Linux - Server 2 10-05-2008 01:44 PM
How to Enable and Disable TAB option in Shell? gsiva Linux - Server 2 09-22-2008 06:05 AM
"--enable-gtk-cairo" in gcc-4.0.2 llmmix Programming 0 11-09-2005 11:38 PM


All times are GMT -5. The time now is 06:23 PM.

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