jwm
jwm copied to clipboard
Support - can't compile under Ubuntu 18.04.5
Hi. I'm not a C expert, but tried to compile the latest JWM from this git repo using Ubuntu 18.04. I followed the instructions in the README to the letter. I've also installed all the *-dev packages I could find that might be related. But when I run make I get the following error. Any idea how to fix that? Any help would be greatly appreciated.
I even tried to configure JWM with the --disable-xft option, but I still got the exact same error. Which I thought was weird too. :man_shrugging:
jwm (master)]$ ./configure --disable-xinerama --disable-fribidi
[jwm (master)]$ make
make -C src all
make[1]: Entering directory '/data/devel/opensource/jwm/src'
gcc -c -g -O2 -I/usr/local/include/libpng16 -I/usr/local/include/librsvg-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/libpng16 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -D_THREAD_SAFE -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/home/graemeg/apps/jwm/share/locale\" action.c
In file included from jwm.h:98:0,
from action.c:8:
/usr/include/X11/Xft/Xft.h:39:10: fatal error: ft2build.h: No such file or directory
#include <ft2build.h>
^~~~~~~~~~~~
compilation terminated.
Makefile:37: recipe for target 'action.o' failed
make[1]: *** [action.o] Error 1
make[1]: Leaving directory '/data/devel/opensource/jwm/src'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
[jwm (master)]$ locate ft2build.h
/opt/Signal/resources/app.asar.unpacked/node_modules/sharp/vendor/include/freetype2/ft2build.h
/usr/include/freetype2/ft2build.h
~~Make sure you have installed libfreetype-dev~~
Ha, I've seen that seems installed. Try with: ./configure --prefix=/usr
Thank you for your response. Unfortunately that did not solve the problem either. I still get the exact same error.
From the make output I can see it's looking for the ft2build.h in the /usr/local/include/freetype2 directory, but when I use locate to find the file, it shows that the file it installed in /usr/include/freetype2/ft2build.h instead. So yeah, it seem you are on the right track. I need to somehow convince make to look it the /usr/include/ instead of the /usr/local/include/ path hierarchy. I'll google some more to see if I can figure out how to tell make to look elsewhere.
Does this help?
PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure --disable-xinerama --disable-fribidi