humbleui

ru 2024-03-12T16:43:19.794439Z

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

Niki 2024-03-12T16:44:05.435069Z

jetbrains?

Niki 2024-03-12T16:45:24.441309Z

⚠️ This repository is no longer actively maintained. ⚠️ Active Skija project is located at https://github.com/HumbleUI/Skija/

ru 2024-03-12T16:49:58.999609Z

Same result:

ru 2024-03-12T16:50:05.379769Z

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

Niki 2024-03-12T16:51:24.599069Z

try -M:linux-x64

Niki 2024-03-12T16:52:18.149399Z

It’s better to use ./script/run.py

Niki 2024-03-12T16:52:58.101749Z

It takes care of all these details

ru 2024-03-12T16:54:15.323439Z

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.

Niki 2024-03-12T16:55:20.462539Z

You probably need to compile Skija before, did you?

Niki 2024-03-12T16:55:53.724179Z

skija/script/build.py

Niki 2024-03-12T16:56:36.951449Z

Most of the examples should do that by default but clojure one seems not to for some reason

ru 2024-03-12T17:01:14.705369Z

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.

Niki 2024-03-12T17:03:37.357559Z

What are you trying to do?

Danil Shingarev 2024-03-12T17:11:41.681319Z

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/.

👍 1
Niki 2024-03-12T17:13:00.278999Z

Yeah Skija build is not very user-friendly

Danil Shingarev 2024-03-12T17:36:28.649499Z

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.

Niki 2024-03-12T18:14:26.119639Z

Interesting, because build definitely has main. Also, it’s a different example

Niki 2024-03-12T18:15:27.673329Z

Seems to work for me

Danil Shingarev 2024-03-12T18:22:33.580899Z

I just realized that I have https://build.pypa.io/en/stable/ installed in pip 🤦‍♂️

Danil Shingarev 2024-03-12T18:23:33.749229Z

thanks for helping!

Niki 2024-03-12T18:24:18.359349Z

wow

Niki 2024-03-12T18:24:28.109179Z

did not expected that

Danil Shingarev 2024-03-12T18:26:21.866049Z

I think it’s may be time for pip’ site-packages cleanup for default interpreter.