I think this is some weird path problems when depending on your library using Go modules
See:
prologic@Jamess-iMac
Tue Dec 24 09:16:35
~/Projects/ubrowser
0
$ ls SDK/include/AppCore/
App.h AppCore.h CAPI.h Defines.h JSHelpers.h Monitor.h Overlay.h Window.h
prologic@Jamess-iMac
Tue Dec 24 09:16:37
~/Projects/ubrowser
0
$ go build -v .
github.com/raff/ultralight-go
# github.com/raff/ultralight-go
../../go/pkg/mod/github.com/raff/ultralight-go@v0.0.0-20190620222822-d2efebcfd598/ultralight.go:6:10: fatal error: 'AppCore/CAPI.h' file not found
#include <AppCore/CAPI.h>
^~~~~~~~~~~~~~~~
1 error generated.
prologic@Jamess-iMac
Tue Dec 24 09:16:39
~/Projects/ubrowser
2
$ ls -l
total 28
-rw-r--r-- 1 prologic staff 109 Dec 23 18:27 Makefile
drwxr-xr-x 5 prologic staff 160 Dec 24 08:43 SDK
drwxr-xr-x 11 prologic staff 352 Dec 23 18:27 assets
-rw-r--r-- 1 prologic staff 119 Dec 23 18:27 go.mod
-rw-r--r-- 1 prologic staff 233 Dec 23 18:27 go.sum
-rw-r--r-- 1 prologic staff 240 Dec 23 18:27 main.go
-rw-r--r-- 1 prologic staff 1475 Dec 23 18:27 tab.go
-rw-r--r-- 1 prologic staff 6412 Dec 23 18:27 ui.go
The hard-coded -I ./SDK/... in ultralight.go can't locate the include files.
To be honest I'm not really sure what to do about this besides forking/hacking your library for my own uses.
I think this is some weird path problems when depending on your library using Go modules
See:
The hard-coded
-I ./SDK/...inultralight.gocan't locate the include files.To be honest I'm not really sure what to do about this besides forking/hacking your library for my own uses.