bytedeco / sample-projects

Sample project files for JavaCPP, JavaCPP Presets, and JavaCV
215 stars 172 forks source link

how to add quarkus to this project? #61

Open jiangyubao opened 2 years ago

jiangyubao commented 2 years ago

hi, I can compile this project on ubuntu, and the native run ok.

but When i add dependency to quarkus project, and it can't be compiled.

will you show me an example?

saudet commented 2 years ago

What's the error message that you are getting? In any case, it works fine with GraalVM Native Image: https://github.com/bytedeco/sample-projects/tree/master/opencv-stitching-native

jiangyubao commented 2 years ago

The error message is : https://github.com/jiangyubao/opencv_server/blob/master/error.log

and you can clone my project to test:

https://github.com/jiangyubao/opencv_server

I checkout your project https://github.com/bytedeco/sample-projects/tree/master/opencv-stitching-native, and yes, it works fine. But will you please add quarkus to opencv-stitching-native to test?

saudet commented 2 years ago

If you cannot have static blocks executed at runtime, you can disable that thread by setting the "org.bytedeco.javacpp.nopointergc" system property to "true".