- Home /
metaiosdk.dll not found exception in Windows + Unity + Metaio SDK 6.0.1
Hello,
I'm developing an augmented reality application using Unity3D and an augmented realitySDK named MetaioSDK 6.0.1, I can press play in unity editor and get the application running with success, there's no problem everything works. However, after building the application for Windows, when I run the EXE file I get an error saying the DLL is not found.. The same problem was reported here in metaio helpdesk, which later lead to a thread in a Unity Forum... In that case the problem was a DLL that was a dependency for metaiosdk.dll (MFC100U.dll which was later added to the SDK to prevent that error)..
I've tried running dependency walker and replaced the missing DLLs it said were missing, I got to the point were the only error and warning it gives is this one:
It says: Error: Modules with different CPU types were found
I've also tried installing several Visual Studio SP1 C++ Redistributable packages on this PC, and tried moving the EXE to other windows PC which had all Visual Studio 2005/2008/2010/2012/2013 SP1 C++ Redistributable packages installed, both 32 and 64 bits.
Any suggestions on what may be the problem? Any help will be much appreciated.. I've started a thread also in metaio helpdesk but had no luck..
Thank you for reading,
DavidGN.
Answer by DavidGN · Feb 19, 2015 at 07:10 PM
As it turns out, the error was being caused by the fact that the metaiosdk gameobject was being created and added to the scene in runtime.. updated the code so it would fetch an existing gameobject and now it works.