opencv java

Asked by Michael Mehl

Hi all,

to use the package libopencv4.5-java additional steps are needed:

* "sudo apt install libopencv-dev" because "libopencv4.5d-jni" is not installed as dependency
* the library name has an additional "d" and to load the native library this has to be added: System.loadLibrary(Core.NATIVE_LIBRARY_NAME+"d");

Is it possible to update the package:
* include dependency (libopencv4.5-java -> libopencv4.5d-jni)
* adapt name of library-name

Kind regards
Michael

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu opencv Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which Ubuntu release and which version of the opencv package are you talking about?

According to https://launchpad.net/ubuntu/jammy/amd64/libopencv4.5-java/4.5.4+dfsg-9ubuntu4 the dependency of libopencv4.5-java on libopencv4.5d-jni (>= 4.5.4+dfsg-9ubuntu4) has been correctly set for the package in Ubuntu jammy.

For the naming "4.5d": This was defined by Debian and Ubuntu is just copying that into its own package.

Revision history for this message
Michael Mehl (mmehl) said :
#2

My version is Ubuntu 22.04 LTS

Yes, you a right. The dependency is correct and works. I was confused when I tried to solve the "4.5d" problem.

About the "4.5d" issue I try to find the right place to ask the Debian community.

Can you help with this problem?

Provide an answer of your own, or ask Michael Mehl for more information if necessary.

To post a message you must log in.