https://github.com/phronmophobic/membrane-native-image
https://github.com/phronmophobic/membrane-native-image
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/phronmophobic/membrane-native-image
- Owner: phronmophobic
- License: apache-2.0
- Created: 2024-03-16T21:02:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T21:04:47.000Z (over 2 years ago)
- Last Synced: 2025-03-29T19:42:14.465Z (over 1 year ago)
- Language: Clojure
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of using membrane's java2d backend with native-image.
## Instructions
## Setup
### Prep deps
Git deps must be prepped
```sh
clojure -X:deps prep
```
### Install native image
These instructions have only been tested with liberica, but should theoretically work with graalvm on linux (but not mac osx).
Follow the instructions for installing native image:
- Liberica https://docs.bell-sw.com/liberica-nik/22.3.5b1-11.0.22b12/general/install-guide/
- graalvm https://github.com/graalvm/graalvm-ce-builds/releases
## Compile
```sh
./compile.sh
```
## Run
```sh
./hello-world
```
## Resources
https://www.praj.in/posts/2021/compiling-swing-apps-ahead-of-time/
https://github.com/praj-foss/swing-graalvm-demo
Automatically Discovering Reflection Config
https://github.com/clj-easy/graal-docs?tab=readme-ov-file#automatically-discovering-reflection-config