You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simplicity, example of dependencies for Gradle / Maven only shows how to add natives for Windows. Feel free to add other platforms.
165
172
@@ -272,13 +279,18 @@ dependencies {
272
279
<details>
273
280
<summary><b>Raw Jars</b></summary>
274
281
275
-
1. Go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest);
276
-
2. Download `imgui-binding-${version}.jar`, `imgui-lwjgl3-${version}.jar` and binary libraries for your OS;
277
-
- imgui-java64.dll - Windows
278
-
- libimgui-java64.so - Linux
279
-
- libimgui-java64.dylib - macOS
280
-
3. Add jars to your classpath;
281
-
4. Provide a VM option: `imgui.library.path` or `java.library.path`. It should point to the folder where you've placed downloaded native libraries.
282
+
1. Go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest);
283
+
2. Download `java-libraries.zip` and `native-libraries.zip` (`native-libraries-with-freetype.zip` for FreeType font rendering);
284
+
3. Get `imgui-binding-${version}.jar` and `imgui-lwjgl3-${version}.jar` from `java-libraries`, and binary libraries for required OS from `native-libraries` archive;
285
+
4. Add jars to your classpath;
286
+
5. Provide a VM option with location of files from the `native-libraries` (or `native-libraries-with-freetype`) archive.
287
+
288
+
VM option example:
289
+
-**-Dimgui.library.path=_${path}_**
290
+
-**-Djava.library.path=_${path}_**
291
+
292
+
Both `imgui.library.path` and `java.library.path` are equal with the difference, that `java.library.path` is standard JVM option to provide native libraries.
293
+
282
294
</details>
283
295
284
296
#### Java Module System
@@ -335,7 +347,7 @@ Don't forget to make clear for your Linux/Mac users, that they will need to inst
Use the same native libraries as you would, but with `-ft` suffix in the end.
341
353
@@ -375,7 +387,7 @@ Use the same native libraries as you would, but with `-ft` suffix in the end.
375
387
| imgui-java-natives-linux-ft | Linux |
376
388
| imgui-java-natives-macos-ft | macOS |
377
389
378
-
If you're using raw dll/so files, go to the `bin/freetype` folder and take them from there.
390
+
If you're using raw dll/so files, go to the [release page](https://github.com/SpaiR/imgui-java/releases/latest)and use libraries from the `native-libraries-with-freetype.zip` archive.
0 commit comments