I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here. My application req
I had the same problem /Failed to load 'Assets/Plugins/QCARWrapper.dll'/ with vuforia plugin and latest version of Unity ( currently 5.1.2f 64bits ) and also couldn't get my laptop camera to work.
Everything is fixed with the 32 bit release of Unity, even if my os is 64 bits (Windows 7).
Vuforia 5.0 supports the 32bit version of the Unity Editor on Windows, and the 64bit version on Mac.
So, There are two possible solutions:
OR
Create a new folder "x86" inside
Assets>>Plugins
inside your unity project structure Then move the following files from "Plugins" to newely created "x86" folder.
After that check log message, If you see the log like:
Setting platform to 'Editor' for plugin: Assets/Plugins/x86/VuforiaWrapper.dll
UnityEngine.Debug:Log(Object)
Vuforia.EditorClasses.ExtensionImport:UpdatePluginSettings() (at Assets/Vuforia/Editor/Scripts/ExtensionImport.cs:43)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Then , Congrats !! You are ready to Go!
Go to https://unity3d.com/get-unity/update Under there, you will see ADDITIONAL DOWNLOADS Under that you will see FOR WINDOWS. Click it and choose Unity Editor (32-bit).
EDIT: I see lots of dowvotes. This was the ONLY solution when this question was asked. Unity 5 64bit just got released when this question WAS asked and this was the ONLY solution back then. This answer was changed to the current answer that was provided 5 months later when Vuforia released 64bit version of their plugin.
If you are using Unity 5.1, make sure to set the right Graphics API settings in the Player Settings for Android and iOS:
disable the "Automatic Graphics API" checkbox in the Graphics APIs list, make sure that only OpenGL ES 2.0 is included: Android: remove OpenGL ES 3.0 iOS: remove OpenGL ES 3.0 and METAL
Important : 1. In your Unity project:
Select the QCARWrapper.bundle in the Unity Project view (located under Assets > Plugins ), so that its settings are shown in the Unity Inspector Change the settings of QCARWrapper.bundle in the Unity inspector from "Any Platform" to "Standalone + Editor".
Rebuild
OR:
Go to Build Phases > Copy Bundle Resources Remove the QCARWrapper.bundle file from the list Rebuild
My unity3d version is 5 and 64bit ,Os is Windows7 64 bit.
my Problems solved .
Edit :
Unity editor couldn't show laptop camera ,But Rebuild Project , camera work . for example rebuild Android platform , and install .apk on device => application Ok .
Go to Name_Vuforia_Unity_Project\Assets\Plugins
and you will find QCARWrapper.dll
.
Delete it and try again (could be necessary to restart unity).
Unity 64 bit
To use Vuforia with Unity 64 bit, just move the QCARWrapper
DLLs from /Plugins
to /Plugins/x86
. These are the DLLs:
This should solve the problem!