Ask Your Question
-2

PLEASE HELP with opencv portable build

asked 2016-07-28 08:10:07 -0600

valium123 gravatar image

updated 2016-07-29 03:41:22 -0600

berak gravatar image

Let's say there is a target machine that is running 64 bit Linux. I have to build an opencv java project which will eventually turn into a jar file and that should run on the target machine even if it does not have opencv installed. Please help me with this. It's kind of urgent.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-29 01:48:16 -0600

berak gravatar image

updated 2016-07-29 01:51:03 -0600

opencv is mainly a c++ library (with java bindings). the main functionality will be in opencv_java.so, the jar file only contains wrappers for the former.

see here for build instructions, it's important to build static opencv libs, so you only have to redistribute

  • opencv_java.so
  • opencv-java.jar
  • your own code

    also please bear in mind, that the so will only run on the os/architecture it was build for (non-portable).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-28 08:10:07 -0600

Seen: 988 times

Last updated: Jul 29 '16