X11/Xlib.h not found in Ubuntu
A quick search using...
apt search Xlib.h
Turns up the package libx11-dev but you shouldn't need this for pure OpenGL programming. What tutorial are you using?
You can add Xlib.h to your system by running the following...
sudo apt install libx11-dev
Ubuntu 16.04: fatal error: X11/Xlib.h: No such file or directory
anaconda has its own environment, which by default usually lacks X11 headers(e.g libx11-dev, or whatever you call it). Try "conda install -c conda-forge xorg-libx11" . It worked for me when a certain R-package threw an error "X11/Xlib.h : No such file or directory".
After installing libx11-dev I am not able to find Xlib.h
I don't know anything about netbeans, but: you can find out what's in a package installed on your system with the command
dpkg -L <name of package>
When I do this on an Ubuntu system I have access too, it indicates that libx11-dev is supposed to include the file /usr/include/X11/Xlib.h
. However, this does not tell you if the file actually exists. You need something like the find
commands you were trying for that.
Now, your find
commands didn't do anything because find
has a command line syntax that's different from everything else. This is how to do what you were trying to do with find
:
find / -name Xlib.h -print
find / -name X11 -print
(On recent systems with GNU userland (i.e. all Linux and some others), the trailing -print
is not necessary, but on older systems and possibly also those that retain more of a BSD heritage, it is. I learned my shell back in the bad old days of SunOS 4 and I still have those habits.)
Related Topics
Pass Command-Line Arguments to Grep as Search Patterns and Print Lines Which Match Them All
How to Grep One String Occuring Multiple Times from Same File
Calculate Size of Files in Shell
Append Line to /Etc/Hosts File with Shell Script
How to Ssh into Remote Linux by Ngrok
On Linux - Set Maximum Open Files to Unlimited. Possible
Linux Directory Permissions for Different Groups
Linux Kernel Interrupt Handler Mutex Protection
How to Reconfigure Oracle 10G Xe on Linux
Adding a Header into Multiple .Txt Files
Linux Script Extract Information from Excel to Create Users
Implementing an Update/Upgrade System for Embedded Linux Devices
How to Learn the Structure of Linux Wireless Drivers (Mac80211)
How to Resume Interrupted Download Automatically in Curl
How to Decrease the Size of Generated Binaries
How to Mount an Iso Inside a Docker Container
Ps Utility in Linux (Procps), How to Check Which CPU Is Used