Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] Problem moving project with referenced native lib + wrapper

Started by Hellfish Nov 21, 2009 at 3:43 AM 2 replies 1.2k views
Original Post
Hellfish
Hellfish
So here's the situation: I had a project on my previous computer which used a native library (libtcod, if it matters) and it's .net wrapper. I put it on a googlecode SVN and then,of course, the computer died a horrible fiery death. Now I've got a new computer assembled and tried checking out the project, but no matter what I do, I get a DllNotFoundException when I try to run it.The setup before was to include the native lib and the wrapper in the root of the project and reference the wrapper. I've tried moving them around in the project, I've tried removing and re-adding the reference, changing build actions and Copy settings (they are set to "Content" and "Copy Always" as I think they should be, for both.). I'm running out of ideas. Anybody got one? Preferably something that would allow it to work even when moved between computers via SVN as I develop on several.
And now for something completely related.
Fiddler
Fiddler
DllNotFoundException is also raised if the unmanaged dll is missing some dependency. Check that all its dependencies exist and are for the correct CPU architecture (x86 or amd64).
[OpenTK: C# OpenGL 4.4, OpenGL ES 3.0 and OpenAL 1.1. Now with Linux/KMS support!]
ernow
ernow
Perhaps use fuslogvw.exe to see what managed assemblies are being loaded.
Hellfish
Hellfish
Aha! Yeah, it was a dependency issue. SDL, to be specific. I didn't have to include the specific DLL on the other machine because SDL was globally installed, I guess?

Dependency Walker still reports problems with MSJAVA.dll and MPR.dll, but it works. I'll have to google fuslogvw.exe, havn't heard of that before.

Many thanks,gentlemen!
And now for something completely related.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.