Unity3d - Failed to load "Assets / Plugins / QCARWrapper.dll"

I want to use C ++ dll for a single android application. To use the native DLL on an Android device, I find out that I have to use Unity 5. I download unit5 from here . My application requires wuforia. Therefore, I download the vuforia package from here .

Unity 5 - 64 bit.

In the unity editor, I MainCamera and add ARCamera . An error message appears on Unity Console. The message below:

 Failed to load 'Assets/Plugins/QCARWrapper.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386. Vuforia.WebCamAbstractBehaviour:CheckNativePluginSupport() 

There is a solution to this problem in the vuforia forum. But I do not find unity editor(32 bit)

+5
source share
6 answers

To use Vuforia with Unity 64 bit, just move the QCARWrapper DLL from /Plugins to /Plugins/x86 . These are the DLLs:

  • QCARWrapper.exp
  • QCARWrapper.lib
  • QCARWrapper.dll
  • QCARWrapper.dll.signature

That should solve the problem!

+8
source

Go to https://unity3d.com/get-unity/update In it you will see ADDITIONAL DOWNLOADS . Under this you will see FOR WINDOWS . Click it and select Unity Editor (32-bit) .

EDIT : I see a lot of dowvotes . This was the solution ONLY when this question was asked. Unity 5 64bit just received when this question was asked by WAS , and then it was ONLY . This answer was changed to the current answer, which was provided 5 months later when Vuforia released the 64bit version of its plugin.

+2
source

Vuforia 5.0 supports the 32bit version of Unity Editor on Windows , and the 64-bit version on Mac .

So, there are two possible solutions:

  • you just need to install and use the Unity 5 32-bit editor on Windows.

OR

  1. Create a new folder "x86" inside

    Assets → Plugins

    inside the structure of your unity Then move the following files from the "Plugins" to the new folder "x86" .

    • QCARWrapper.lib
    • QCARWrapper.dll
    • QCARWrapper.dll.signature
    • QCARWrapper.exp

After that, check the log message if you see a log like this:

 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 Congratulations !! You are ready to go!

+2
source

I had the same problem / Failed to load "Assets / Plugins / QCARWrapper.dll" / with the vuforia plugin and the latest version of Unity (currently 5.1.2f 64 bit), and also can not make my laptop camera work.

Everything fixed with a 32-bit version of Unity, even if my os is 64 bits (Windows 7).

+1
source

If you are using Unity 5.1, do not forget to set the correct GUI settings in the settings of the Android and iOS player:

disable the "Automatic GUI API" checkbox in the list of APIs make sure that only OpenGL ES 2.0 is enabled: Android: remove OpenGL ES 3.0 iOS: remove OpenGL ES 3.0 and METAL

Important: 1. In the Unity project:

Select QCARWrapper.bundle in the Project Unity view (located in the Assets> Plugins section) so that its settings are displayed in the Unity Inspector. Change the QCARWrapper.bundle settings in the Unity inspector from "Any platform" to "Standalone + editor".

Rebuild

OR

  1. In the Xcode project created by Unity:

Go to Phase Building> Copy Package Resources. Remove the QCARWrapper.bundle file from the Rebuild list.

My unity of the 3d version is 5 and 64 bit, Os is the 64-bit version of Windows7.

my problems are resolved .

Edit:

Unity Editor could not show the camera for the laptop, but Restore Project, working with the camera. for example, rebuild the Android platform and install .apk on device => application Ok.

0
source

Go to Name_Vuforia_Unity_Project\Assets\Plugins and you will find QCARWrapper.dll .

Delete it and try again (you may need to restart the unit).

Unity 64 bit

0
source

Source: https://habr.com/ru/post/988223/


All Articles