Some of my source code uses
#include <X11/Xlib.h>
#include <X11/Xutil.h>
gcc complains that these are not found.
How do I get those to be available to compile?
How to get X11/xxx for compile
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 1
- Posts: 9
- Joined: Wed Sep 15, 2021 6:37 pm
How to get X11/xxx for compile
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to get X11/xxx for compile
probably something like
I think the command
libx11-dev
in the repos (stab in the dark though). I think the command
apt search
can be used to get the correct package name (e.g. apt search Xlib.h
).-
- Level 1
- Posts: 9
- Joined: Wed Sep 15, 2021 6:37 pm
Re: How to get X11/xxx for compile
Close:
sudo apt install libx11-dev
did get it for me
Now I have an unrelated problem for another question perhaps this weekend
Re: How to get X11/xxx for compile
Seems I was spot on with the package name.