LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   enable-gl option in Cairo (http://www.linuxquestions.org/questions/linux-from-scratch-13/enable-gl-option-in-cairo-916764/)

devilboy09 12-02-2011 08:11 AM

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???

druuna 12-02-2011 08:45 AM

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.

devilboy09 12-02-2011 09:18 AM

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?

druuna 12-02-2011 09:42 AM

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.

devilboy09 12-02-2011 09:50 AM

i did install it and i have libxml2.la,libxml2.so,libxml2.so.2 and libxml2.so,2.7.8 under /usr/lib

druuna 12-02-2011 10:08 AM

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.

druuna 12-02-2011 10:33 AM

Hi,

Have a look here (again the first google hit): Mesalib 7.9

devilboy09 12-02-2011 11:01 AM

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

druuna 12-02-2011 11:17 AM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4540327)
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
????

devilboy09 12-02-2011 11:23 AM

Code:

????
my point was the module is not missing

druuna 12-02-2011 11:39 AM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4540346)
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}.......

devilboy09 12-03-2011 02:21 AM

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

druuna 12-03-2011 02:46 AM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4540817)
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.

devilboy09 12-03-2011 03:07 AM

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

druuna 12-03-2011 03:21 AM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4540844)
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.


All times are GMT -5. The time now is 07:47 PM.