Coder Social home page Coder Social logo

Linux support about opencv-processing HOT 5 CLOSED

atduskgreg avatar atduskgreg commented on June 30, 2024
Linux support

from opencv-processing.

Comments (5)

atduskgreg avatar atduskgreg commented on June 30, 2024

Yeah, my plan for linux was definitely to use the system version of the OpenCV .so. Otherwise there are too many possible configurations to support and I trust that Linux users (like you) are perfectly capable of maintaining their own OpenCV install in whatever way they see fit.

So, including the .so in the library directory is probably not the right way to go.

Is there anything I need to do in OpenCV for Processing to get it to pickup the system version? Or does it happen automatically. I'm far from a Linux expert...

from opencv-processing.

rikrd avatar rikrd commented on June 30, 2024

I haven't tried to install the OpenCV build I did, so I cannot tell you for
sure if it will work automatically, but if OpenCV installs the .so in the
standard directory I guess it will work. I will try it next week and let
you know.

By the way, you've done a great job with this library!! I'm having a great
time playing around with OpenCV and Processing.
Thanks for your hard work!!

On Wed, Jul 17, 2013 at 10:11 PM, Greg Borenstein
[email protected]:

Yeah, my plan for linux was definitely to use the system version of the
OpenCV .so. Otherwise there are too many possible configurations to support
and I trust that Linux users (like you) are perfectly capable of
maintaining their own OpenCV install in whatever way they see fit.

So, including the .so in the library directory is probably not the right
way to got.

Is there anything I need to do in OpenCV for Processing to get it to
pickup the system version? Or does it happen automatically. I'm far from a
Linux expert...


Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-21141002
.

ricard
http://twitter.com/ricardmp
http://www.ricardmarxer.com
http://www.caligraft.com

from opencv-processing.

atduskgreg avatar atduskgreg commented on June 30, 2024

Thanks! Please do try it and let me know. I'll leave this issue open until I hear back from you (or someone else) reporting success with the system OpenCV.

from opencv-processing.

rikrd avatar rikrd commented on June 30, 2024

It looks like in my Debian box the OpenCV java library gets installed in a different path:
/usr/local/share/OpenCV/java/libopencv_java245.so
than other C/C++ libraries (/usr/local/lib or /usr/lib).

Since these paths are specific to OpenCV, Processing doesn't add them in the java.library.path system property.

Would it make sense to add this path programatically, from inside opencv-processing, before loading the lib (System.loadLibrary())?

I have tried it and it seems to work.

But that is not the end of the story, it looks like libopencv_java245.so links to cv2.so which gets installed by default in /usr/local/lib/python2.7/dist-packages.

In order to be able to use OpenCV in my system, I have to add this path to LD_LIBRARY_PATH. To my knowledge there is no way to do this programatically (and it is not recommended neither). But I would consider this a bug of the OpenCV installation scripts rather than a problem of OpenCV for Processing.

from opencv-processing.

atduskgreg avatar atduskgreg commented on June 30, 2024

This should be fixed as of 0909e88 thanks to Arturo.

from opencv-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.