Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path independence #68

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions samples/libzstd/README
@@ -1,11 +1,13 @@
* Install libffmpeg on Mac using homebrew
* Install zstd on

brew install zstd
Mac: using homebrew "brew install zstd"
Linux: use the relevant package manager (e.g. "sudo apt install libzstd-dev"). The -dev variant includes the necessary headers.

* run ./compile.sh or ./compilesource.sh to jextract zstd headers

* run

sh ./run.sh


NOTE: For Linux, the path $(brew --prefix zstd) needs to be replaced with
relevant code (e.g. $(pkg-config --variable=prefix libzstd) )
4 changes: 2 additions & 2 deletions samples/libzstd/compile.sh
@@ -1,6 +1,6 @@
jextract -t libzstd \
-I /usr/local/Cellar/zstd/1.5.2/include \
-I "$(brew --prefix zstd)/include" \
-l zstd \
--header-class-name Libzstd \
/usr/local/Cellar/zstd/1.5.2/include/zstd.h
"$(brew --prefix zstd)/include/zstd.h"

4 changes: 2 additions & 2 deletions samples/libzstd/compilesource.sh
@@ -1,7 +1,7 @@
jextract --source -t libzstd \
-I /usr/local/Cellar/zstd/1.5.2/include \
-I "$(brew --prefix zstd)/include" \
-l zstd \
--header-class-name Libzstd \
/usr/local/Cellar/zstd/1.5.2/include/zstd.h
"$(brew --prefix zstd)/include/zstd.h"

javac --enable-preview --source=20 libzstd/*.java
2 changes: 1 addition & 1 deletion samples/libzstd/run.sh
@@ -1,3 +1,3 @@
java --enable-native-access=ALL-UNNAMED \
--enable-preview --source=20 \
-Djava.library.path=/usr/local/Cellar/zstd/1.5.2/lib LibzstdMain.java
-Djava.library.path="$(brew --prefix zstd)/lib" LibzstdMain.java