JetBrains / skija

Java bindings for Skia
Apache License 2.0
2.63k stars 128 forks source link

Build skija have an error #92

Closed HaroldLoui closed 3 years ago

HaroldLoui commented 3 years ago

I want to install skija locally in .m2 follow Building Skija from scratch, but it show me "jni.h no such file or directory". image

Then display this error while I compile skija/native in clion: image

I'm not goot at c++ and cmake, I don't know how to resolve this problem.

my env:

archlinux: 5.10.11-arch1-1
git: 2.30.0
cmake: 3.19.4
ninja: 1.10.2
jdk: openjdk11
maven: 3.6.3
tonsky commented 3 years ago

You need JAVA_HOME environment variable set. Sorry the error is confusing, I’ll clarify it in the README

HaroldLoui commented 3 years ago

Sorry can not reply you Immediately because I caught a cold yesterday. And I prepare to use the remote maven repository. Now I have a few problem:

  1. I clone the latest skija repository, there is need to correct ./native/script/build.sh and ./native/script/install.sh to ./native/script/build.clj and ./native/script/install.clj in ./script/install.sh. (now time is 2021-02-05 09:37:15 GMT+0800)
  2. /usr/bin/env: "bb": no such file or directory. Sorry I never use this script, do I need install any software or package? It looks like you need to modify the README.md.
HaroldLoui commented 3 years ago
  1. Could you add skija repository for the latest version to Maven Repository, now all the versions in there are out of date.
tonsky commented 3 years ago

Sorry, the script is https://github.com/babashka/babashka/releases, I’ll update the README soon