X11/xlib.h not found

Hi

While installing a package, I need xlib.h but it is not found in X11. I installed libX11-devel as well but still its not yet come. How can I get Xlib.h ?

In Yast search check the provides box to search for what package provides it

Be certin of the archatecture of the packages and your OS ie 32 or 64 bit

X11/Xlib.h is indeed part of the libX11-devel package.


wolfi@amiga:~> rpm -qf /usr/include/X11/Xlib.h 

libX11-devel-1.6.2-5.1.2.x86_64

In the thread’s title you write xlib.h though (with a lower case ‘x’).
Is that what you are actually looking for? Linux filesystems are case sensitive.

What are you trying to build? If it is looking for xlib.h, it’s a mistake I suppose.
You’d need to patch it in that case (or create a symlink xlib.h->Xlib.h).

That’s true in general, but doesn’t matter for the compiler header files.

Having the wrong architecture of libX11-devel installed will give problems when linking though.

On 2015-07-15 14:06, namanarora wrote:
>
> Hi
>
> While installing a package, I need xlib.h but it is not found in X11. I
> installed libX11-devel as well but still its not yet come. How can I get
> Xlib.h ?
>
>

pin xlib.h says:


../suse/x86_64/libX11-devel-1.6.2-2.1.2.x86_64.rpm:    -rw-r--r--    1 root    root                    99819 Sep 28 01:26 /usr/include/X11/Xlib.h


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))