View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0005008 | Spring engine | AI | public | 2015-12-11 14:38 | 2015-12-14 17:28 | ||||||||
Reporter | aeonios | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | feature | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | 100.0 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0005008: Java AI interface does not include native libs in lib/ packaged with AIs | ||||||||||||
Description | I recently tried to integrate slick into kgb and found out after manually printing the java.library.path property that it only points to lib/ within the javaAI interface dir and not to any lib/ directory packaged with the AI (which jvm.properties claims is supposed to work/be autogenerated). This makes installation unnecessarily more of a pain for end users, etc. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Checked infolog.txt for Errors | |||||||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2015-12-11 18:49 |
https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/src/main/native/JavaBridge.c#L244 does jlib/ work? |
abma (administrator) 2015-12-11 19:00 |
also: https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/data/jvm.properties#L49 (no clue if it works) |
aeonios (reporter) 2015-12-11 23:17 |
jlib/ works for .jar libraries, but not for dll/so/dylib. |
abma (administrator) 2015-12-12 03:23 Last edited: 2015-12-12 03:28 |
your description what you are doing sucks then. what do you trying to accomplish? i've never heard about "slick" and "kgb". can you provide more details please? link to source code? |
abma (administrator) 2015-12-13 22:43 |
does this work? System.setProperty(“java.library.path”, “/path/to/library”); |
aeonios (reporter) 2015-12-14 04:46 |
basically that's what I ended up doing. It actually required something more complicated than that, but I don't think it really needs fixing spring-side. |
abma (administrator) 2015-12-14 10:38 |
link to source code? others are interested in your solution, too. |
aeonios (reporter) 2015-12-14 17:28 |
Well, my original problem was that Java Graphics2D didn't have an add blend mode for drawing threat, and the custom compositor I used was so slow that it could drag spring down to 1fps just drawing stupid circles. Slick2d is a gaming library that uses openGL bindings through lwjgl and does have an add-blending circle-drawing function, but the framework it uses to set everything up would produce an infinite loop and so would not work. So in the end my 'solution' is to fork slick2d, strip out everything not directly graphics-related and port it from the ancient version of lwjgl it was built against to the newest stable. So far I haven't got it working properly. :| My library does include the code for loading the native libs though, which I could share if it was working. For reference at least: KGB: https://github.com/Anarchid/zkgbai Java 2d Graphics Library: https://github.com/mtroyka/Shine2D |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2015-12-11 14:38 | aeonios | New Issue | |
2015-12-11 18:49 | abma | Note Added: 0015371 | |
2015-12-11 18:49 | abma | Assigned To | => abma |
2015-12-11 18:49 | abma | Status | new => feedback |
2015-12-11 19:00 | abma | Note Added: 0015372 | |
2015-12-11 23:17 | aeonios | Note Added: 0015373 | |
2015-12-11 23:17 | aeonios | Status | feedback => assigned |
2015-12-12 03:23 | abma | Note Added: 0015374 | |
2015-12-12 03:23 | abma | Status | assigned => feedback |
2015-12-12 03:28 | abma | Note Edited: 0015374 | View Revisions |
2015-12-13 22:43 | abma | Note Added: 0015376 | |
2015-12-13 22:43 | abma | Severity | minor => feature |
2015-12-14 04:46 | aeonios | Note Added: 0015377 | |
2015-12-14 04:46 | aeonios | Status | feedback => assigned |
2015-12-14 10:38 | abma | Note Added: 0015378 | |
2015-12-14 10:38 | abma | Assigned To | abma => |
2015-12-14 10:38 | abma | Status | assigned => new |
2015-12-14 10:42 | abma | Summary | Java AI interface does not include lib/ packaged with AIs => Java AI interface does not include native libs in lib/ packaged with AIs |
2015-12-14 17:28 | aeonios | Note Added: 0015379 |