[dev] [dwm] compile error

239 views
Skip to first unread message

Orka Edison

unread,
Aug 21, 2016, 12:19:24 PM8/21/16
to d...@suckless.org

[sudo] password for Orka:
cleaning
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -D_BSD_SOURCE
-D_POSIX_C_SOURCE=2 -DVERSION="6.1" -DXINERAMA
LDFLAGS = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
CC drw.c
In file included from drw.c:6:0:
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: Aucun fichier
ou dossier de ce type
#include <ft2build.h>
^
compilation terminated.
Makefile:18: recipe for target 'drw.o' failed
make: *** [drw.o] Error 1
Orka@Sony-Vaio:~/Documents/dwm-6.1$

--

i don't know what i do !?

Ali H. Fardan

unread,
Aug 21, 2016, 12:24:25 PM8/21/16
to dev mail list, Orka Edison
If you could translate the compiler error I'd appreciate it

Raiz

Reimundo Heluani

unread,
Aug 21, 2016, 12:32:08 PM8/21/16
to dev mail list
On Aug 21, Ali H. Fardan wrote:
>If you could translate the compiler error I'd appreciate it
>
>Raiz

It's a "not such file or directory" error, it's not finding the headers
ft2build.h

R
signature.asc

Silvan Jegen

unread,
Aug 21, 2016, 12:34:23 PM8/21/16
to dev mail list, Orka Edison
On Sun, Aug 21, 2016 at 07:24:02PM +0300, Ali H. Fardan wrote:
> If you could translate the compiler error I'd appreciate it
>
> Raiz
>
> On 2016-08-21 19:19, Orka Edison wrote:
> >[sudo] password for Orka:
> >cleaning
> >dwm build options:
> >CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
> >-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -D_BSD_SOURCE
> >-D_POSIX_C_SOURCE=2 -DVERSION="6.1" -DXINERAMA
> >LDFLAGS = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
> >CC = cc
> >CC drw.c
> >In file included from drw.c:6:0:
> >/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: Aucun
> >fichier ou dossier de ce type
> > #include <ft2build.h>

My French is rusty but I think it says.

"There is no file or directory of this type"

Sounds to me like the header file has not been found.


Cheers,

Silvan


Ali H. Fardan

unread,
Aug 21, 2016, 12:35:04 PM8/21/16
to dev mail list, Reimundo Heluani
On 2016-08-21 19:35, Reimundo Heluani wrote:
> On Aug 21, Ali H. Fardan wrote:
>> If you could translate the compiler error I'd appreciate it
>>
>> Raiz
>
> It's a "not such file or directory" error, it's not finding the
> headers ft2build.h
>
> R

Well, you answered it, ft2build.h header is missing, if you're on
debian, run:

# apt-get install libfreetype6-dev

otherwise, find the appropriate package for your distribution.

Raiz

Orka Edison

unread,
Aug 21, 2016, 1:38:01 PM8/21/16
to dev mail list

all ready installed but no change ?
isn't an utf-8 pb ??
---

Draco Metallium(Rodrigo S. Cañibano)

unread,
Aug 21, 2016, 1:43:17 PM8/21/16
to dev mail list
> all ready installed but no change ?

Check if 'ft2build.h' is truly installed with find or locate.

> isn't an utf-8 pb ??

Also, what do you mean with "an utf-8 pb"?

Orka Edison

unread,
Aug 21, 2016, 1:48:27 PM8/21/16
to dev mail list
dwm-6.1$ ls -l /usr/include/freetype2/ft2build.h
-rw-r--r-- 1 root root 2383 oct. 5 2015
/usr/include/freetype2/ft2build.h


---

Draco Metallium(Rodrigo S. Cañibano)

unread,
Aug 21, 2016, 2:03:20 PM8/21/16
to dev mail list
On 21 August 2016 at 14:48, Orka Edison <orka....@ovh.fr> wrote:
> dwm-6.1$ ls -l /usr/include/freetype2/ft2build.h
> -rw-r--r-- 1 root root 2383 oct. 5 2015 /usr/include/freetype2/ft2build.h

Try this: replace "#include <ft2build.h>" with "#include <freetype2/ft2build.h>"

Orka Edison

unread,
Aug 21, 2016, 2:12:34 PM8/21/16
to dev mail list
where ??


---

Orka Edison

unread,
Aug 21, 2016, 2:25:41 PM8/21/16
to dev mail list
X11INC = /usr/include/
X11LIB = /usr/include/lib

under config.mk, not X11R6/...


---

Rex Roni

unread,
Aug 22, 2016, 1:19:16 AM8/22/16
to dev mail list
I had the identical error building st. You can double check that

sudo find / -name ft2build.h

finds the file. Then after that it is a path issue. In my case I just
had to install pkg-config and try to rebuild.

Rex
--
Rex

Anselm R Garbe

unread,
Aug 22, 2016, 1:25:27 AM8/22/16
to dev mail list
Hi there,
This reminds me to re-instate the good old non-freetype drw.* implementation.

Xft sucks.

-Anselm

Reply all
Reply to author
Forward
0 new messages