-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library 'OpenIMAJGrabber' was not loaded successfully #81
Comments
Hi, Thank you for the report. Can you please specify more details?
|
@sarxos Hi ,Here some more details
By the way , one of my computer with Win7 Ultimate 64 bit is fine Look forward to your reply! |
Can you please try replacing the BridJ JAR from 0.3.10-RC1 with this one? It's from previous release and should work well with Win32 as there was major changes in ARM support only. Here you can find all BridJ v0.6.2 releases along with Windows only too, so you can test it if previous one still doesn't work well. |
OK ! let met try first , thanks a lot ! this problem just make me crazy for few days! |
Ok, I'm looking forward for any news from you :) |
BTW, this Bridj version can only use for 32bit system? |
No, it's for all architectures, both 32-, 64-bit and ARM for Linux, Windows, MacOS and other. |
But,when i change this one ,show up another problem |
Should i change another webcam capture version? |
This message is just a warning from BridJ demangler. You can simply ignore it. It has been fixed in BridJ 0.6.3 which has not yet been released.
|
OK! it work on my 64bit PC, i will try the 32bit later! thanks! |
OK :) I'm not sure what is the root cause, but you can report this problem in nativelibs4java project where @ochafik is developing BridJ. Maybe he will be able to tell something more. Good luck! |
OK! |
Something came into my mind. Can you please run your program once again, but with these JVM arguments added?
I'm not sure, but I remember that BridJ is able to report some specific problems in some cases (at least on Linux). |
What a pity,can not work the same when I change the Bridj you told me,and I will try the arguments |
Hi, I recently fixed LTI-CIVIL driver. It can be used as a replacement for default driver, so if you don't need code portability you can try to use it. There is no official distro for now, but you can try those precompiled JARs:
You have to add them to your project and call this at the very beginning of your code: Webcam.setDriver(new LtiCivilDriver()); Or: Webcam.setDriver(LtiCivilDriver.class); |
More thoughts - BridJ can also fail the load because of some libraries missing (not sure about this, need to clarify), so there is a tool called Dependency Walker which allows you to check if all DLL dependencies are available on your PC. To find the OpenIMAJGrabber.dll you have to open webcam-capture-0.3.10-RC1.jar with e.g. WinRAR and go to the com/github/sarxos/webcam/ds/buildin/lib/win32 and extract OpenIMAJGrabber.dll. Then, when you have itn on your desktop, fire Dependency Walker and go to File / Open, choose extracted DLL and hit Open button. |
I encounter this problam too,this maybe the cause of the win7 basic, I don't encounter this on win7 Ultimate |
I had de same problem. Using Dependency Walker i checked 3 dll missing in dependency. Now its working very fine! I'm using Windows XP - 32bits Thanks for support! |
Hi, SOLUTIONThese files are part of Microsoft Visual C++ 2010 Redistributable Package. Below are the links to the package for both 32- and 64-bit systems (please let me know if these links stop working properly):
Please leave this issue permanently open so other users are aware of such problem possibility and the way of how it can be resolved. In the meantime I will be thinking of how to check if this dependency is either installed or not. |
Just FYI, you can ignore wer.dll - it is permanently missing on most Windows installations and Webcam Capture works very well without it. |
Issue has been fixed in OP-59. I will be merging new binaries soon. |
Just looked into this thread because I received this error too. And now I can see that you posted one hour ago that it has been fixed. Lucky me :-)... I am looking forward to the new binaries and hope that this fixes my issue too. BTW: Great work! Keep it up! |
@sarxos thanks ,nice guy. |
Both files has been modified by OpenIMAJ commit r1976
Thanks to @jonhare who fixed this problem in OpenIMAJ project :) Great work! @hodka & all Need Your HelpI was able to confirm the fix on my Windows XP 32-bit running on the Virtual Box, however I'm currently not able to test it on the "real" environment (maybe will be able to do that in few days, but still this will be only Windows XP 32-bit). Could I ask for your help here? If this error is reproducible on your PC environment I would really appreciate if you can try to verify the fix by replacing the main JAR file which is webcam-capture-v0.3.10-RC2.jar (it can be normally found in the distribution ZIP file) with webcam-capture-0.3.10-20130510.041717-11.jar (click to download) and try to run any example, e.g.: Webcam.setAutoOpenMode(true);
BufferedImage image = Webcam.getDefault().getImage();
ImageIO.write(image, "PNG", new File("test.png")); This should save test.png file in working directory and shall not cause RuntimeException when loading OpenIMAJGrabber dll. As soon as the fix in confirmed I will release Webcam Capture v0.3.10-RC3 and close this ticket. |
Hi sarxos,
|
Hi, I see this is not commented since 2015, but I have an issue that is not resolved according to your past suggestions My system is Windows 10 64 bit I would appreciate your help |
Despite I started the program with Please help |
Hi @jealfonso, Where are you setting On Windows you can try https://github.com/frankpapenmeier/webcam-capture-driver-native which works much better than default driver. |
Hi @sarxos , I am still getting same error on windows 10 system when I trying to get WebCam.getDefault(). Can you please suggest something |
FYI - it is working for me with the latest snapshot and Windows 10 with the built in driver (openimaj) |
I am now starting to see this issue on some Windows computers, but not all. I haven't been able to figure out why some computers have the issue and others don't. Some sort of Windows security setting perhaps? Seen on Windows 8.1, Windows 11.
|
I also get this issue after trying to git checkout the repo into Eclipse. I test the dev environment by exporting the unedited webcam-capture jar and then use it in an existing project (to test the dev environment before I edit the library) and I get the following printing to console Note the github jar file you can download for webcam-capture-0.3.12.jar works with my existing project just fine but upon Eclipse 09-2022 -> File -> Import -> Git -> Projects from Git (with smart import) -> Clone URI -> URI: https://github.com/sarxos/webcam-capture.git Host: github.com Repository path: /sarxos/webcam-capture.git Protocol: Https -> Branch: Master -> Select All -> Finish -> No visible errors -> then Eclipse -> Export -> Java -> JAR file -> Next -> webcam-capture_webcam-capture -> Finish and upon importing the jar into my working other project (in place of the one available at the repo) I get this error: java.io.FileNotFoundException: Library 'OpenIMAJGrabber' was not found in path '[., C:/Program Files/Java/jre1.8.0_161/bin/server, C:/Program Files/Java/jre1.8.0_161/bin, C:/Program Files/Java/jre1.8.0_161/lib/amd64, C:\ProgramData\Oracle\Java\javapath, C:\Windows\system32, C:\Windows, C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0, C:\Windows\System32\OpenSSH, C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL, C:\Program Files\Intel\Intel(R) Management Engine Components\DAL, C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0, C:\WINDOWS\System32\OpenSSH, C:\Program Files\Intel\WiFi\bin, C:\Program Files\Common Files\Intel\WirelessCommon, C:\Program Files (x86)\Schneider Electric\SoMachine Software\Tools\ConfigurationManager, C:\Program Files (x86)\QuickTime\QTSystem, C:\Program Files\Java\jdk1.8.0_161, C:\Program Files\Java\jdk1.8.0_161\bin, C:\Program Files\WorldPainter, C:\Program Files\TortoiseSVN\bin, C:\Program Files\dotnet, C:\Users\PC\AppData\Local\Microsoft\WindowsApps, C:\Users\PC\Desktop\eclipse, C:\Program Files\Java\jre1.8.0_161\bin, C:\WINDOWS\system32, C:\WINDOWS, C:/Program Files/Java/jre1.8.0_161/bin/server, C:/Program Files/Java/jre1.8.0_161/bin, C:/Program Files/Java/jre1.8.0_161/lib/amd64, C:\ProgramData\Oracle\Java\javapath, C:\Windows\system32, C:\Windows, C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0, C:\Windows\System32\OpenSSH, C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL, C:\Program Files\Intel\Intel(R) Management Engine Components\DAL, C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0, C:\WINDOWS\System32\OpenSSH, C:\Program Files\Intel\WiFi\bin, C:\Program Files\Common Files\Intel\WirelessCommon, C:\Program Files (x86)\Schneider Electric\SoMachine Software\Tools\ConfigurationManager, C:\Program Files (x86)\QuickTime\QTSystem, C:\Program Files\Java\jdk1.8.0_161, C:\Program Files\Java\jdk1.8.0_161\bin, C:\Program Files\WorldPainter, C:\Program Files\TortoiseSVN\bin, C:\Program Files\dotnet, C:\Users\PC\AppData\Local\Microsoft\WindowsApps, C:\Users\PC\Desktop\eclipse, ., C:\Program Files\Java\jre1.8.0_161\bin, C:\Program Files\Java\jre1.8.0_161\bin]' BridJ: LoadLibrary error when loading OpenIMAJGrabber : The specified module could not be found. |
@sarxos Hi !
When i use your webcam-capture, i meet a problem
Just the same problem like @hepin1989 nativelibs4java/nativelibs4java#364
And my OS is win7 ultimate
But, not all the win7 can not work ,just one of mine throw this exception, i don`t know why.
Could you help please ??
The text was updated successfully, but these errors were encountered: