Ask Your Question
0

Unable to load library cxcore

asked 2013-04-03 04:19:19 -0600

Hey i got the excepiton

Exception in thread “Thread-4″ java.lang.UnsatisfiedLinkError: Unable to load library ‘cxcore’: The specified module I tried to correct it by : properties my project,java build path,libraries and add native library location *.dll and I have set the environment variable for OpenCV but i can’t fix it help me

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-04-03 04:32:47 -0600

Since you set the libraries to the correct dll's and your path variable there is only one thing that could still be wrong.

Are you using the correct binaries? x86 for 32 bit systems and x64 for 64 bit systems. Also check if your target system for your compilation options is set correctly?

For example, if you need to compile for x64 bit systems on windows 7 and visual studio 2010, you need to tell visual studio to actually compile for a x64 system, since it is standard to compile for a x32 bit system.

This image shows where in your properties to adapt this:

image description

edit flag offensive delete link more

Comments

I checked, I use x64 for 64 bit systems! but it not work :|

alonggives gravatar imagealonggives ( 2013-04-03 07:08:06 -0600 )edit

I am sorry, but the system explicitly states that there is a problem with your setup. Libraries that are not found are in fact errors due to faulty linker settings. One more shot at this, did you use the dlls with d at the end for debug compiling and without for release compiling?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-03 07:20:14 -0600 )edit

thank you!i will try setup again

alonggives gravatar imagealonggives ( 2013-04-03 11:30:28 -0600 )edit

:D,i install jdk 32bit for system 64bit,it ok

alonggives gravatar imagealonggives ( 2013-04-03 14:06:55 -0600 )edit

Question Tools

Stats

Asked: 2013-04-03 04:19:19 -0600

Seen: 713 times

Last updated: Apr 03 '13