I want to use eclipse to do this, but unfortunately i get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
Library not loaded: lib/libopencv_core.2.4.dylib
Referenced from: /private/var/folders/LB/LB61BZtPFq4LULxHfE3xPE+++TI/-Tmp-/libjniopencv_core6616875771379943551.dylib
Reason: image not found
I have tried dumping libopencv_core.2.4.dylib into every lib folder on my system with no luck and have tried changing the following variable in configurations.
which i have set to:
and various other lib directories i have placed the .dylib file into.
I have moved onto compiling on the command line providing the classpath to the jar files via the -cp option and the class compiles, but when i try to run i get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: MotionDetector
So i pulled all the code out of motion detector except for a single print statement that would tell me the classpath "System.out.println(System.getProperty("java.classpath"))" and i still get the error which leads me to believe that the imports are causing the problem.
I compile and run with commands like:
javac -cp ../javacv.jar:../javacpp.jar MotionDetector.java
java -cp ../javacv.jar:../javacpp.jar MotionDetector
I have searched the internet for days now trying to find the correct way to include the googlecode into my classpath or on my system but haven't found any, i did follow a tutorial that installed the google plugin into eclipse so i figure it should be there, any help would be hugely appreciated.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
-Mike Kapnisakis, Warner Bros
With your subscription - you'll gain access to our exclusive IT community of thousands of IT pros. You'll also be able to connect with highly specified Experts to get personalized solutions to your troubleshooting & research questions. It’s like crowd-sourced consulting.
We can't always guarantee that the perfect solution to your specific problem will be waiting for you. If you ask your own question - our Certified Experts will team up with you to help you get the answers you need.
Our certified Experts are CTOs, CISOs, and Technical Architects who answer questions, write articles, and produce videos on Experts Exchange. 99% of them have full time tech jobs - they volunteer their time to help other people in the technology industry learn and succeed.
We can't guarantee quick solutions - Experts Exchange isn't a help desk. We're a community of IT professionals committed to sharing knowledge. Our experts volunteer their time to help other people in the technology industry learn and succeed.