netsurf-reMarkable
netsurf-reMarkable copied to clipboard
Build issues on MacOS
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.
Could it be related to https://github.com/toltec-dev/toltec/issues/871?