Skip navigation.
Home
Now Shipping Version 7.0

Does MEPIS 6.5 32-bit basic CD have Xlib.h?


Posts: 2

I am running MEPIS 6.5 as a LiveCD on an HP9005DV laptop. One of my primary uses for Linux is to compile and run my own C language programs with the excellent gcc compiler. I have been unable to find the Xlib.h header file that describes all the XWindow functions (like XCreateWindow, etc) and the structures (like XSizeHints, etc) that I need to successfully compile a program that uses the basic XWindow routines. Where is it?

The LiveCD doesn't include

The LiveCD doesn't include the Xorg development files for two reasons
1) There isn't room left on the CD
2) It's kinda hard to develop software on a read-only filesystem! Eye-wink

If you install Mepis to the Hard Drive then you can get Xlib.h and the rest of the Xorg development files by installing the libx11-dev package with Synaptic.

Then why other *.h files under /linux/usr/include/X11?

I became excited when I found lots of other header files that support development of XWindow software under /linux/usr/include/X11. Is it possible Xlib.h was overlooked because most programmers use more sophisticated widget packages? It just seemed so basic to me that the XWindow environment, which is supported right out of the box on the LiveCD, would also include the ability to program it at its most basic level. What are these other header files for? I realize that installing to a hard drive and adding additional packages is the 'true' solution, but I'm trying to not disturb my XP partitions for now. In addition to the missing Xlib.h file I don't think the library libX11 exists, either. Thanks for your view.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.