GrammaticalFramework / gf-core

Grammatical Framework core: compiler, shell & runtimes
https://www.grammaticalframework.org
Other
131 stars 35 forks source link

Java bindings fail to build on windows in CI #127

Closed anka-213 closed 3 years ago

anka-213 commented 3 years ago

See for example this build: https://github.com/anka-213/gf-core/runs/2996545839?check_suite_focus=true

This is the error message we get:

libtool  --tag=CC --mode=compile gcc  -g -O -c -I "/c/Program Files/Java/jdk8u275-b01/include" -I "/c/Program Files/Java/jdk8u275-b01/include/win32" -I "/mingw64/include" -D__int64=int64_t  -std=c99 -shared jpgf.c -o jpgf.lo
libtool: compile:  gcc -g -O -c -I "/c/Program Files/Java/jdk8u275-b01/include" -I "/c/Program Files/Java/jdk8u275-b01/include/win32" -I /mingw64/include -D__int64=int64_t -std=c99 jpgf.c  -DDLL_EXPORT -DPIC -o .libs/jpgf.o
jpgf.c:6:10: fatal error: jni.h: No such file or directory
    6 | #include <jni.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:33: jpgf.lo] Error 1
johnjcamilleri commented 3 years ago

Ugh, I thought I had fixed this. Investigating here.