Hi Team,
A Strange problem found when adding JavaCV dependencies:
if only add
compile 'org.bytedeco:javacv:1.5.4'
compile 'org.bytedeco:javacpp:1.5.4'
both jar will be copied to shared/lib in tomcat after deployment from Studio.
But if add below:
compile 'org.bytedeco:javacv:1.5.4'
compile 'org.bytedeco:javacpp:1.5.4'
compile 'org.bytedeco:ffmpeg-platform:4.3.1-1.5.4'
compile 'org.bytedeco:opencv-platform:4.4.0-1.5.4'
javacpp-1.5.4.jar will be copied and suddenly deleted, which will cause runtime issue working with API in javacpp.
Could you please help check if this is CUBA gradle plugin issue or something else?
firstova
(Natalia Firstova)
January 20, 2021, 11:31am
#3
Hi.
Thank you for reporting the problem. We have created a GitHub issue .
Regards,
Natalia
1 Like
subbotin
(Andrey Subbotin)
April 1, 2021, 1:10pm
#5
Hi,
CUBA uses its own dependency resolution process for shared
libs folder. OpenCV library names are differ from standard library names and CUBA tries to remove libraries.
We have fix the problem in one case, but there are still cases that remove OpenCV libraries.
Could you provide a sample project with opencv library usage or a full list of dependencies with OpenCV?
Hi Andrey,
This issue was reported in China forum, and the developer is @4714407 . He also reported in this post:
After import JavaCV package into Cuba project, we found some problems javacpp.jar will not be published to the corresponding shared/lib directory, I do not know what the problem is? The build file reads as follows: compile ‘ org.bytedeco :...
@4714407 could you share your sample project here?
4714407
(4714407)
April 6, 2021, 7:03am
#7
Adding below to build.gradle:
compile 'org.bytedeco:javacpp:1.5.5'
compile 'org.bytedeco:ffmpeg-platform:4.3.2-1.5.5'
compile 'org.bytedeco:opencv:4.5.1-1.5.5'
compile 'org.bytedeco:opencv-platform:4.5.1-1.5.5'
compile 'org.bytedeco:cuda-platform:11.2-8.1-1.5.5'
compile 'org.bytedeco:opencv-platform-gpu:4.5.1-1.5.5'
missing jar is:
opencv-4.5.1-1.5.5.jar