cococry / ragnar

Minimal, flexible & user-friendly X tiling window manager
https://ragnarwm.org
GNU General Public License v3.0
997 stars 22 forks source link

unable to load ft2build.h #2

Closed meliodas0n closed 1 year ago

meliodas0n commented 1 year ago

I am trying to install this on Ubuntu 23.04, I am getting the following error when doing "sudo make clean install"

~/Ragnar$ sudo make clean install rm -f ragnar rm -f /usr/bin/ragnar gcc ragnar.c -o ragnar -lX11 -lXcursor -lXft -O3 -ffast-math -Wall -Wextra In file included from ragnar.c:4: /usr/include/X11/Xft/Xft.h:40:10: fatal error: ft2build.h: No such file or directory 40 | #include | ^~~~ compilation terminated. make: *** [Makefile:2: install] Error 1

The libfreetype dev package is already installed yet this is unable to load it. How can I resolve this ?

cococry commented 1 year ago

type cp /usr/include/freetype2/* /usr/include

this should resolve the issue

MitchRatquest commented 1 year ago

I added "-I/usr/include/freetype2" to the Makefile to build it on Debian 11:

install:
    gcc ragnar.c -o ragnar -I/usr/include/freetype2 -lX11 -lXcursor -lXft -O3 -ffast-math -Wall -Wextra
    cp ragnar /usr/bin/ragnar
meliodas0n commented 1 year ago

type cp /usr/include/freetype2/* /usr/include

this should resolve the issue

thanks, this has fixed the issue.

I am closing the issue