Back in the days of piCore v8.1.5, I was able to compile a standalone kiosk webviewer using webkitfltk.
See discussion
here. (Notes? We don't need no stinkin' notes!
) It appears that all I needed to do at that time was clone the webfltk source repo, install compiletc and webkitfltk-dev, and compile Source/WebKit/fltk/testapp/testapp.cpp, using the command line:
g++ testapp.cpp -lz -pthread -lxslt -lxml2 -ldl -lsqlite3 -lpthread -ldl -lm -L/usr/local/lib -licui18n -licuuc -licudata -lpthread -ldl -lm -lharfbuzz -lharfbuzz-icu -lfreetype -lfontconfig -lcairo -lpng -ljpeg -lrt -lcurl -lssl -lcrypto -lglib-2.0 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lfltk_images -lpng -lz -ljpeg -lfltk -lXcursor -lXfixes -lXext -lfontconfig -lpthread -ldl -lm -lX11 -static-libgcc -static-libstdc++ -lfltk -lwebkitfltk
Unfortunately the project ended up going forward with the Pi Zero W, which was not at the time supported by piCore, so we deployed with Raspbian/chromium instead... but there are a couple of annoyances with that setup that I think could be resolved with a piCore build so I'm having another go at it, with piCore 9.0.3.
Currently building on a Pi 3 but will eventually want to deploy the compiled executable on a Pi Zero W.
Attempting the above g++ command in 9.0.3 gives the error
testapp.cpp:1:10: fatal error: webkit.h: No such file or directory
#include "webkit.h"
^~~~~~~~~~
compilation terminated.
which suggests to me that the compiler is not able to find the file /usr/local/include/webkitfltk/webkit.h.
Figured I just needed to add the path /usr/local/include/webkitfltk, so I tried adding -L/usr/local/include/webkitfltk to the above command line without changing the result.
Any advice where to go from here? Thanks.