Error loading ALVARWrapper.dll

Aug 4, 2010 at 4:39 PM
Edited Aug 4, 2010 at 4:42 PM
I received the following error message when trying to compile GoblinXNA v3.4 with ALVAR v1.3.0 and OpenCV v1.0. I ran the ALVARWrapper 1.3.0 project and successfully built the dll. I placed the dll in the corresponding output directory (as well as all dlls from the alvar libraries). I also placed all dlls from OpenCV v1.0 in the corresponding output directory. However, I am still receiving the following message:

System.DllNotFoundException was unhandled
Message="Unable to load DLL 'ALVARWrapper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="GoblinXNA"
TypeName=""
StackTrace:
at GoblinXNA.Device.Vision.ALVARDllBridge.alvar_init_camera(String calibFile, Int32 width, Int32 height)
at GoblinXNA.Device.Vision.Marker.ALVARMarkerTracker.InitTracker(Object[] configs) in C:\user\GoblinXNAv3.4\GoblinXNAv3.4\src\Device\Vision\Marker\ALVARMarkerTracker.cs:line 360
at Tutorial8___Optical_Marker_Tracking.Tutorial8.SetupMarkerTracking() in C:\user\GoblinXNAv3.4\GoblinXNAv3.4\GoblinXNAv3.4\tutorials\Tutorial8 - Optical Marker Tracking\Tutorial8.cs:line 193
at Tutorial8___Optical_Marker_Tracking.Tutorial8.Initialize() in C:\user\GoblinXNAv3.4\GoblinXNAv3.4\GoblinXNAv3.4\tutorials\Tutorial8 - Optical Marker Tracking\Tutorial8.cs:line 110
at Microsoft.Xna.Framework.Game.Run()
at Tutorial8___Optical_Marker_Tracking.Program.Main(String[] args) in C:\user\GoblinXNAv3.4\GoblinXNAv3.4\GoblinXNAv3.4\tutorials\Tutorial8 - Optical Marker Tracking\Program.cs:line 14
InnerException:
So, I now have the following dlls in my output directory and the goblinXNA output directory:
- alvar130.dll
- alvar130d.dll
- alvarplatform130.dll
- alvarplatform130d.dll
- ALVARWrapper.dll
- cv100.dll
- cvaux100.dll
- cvcam100.dll
- cxcore100.dll
- cxts001.dll
- DShowNET.dll
- GoblinXNA.dll
- highgui100.dll
- libguide40.dll
- Lidgren.Network.dll
- ml100.dll
- msvcm90.dll
- msvcp90.dll
- msvcr90.dll
- Newton.dll
- NewtonWrapper.dll
- Nuclex.Fonts.Content.TrueTypeImporter.dll
- Nuclex.Fonts.dll
- SkinnedModelPipeline.dll



Am I missing something? Why wouldn't it be able to load the ALVARWrapper.dll?
Coordinator
Aug 12, 2010 at 3:15 PM
That's all DLLs you need. However, it seems like depending on the machines, you may also need additional DLLs, and you can find out which dlls are missing by using the dependency walker: depends.exe (please google it). Also, make sure you have restarted your machine after installing OpenCV 1.0. Ohan
Aug 13, 2010 at 1:01 AM
After using the dependency walker, I was able to fix the problems and get everything running just fine.  Thank you very much for your time and help!

On Thu, Aug 12, 2010 at 8:15 AM, ohanoda <notifications@codeplex.com> wrote:

From: ohanoda

That's all DLLs you need. However, it seems like depending on the machines, you may also need additional DLLs, and you can find out which dlls are missing by using the dependency walker: depends.exe (please google it). Also, make sure you have restarted your machine after installing OpenCV 1.0. Ohan

Read the full discussion online.

To add a post to this discussion, reply to this email (goblinxna@discussions.codeplex.com)

To start a new discussion for this project, email goblinxna@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Oct 31, 2010 at 4:34 PM

@ManInTheSuit: Could you explain what you did to solve the problem, I'm having the same trouble.

Thanks!

Nov 10, 2010 at 8:22 AM

@fanfanprovok: you should run dependency walker with "ALVARWrapper.dll" (doesn't matter the version, 1.3 or 1.4) and see wich dll files are failing. Put this dll in bin directory of your project (ex: project/bin/release or project/bin/debug) and recompile it. Note that these missing dll must be in the same directory. alvarwrapper.dll