LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 03-23-2021, 08:25 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
devuan testing amd64: fail to compile dwm


This is in Devuan 64bit, Testing.

Tried to compile dwm. Got error:
Code:
In file included from drw.c:6:
/usr/include/X11/Xft/Xft.h:39:10: fatal error: ft2build.h: No such file or directory
   39 | #include <ft2build.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:18: drw.o] Error 1
/usr/include/X11/Xft/Xft.h exists and looks to be a system file, in
other words, already installed and nothing to do with dwm, OK?

I looked and yes, this line does occur in Xft.h:
Code:
#include <ft2build.h>
The file ft2build.h does exist:
Code:
$ ls -l /usr/include/freetype2/ft2build.h
-rw-r--r-- 1 root root 990 Dec  5 03:20 /usr/include/freetype2/ft2build.h
Could someone please explain to me how a system include fails to include another system include and how can I overcome this problem?

Thank you.

p.s. Yes, I am aware that dwm is a package in Devuan, but there are patches and colors I like to use and those have to be hard-coded into the source prior to compilation.
 
Old 03-23-2021, 08:29 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Quote:
Originally Posted by jr_bob_dobbs View Post
p.s. Yes, I am aware that dwm is a package in Devuan, but there are patches and colors I like to use and those have to be hard-coded into the source prior to compilation.
Why won't you download the DEB package source, apply the patches, and rebuild?
Code:
apt-get source dwm
sudo build-dep dwm
<patch the source>
debuild
As to the make error, see this Debian patch.

Last edited by shruggy; 03-24-2021 at 10:49 AM.
 
Old 03-26-2021, 05:08 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Thank you for the reply.

The patch command failed with nonsense.

So all the patch really does is change
Code:
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
to
Code:
INCS = -I${FREETYPEINC}
LIBS = -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
So I manually made the needed edit and compiled.

unexpectedly, that did not solve the problem.

I copied in the binary I'd made in the other distro. Ran fine, which was a nice surprise. OK whatever. Not a proper nor elegant solution but it worked so that's my stopping point.

Last edited by jr_bob_dobbs; 03-26-2021 at 05:11 PM.
 
  


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
Devuan - Devuan based distros fatmac Linux - Distributions 50 02-19-2018 08:15 AM
Devuan & Devuan based distro thread fatmac Linux - General 8 07-30-2017 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:40 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