LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-08-2023, 08:45 AM   #1
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Rep: Reputation: 0
Angry can someone help im lost


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
 
Old 09-08-2023, 08:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by beermonster63uk View Post
I have been trying to install this from https://github.com/Zombant/LinuxXP#readme on ubuntu but i keep getting this error
Code:
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??
 
Old 09-08-2023, 09:08 AM   #3
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

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#
 
Old 09-08-2023, 09:13 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by beermonster63uk View Post
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???
Code:
sudo apt install libx11-dev
 
Old 09-08-2023, 09:21 AM   #5
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Original Poster
Rep: Reputation: 0
reply

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.
 
Old 09-08-2023, 09:39 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by beermonster63uk View Post
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.
 
Old 09-08-2023, 09:41 AM   #7
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Original Poster
Rep: Reputation: 0
Talking cracked it

thanks for your help and thanks to mighty google
 
Old 09-08-2023, 10:24 AM   #8
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up reply

I think im getting there but its such a learning curve from windows next step install it on bare hardware not virtual box
 
Old 09-08-2023, 10:40 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 09-08-2023, 11:46 AM   #10
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 783

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
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
You'll also need 'picom' and 'nitrogen'.
 
Old 09-08-2023, 04:09 PM   #11
beermonster63uk
LQ Newbie
 
Registered: Sep 2023
Posts: 6

Original Poster
Rep: Reputation: 0
Talking

After all that its crap all i got was a clock and a black background looks nothing like xp
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2023-09-08 22-04-04.png
Views:	24
Size:	31.8 KB
ID:	41594  
 
Old 09-08-2023, 05:22 PM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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
 
Old 09-09-2023, 01:22 AM   #13
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 783

Rep: Reputation: 250Reputation: 250Reputation: 250
Oops. Looks like my Imlib was old. Thanks for reminding me to update it. Now it works. At least something good came of all this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't someone help me i'am trying to install idevicerestore and when i do the sudo make i get this error can someone help me please shawn7226791 Linux - Software 4 09-18-2019 07:25 AM
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 01:51 PM
How can you tell that someone is bad? or Good ? someone is bad? or Good ? abrenar General 10 02-24-2009 02:42 PM
Can someone help with module loading ? I'm lost on this. lostboy Linux - General 17 05-07-2003 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration