alex0809 / netsurf-reMarkable

NetSurf is a lightweight and portable open-source web browser. This projects adapts NetSurf for the reMarkable E Ink tablet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build issues on MacOS

alex0809 opened this issue · comments

When attempting to build Netsurf for MacOS using make image and then make build, it will fail libhubbub compilation:

make: Entering directory '/opt/netsurf/build/libhubbub'
/opt/netsurf/build/inst-arm-remarkable-linux-gnueabihf/share/netsurf-buildsystem/makefiles/Makefile.top:273: warning: overriding recipe for target 'clean'
examples/Makefile:14: warning: ignoring old recipe for target 'clean'
ENTITIES: src/tokeniser/entities.inc
make: *** No rule to make target 'libxml2.c', needed by 'libxml2.o'.  Stop.
make: Leaving directory '/opt/netsurf/build/libhubbub'
M.CONFIG: JPEG (libjpeg)	enabled       (NETSURF_USE_JPEG := YES)
M.CONFIG: PDF export (haru)	disabled      (NETSURF_USE_HARU_PDF := NO)
M.CONFIG: glibc internal iconv	enabled       (NETSURF_USE_LIBICONV_PLUG := YES)
M.CONFIG: Javascript (Duktape)	enabled       (NETSURF_USE_DUKTAPE := YES)
PKG.CNFG: CSS (libcss)	failed
Makefile:145: *** Unable to find library for: CSS (libcss).  Stop.
make: *** [build] Error 2

This issue seems to be related to the bind-mount of the build directory. Root cause is still unknown to me, if you have any ideas please share them!

As a workaround, there is a new parameter USE_VOLUME_MOUNT=YES for running the build with a volume mount of the build directory instead of a bind mount, that will only bind mount the netsurf directory and volume mount all other directories.
This workaround is automatically enabled on macOS.