[Numpy-discussion] X11 system info

Pauli Virtanen pav at iki.fi
Wed Jul 20 04:58:00 EDT 2011


Tue, 19 Jul 2011 21:55:28 +0200, Ralf Gommers wrote:
> On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale <dsdale24 at gmail.com>
> wrote:
>> In numpy.distutils.system info:
>>
>>    default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib',
>>                                     '/usr/lib'], platform_bits)
>>    default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include',
>>                                '/usr/include']
>>
>> These defaults won't work on the forthcoming Ubuntu 11.10, which
>> installs X into /usr/lib/X11 and /usr/include/X11.

Did you check that some compilation fails because of this?
If not, how did you find the information that the location is changed?

On Ubuntu 10.04, the libs are in

	/usr/lib/i386-linux-gnu/

The same seems to be true for the current Ubuntu 10.10 packages:

	http://packages.ubuntu.com/oneiric/i386/libxrender1/filelist

Do you have a link where the change of location is explained?

> Do you have a link to where this is described? And what about the
> 64-bit lib path, will that be /usr/lib64/X11?

These paths can be found runtime via pkg-config,

	pkg-config --cflags-only-I xproto
	pkg-config --libs-only-L xproto

However, the convention typically is "#include <X11/Xlib.h>"
so having only "/usr/include" in the path should be OK. But maybe
just hardcoding more paths would be enough.

There's a lot of stuff in `system_info`...

	Pauli




More information about the NumPy-Discussion mailing list