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
After you've configured everything, run `gradlew :imgui-binding:generateLibs -Denvs=${envShortcut} -Dlocal`.<br>
265
-
`envShortcut` could be `win32`, `win64`, `linux32`, `linux64` or `mac64`.<br>
259
+
## How to Build Native Libraries
260
+
Using Windows:
261
+
- Make sure you have installed and **available in PATH**:
262
+
* Java 8 or higher
263
+
* Ant
264
+
* Mingw-w64 (recommended way: use [MSYS2](https://www.msys2.org/) and install [mingw-w64-x86_64-toolchain](https://packages.msys2.org/group/mingw-w64-x86_64-toolchain) group)
265
+
- Build with command: `gradlew :imgui-binding:generateLibs -Denvs=win64 -Dlocal`
266
+
- Then run example with built library: `gradlew :imgui-lwjgl3:startExample -DlibPath=../imgui-binding/build/libsNative/windows64`
267
+
268
+
Using Linux:
269
+
- Install dependencies: `openjdk8`, `mingw-w64-gcc`, `ant`. Packages name could vary from system to system.
270
+
- Build with command: `./gradlew :imgui-binding:generateLibs -Denvs=linux64 -Dlocal`
271
+
- Then run example with built library: `./gradlew :imgui-lwjgl3:startExample -DlibPath=../imgui-binding/build/libsNative/linux64`
272
+
273
+
Using MacOS:
274
+
- Check dependencies from "Using Linux" paragraph and make sure you have them installed.
275
+
- Build with command: `./gradlew :imgui-binding:generateLibs -Denvs=mac64 -Dlocal`
276
+
- Then run example with built library: `./gradlew :imgui-lwjgl3:startExample -DlibPath=../imgui-binding/build/libsNative/macosx64`
277
+
278
+
In `envs` parameter next values could be used `win32`, `win64`, `linux32`, `linux64` or `mac64`.<br>
266
279
`-Dlocal` is optional and means that natives will be built under the `./imgui-binding/build/` folder. Otherwise `/tmp/imgui` folder will be used.
280
+
On Windows OS always use local build.
267
281
268
282
## Credits
269
283
Binding partly based on the work of [xpenatan](https://github.com/xpenatan) and his version [jDear-imgui](https://github.com/xpenatan/jDear-imgui).
0 commit comments