Closed alawasoft closed 7 months ago
It just looks like the size of the image is limited to 2 GB
That totally make sense. it seems like I should separate out the libs from the executable. how would a typical native-image project ideal ways of loading and excluding cuda-redist (since cuda redist is quite big), a short brief advice would really helps! thanks saudet!
Instead of including the JAR in the image, you could extract it somewhere on the system and set the system PATH to where you extracted it
I'm trying to build a native image using the GraalVM native-image tool for the flandmark-demo example from the javacv-examples repository. However, I'm encountering a NegativeArraySizeException during the native image generation process. Here's the relevant part of the modified build.sbt file from flandmark demo repo:
Thrown error
Here are some additional details:
Operating System: ubuntu-amd64 GraalVM version: 22.0.1 (Latest) javacpp-presets version: 1.5.8 flandmark-demo example: repo link
this only occur when cuda-redist is included in the build, opencv and the other libs works just fine,
Tested with javacpp 1.5.11-SNAPSHOT , produces the same error. Tested in windows, produces the same error.
Please let me know if you need any further information to investigate this issue. Thank you for your help!