LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-23-2022, 02:23 AM   #1
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,623
Blog Entries: 40

Rep: Reputation: Disabled
[compiling from source] Header exists, -I correct_path, Header not found.


Good morning

I try to compile w3m from source and get the following error during Make:
Code:
x11_w3mimg.c:16:10: fatal error: glib-object.h: Datei oder Verzeichnis nicht gefunden
   16 | #include <glib-object.h>
      |          ^~~~~~~~~~~~~~~
... meaning: “File or directory not found”.

I checked that the file is found somewhere and get
Code:
zaphod@heart_of_gold:~/prog/foreign/w3m$ locate glib-object.h
/usr/include/glib-2.0/glib-object.h
The header file looks alright, too.

The makefile generated from ./configure contains the right references, as far as I can say, notably /usr/include/glib-2.0:
Code:
a_pony@free:~/prog/foreign/w3m$ cat Makefile | grep IMGCFLAGS
IMGCFLAGS =  -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
What can I do to make the existing glib-object.h palatable to this Makefile?

Last edited by Michael Uplawski; 04-23-2022 at 02:24 AM.
 
Old 04-23-2022, 05:42 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Just a thought...is there a pkgconfig file for it?
 
Old 04-23-2022, 06:47 AM   #3
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,623

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Just a thought...is there a pkgconfig file for it?
Do not see any.

I believe that w3mimg is so old that I should probably stop to care. And as autoconf already discovers a bunch of obsolete macros, I wonder if I should bother to compile w3m at all...

I bet that, should I solve the header-problem, there will be others.

Last edited by Michael Uplawski; 04-23-2022 at 06:59 AM.
 
Old 04-24-2022, 02:43 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Michael Uplawski View Post
I believe that w3mimg is so old that I should probably stop to care.
If w3mimg's functionality is what you're ultimately after, You might want to take a look at https://github.com/seebye/ueberzug
See it in action with ytfzf:
Attached Thumbnails
Click image for larger version

Name:	maim_2022-04-24_10-40-03.png
Views:	14
Size:	42.1 KB
ID:	38798  
 
1 members found this post helpful.
Old 04-24-2022, 04:33 AM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,623

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
If w3mimg's functionality is what you're ultimately after, You might want to take a look at https://github.com/seebye/ueberzug
See it in action with ytfzf:
Thank you very much! This is probably a better idea than to compile a component which does apparently not appeal to many, these days.
And aah! The Poplawski family and their achievements. I see changes and that search-engines have found me.., but you still get a lot of Poplawski.

Cheerio.

Last edited by Michael Uplawski; 04-27-2022 at 09:14 AM. Reason: Kraut2English
 
1 members found this post helpful.
Old 04-24-2022, 03:05 PM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
probably not important any more: https://stackoverflow.com/questions/...clude-filename
 
Old 04-24-2022, 04:37 PM   #7
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,623

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
This is always important

But #include <glib-object.h> is correct and should suffice to include the header, as the “Include-Path” is also set in the relevant Makefile.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Cannot get past GDISK- Caution: Invalid backup GPT header, but valid main header, regenerating backup header from main header. murde Linux - Newbie 2 05-30-2020 08:23 PM
To exists or not to exists, this is the Q. Inbal Linux - Newbie 3 07-18-2006 06:04 AM
Font path exists but can not be found. anchunlei Slackware 4 11-22-2004 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 PM.

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