LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error: X11/Xlib.h: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/error-x11-xlib-h-no-such-file-or-directory-894891/)

mswamy78 08-01-2011 08:14 AM

error: X11/Xlib.h: No such file or directory
 
Hi,
I am trying to compile the code. I am getting this following error. Am I missing any package?

x86_screen.h:12:22: error: X11/Xlib.h: No such file or directory
In file included from osal_event.c:12:
x86_screen.h:25: error: expected specifier-qualifier-list before âDisplayâ
make[1]: *** [osal_event.o] Error 1


Please help

Thanks,
Swamy

weibullguy 08-01-2011 08:43 AM

Most likely. You are missing the development files for libX. Generally the development packages have the same name as the binary package except they will have -dev or -devel appended to them. If you told us what distro you were using, someone could probably tell you exactly which package to install. Or, better yet, how to figure it out on your own.

mswamy78 08-02-2011 01:40 AM

Please let me know how to check which distro I am using. Any command to check?

weibullguy 08-02-2011 02:08 AM

What did you install? Ubuntu, Fedora, Debian, Mint, Gentoo, Slackware, Arch, etc. That's your distro.

mswamy78 08-02-2011 02:35 AM

It is ubuntu 9.02

$ uname -r
2.6.31-203-gee1fdae

knudfl 08-02-2011 05:16 AM

" 2.6.31 " : That's Ubuntu 9.10 : The command: 'cat /etc/issue' will show.

9.10 is unsupported, and has been moved to the "Ubuntu museum".

To install packages, you will have to change the URLs in /etc/apt/sources.list

to : http://old-releases.ubuntu.com/ubuntu/dists/
And then : sudo apt-get update && sudo apt-get install libx11-dev

..


All times are GMT -5. The time now is 02:31 AM.