Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been trying to install this from https://github.com/Zombant/LinuxXP#readme on ubuntu but i keep getting this error compilation terminated.
In file included from main.cpp:3:
window_manager.hpp:5:10: fatal error: X11/Xlib.h: No such file or directory
5 | #include <X11/Xlib.h>
i have done an apt search for the file Xlib.h and installed it but im still getting the error when i run make build
compilation terminated.
In file included from main.cpp:3:
window_manager.hpp:5:10: fatal error: X11/Xlib.h: No such file or directory
5 | #include <X11/Xlib.h>
i have done an apt search for the file Xlib.h and installed it but im still getting the error when i run make build
You don't tell us what version of Ubuntu, or tell us what you installed, but that file is obviously missing; the error is VERY clear. Have you verified the file it mentions actually exists??
im using ubuntu 22.04.3 and here is what i installed root@david-VirtualBox:/home/david/LinuxXP# apt install xhk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
xhk is already the newest version (1.2-2).
0 to upgrade, 0 to newly install, 0 to remove and 25 not to upgrade.
root@david-VirtualBox:/home/david/LinuxXP#
im using ubuntu 22.04.3 and here is what i installed
Code:
root@david-VirtualBox:/home/david/LinuxXP# apt install xhk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
xhk is already the newest version (1.2-2).
0 to upgrade, 0 to newly install, 0 to remove and 25 not to upgrade.
root@david-VirtualBox:/home/david/LinuxXP#
Use CODE tags when posting output like this, please. And as asked, did you verify that the file mentioned is actually installed/present?? Did you look at what was in that xhk package??
Doing a brief search for that file says you need the X11 development libraries. Are those installed???
I ran the command you said now im getting a differant error code:compilation terminated.
In file included from image.cpp:1:
image.hpp:7:10: fatal error: Imlib2.h: No such file or directory
7 | #include <Imlib2.h>
code: I just searched for it with apt found nothing
Last edited by beermonster63uk; 09-08-2023 at 09:23 AM.
I ran the command you said now im getting a differant error code:
Code:
compilation terminated.
In file included from image.cpp:1:
image.hpp:7:10: fatal error: Imlib2.h: No such file or directory
7 | #include <Imlib2.h>
code: I just searched for it with apt found nothing
AGAIN: post such things in CODE tags. And AGAIN, you have a very clear message, explicitly telling you what file you need. And just putting "ubuntu 22.04 imlib2.h" into Google pulls up a LOT, telling you (among other things):
Code:
sudo apt install libimlib2-dev
Again; you are missing the development header libraries needed to do what you want. Please don't ask us to look up each missing file for you.
Just get your hands dirty and it will all come to you, including satisfaction.
You may start with 'man hier', one thing what amazed me when I got my first Linux was the organization of file tree and the simplicity of configuration with text files. Once you know where to look for administration tasks it becomes easy for you.
X11 window manager written in C++ with the Xlib C libraries, made to resemble an OS with a similar name.
Please no. Embrace Linux as it is and you'll be better off in the long run, instead of trying to make it Windows.
Also, Imlib doesn't seem to want to load start_button.bmp,even when it's in the current directory:
Code:
jayjwa@atr2 ~/LinuxXP (master)> ./build_and_run.sh
g++ -o window_manager.o window_manager.cpp frame.cpp bar.cpp image.cpp main.cpp -lX11 -lImlib2
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
./xinitrc: line 3: picom: command not found
./xinitrc: line 1: nitrogen: command not found
Cannot load image: start_button.bmpxinit: connection to X server lost
waiting for X server to shut down
Looks like TWM, you need to run something like feh for background image and idesk to have icons on desktop. Add some file manager as Thunar, it can run in daemon mode and use gvfs to mount volumes.
Last edited by Emerson; 09-08-2023 at 05:25 PM.
Reason: Typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.