ru@ru-sitrol:~/java/skija/examples/clojure$ clj -M:linux -m lwjgl.main Syntax error (ClassNotFoundException) compiling at (lwjgl/main.clj:1:1). org.jetbrains.skija.BackendRenderTarget Full report at: /tmp/clojure-2610590519230201425.edn
jetbrains?
https://github.com/JetBrains/skija/tree/master?tab=readme-ov-file
⚠️ This repository is no longer actively maintained. ⚠️ Active Skija project is located at https://github.com/HumbleUI/Skija/
Same result:
ru@ru-sitrol:~/java/Skija/examples/clojure$ clj -M:linux -m lwjgl.main WARNING: Specified aliases are undeclared and are not being used: [:linux] Downloading: org/lwjgl/lwjgl-glfw/3.3.1/lwjgl-glfw-3.3.1.pom from central Downloading: org/lwjgl/lwjgl/3.3.1/lwjgl-3.3.1.pom from central Downloading: org/lwjgl/lwjgl-opengl/3.3.1/lwjgl-opengl-3.3.1.pom from central Downloading: org/lwjgl/lwjgl-opengl/3.3.1/lwjgl-opengl-3.3.1.jar from central Downloading: org/lwjgl/lwjgl-glfw/3.3.1/lwjgl-glfw-3.3.1.jar from central Downloading: org/lwjgl/lwjgl/3.3.1/lwjgl-3.3.1.jar from central Downloading: io/github/humbleui/types/0.1.2/types-0.1.2.jar from central WARNING: Use of :paths external to the project has been deprecated, please remove: ../../shared/target/classes-java9 WARNING: Use of :paths external to the project has been deprecated, please remove: ../../shared/target/classes Execution error (ClassNotFoundException) at http://java.net.URLClassLoader/findClass (URLClassLoader.java:445). io.github.humbleui.skija.BackendRenderTarget Full report at: /tmp/clojure-18331836056746075297.edn
try -M:linux-x64
It’s better to use ./script/run.py
It takes care of all these details
ru@ru-sitrol:~/java/Skija/examples/clojure$ ./script/run.py Downloading: org/lwjgl/lwjgl-opengl/3.3.1/lwjgl-opengl-3.3.1-natives-linux.jar from central Downloading: org/lwjgl/lwjgl/3.3.1/lwjgl-3.3.1-natives-linux.jar from central Downloading: org/lwjgl/lwjgl-glfw/3.3.1/lwjgl-glfw-3.3.1-natives-linux.jar from central WARNING: Use of :paths external to the project has been deprecated, please remove: ../../shared/target/classes-java9 WARNING: Use of :paths external to the project has been deprecated, please remove: ../../shared/target/classes Execution error (ClassNotFoundException) at http://java.net.URLClassLoader/findClass (URLClassLoader.java:445). io.github.humbleui.skija.BackendRenderTarget Full report at: /tmp/clojure-8440179966656180001.edn Traceback (most recent call last): File "/home/ru/java/Skija/examples/clojure/./script/run.py", line 16, in <module> sys.exit(main()) File "/home/ru/java/Skija/examples/clojure/./script/run.py", line 8, in main subprocess.check_call([ File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['clj', '-J--module-path=../../platform/target/linux-x64/classes', '-M:linux-x64', '-m', 'lwjgl.main']' returned non-zero exit status 1.
You probably need to compile Skija before, did you?
skija/script/build.py
Most of the examples should do that by default but clojure one seems not to for some reason
ru@ru-sitrol:~/java/Skija/examples/clojure$ cd ../.. ru@ru-sitrol:~/java/Skija$ script/build.py Downloading https://github.com/HumbleUI/SkiaBuild/releases/download/m116-d2c211228d/Skia-m116-d2c211228d-linux-Release-x64.zip Extracting Skia-m116-d2c211228d-linux-Release-x64.zip Using Skia from /home/ru/java/Skija/platform/Skia-m116-d2c211228d-linux-Release-x64 CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/ru/java/Skija/platform/target/linux-x64/native/CMakeFiles/CMakeOutput.log". Traceback (most recent call last): File "/home/ru/java/Skija/script/build.py", line 105, in <module> sys.exit(main()) File "/home/ru/java/Skija/script/build.py", line 52, in main subprocess.check_call(cmake_args, cwd=os.path.abspath(native_build_dir)) File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '-G', 'Ninja', '-DCMAKE_BUILD_TYPE=Release', '-DSKIA_DIR=/home/ru/java/Skija/platform/Skia-m116-d2c211228d-linux-Release-x64', '-DSKIA_ARCH=x64', '/home/ru/java/Skija/platform']' returned non-zero exit status 1.
https://github.com/HumbleUI/Skija/blob/master/README.md#building-skija-from-scratch
What are you trying to do?
don’t mean to hijack this thread but was trying to build skija this morning in order to look at examples gallery and having issues with setting proper path/env, it won’t find jni.h. @tonsky that build.yml link was very helpful, I was adding entire JAVA_HOME to PATH instead of /bin/.
Yeah Skija build is not very user-friendly
another side note, I just tried to run lwjgl demo and keep getting weird error:
python script/run.py
Traceback (most recent call last):
File "/Users/danilshingarev/code/clojure/Skija/examples/lwjgl/script/run.py", line 60, in <module>
sys.exit(main())
^^^^^^
File "/Users/danilshingarev/code/clojure/Skija/examples/lwjgl/script/run.py", line 33, in main
build.main()
^^^^^^^^^^
AttributeError: module 'build' has no attribute 'main'
though module seems to be loading fine.
I was able to run it by commenting the call to build.main(), since I’ve built skija already before running the example.Interesting, because build definitely has main. Also, it’s a different example
Seems to work for me
I just realized that I have https://build.pypa.io/en/stable/ installed in pip 🤦♂️
thanks for helping!
wow
did not expected that
I think it’s may be time for pip’ site-packages cleanup for default interpreter.