I’m trying to use a FX file from my old XNA project. The 2mgfx tool is throwing the following error: “Unable to load DLL ‘libmojoshader_64.dll’: the specified module could not be found.”
I’m running Windows 7 64-bit.
Here are my command line arguments:
2mgfx colorswap.fx colorswap.mgfx /profile:OpenGL
And here are the contents of the colorswap.fx file:
Any ideas on this? I’ve tried several different approaches to getting an fx file working in MonoGame, but I keep hitting a dead-end. If I use the existing xnb files from XNA, I get a runtime error of “This does not appear to be a MonoGame MGFX file!” and if I add the fx file using the MonoGame Pipeline tool, I get a build error of “Unable to load DLL ‘libmojoshader_64.dll’: the specified module could not be found.”
I’m running Windows 7 64-bit. Any advice or workarounds would be much appreciated.
procd - I’ve installed MonoGame 3.4 for Visual Studio. I’m able to build and run a MonoGame Windows project from Visual Studio, but 2mgfx is not able to see libmojoshader_64.dll, even though it’s in the same folder as 2mgfx.exe.
*NOTE: I had a similar issue with the FreeImage DLL and installing this was the fix:
Sorry but can’t really help you any further. Seems VS 2015 is a bit broken Cannot build MonoGame.Framework.Windows and may be related to your problem. All I can suggest is using something like ILSpy and trying to see where it thinks the dll’s are.