Unity3d - Failed to load 'Assets/Plugins/QCARWrapper.dll' - unity3d

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 requires vuforia. So I download vuforia package from here.
Unity 5 is 64 bit.
On unity editor, I delete MainCamera and add ARCamera. There is an error message on unity console. The message is 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 for this problem on vuforia forum. But I don't find unity editor(32 bit)

To use Vuforia with Unity 64 bit, just move the QCARWrapper DLLs from /Plugins to /Plugins/x86. These are the DLLs:
QCARWrapper.exp
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
This should solve the problem!

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.

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:
you just need to install and use the Unity 5 32bit Editor, on Windows.
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.
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
QCARWrapper.exp
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!

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).

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:
In the Xcode project generated by Unity:
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

Related

Adding Vuforia Plugin on Unity Editor with an M1 chip does not work

I tried to install the Vuforia plugin on Unity Editor but it did not work.
The error message came out like this:
Plugins: Couldn't open /Users/jorisdejong/TestM1/Library/PackageCache/com.ptc.vuforia.engine#efa13d4486/Vuforia/Plugins/OSXUniversal/FileDriver.bundle/Contents/MacOS/FileDriver, error: dlopen(/Users/usename/TestM1/Library/PackageCache/com.ptc.vuforia.engine#efa13d4486/Vuforia/Plugins/OSXUniversal/FileDriver.bundle/Contents/MacOS/FileDriver, 2): no suitable image found. Did find:/Users/username/TestM1/Library/PackageCache/com.ptc.vuforia.engine#efa13d4486/Vuforia/Plugins/OSXUniversal/FileDriver.bundle/Contents/MacOS/FileDriver: mach-o, but wrong architecture /Users/username/TestM1/Library/PackageCache/com.ptc.vuforia.engine#efa13d4486/Vuforia/Plugins/OSXUniversal/FileDriver.bundle/Contents/MacOS/FileDriver: mach-o, but wrong architecture
I then asked the Vuforia forum on here.
It was recommended to use an Intel emulator to run Unity Editor.
I then installed Rosetta 2.
I then looked at the current Unity Editor info and it confirmed that I had downloaded the Apple version.
I went back to the Unity download archives and downloaded the Intel Unity Editor. It automatically replaced the Apple version once installed.
I can now add Vuforia plugin into the Unity Editor.

Unity crashed when enabling Vuforia

My editor crashes when enabling "Vuforia Augmented Reality Supported" in XR settings. Following are the steps which I followed,
Steps to Repro:
1. Create a new project.
2. File > Build Settings > player settings > Player.
3. Enable "Vuforia Augmented Reality" checkbox from XR settings.
Environment:
Occurring on Windows 10
Unity version 2019.2.13
Demo Video:
What is the reason for the crashing Unity engine? I'm looking for a solution to my problem.
Since there is no answer yet I would like to post what I have done to solve this matter. As #kartik Shah said this could be a bug. So I checked previous unity bug reportings and finally, I have found this which is a kinda similar situation. So finally I came to conclusion this is a bug of current version 2019.2.13 and I did the following to reset unity editor into LTS(Latest Stable version) which is 2018.4.13,
Open unity hub -> Installs -> Add -> Select LTS version -> Select the modules that you want -> Click Done
This will download only the modules which you need to update and other modules remain as it is.
ps: If you don't have Unity Hub you can download it from here.

How to get Oculus Rift DK2 working in Unity 5.4 on windows 10

I upgraded to Windows 10, downloaded the newest drivers for the graphics card, and installed the latest SDK I also installed the oculus utilities for unity 5 and the ovr plugin. I tried following this tutorial but I cant seem to find the OculusConfigTool referenced. Also I've been trying to use the VRSamples from unity but I keep getting [VRDevice] initialization of device oculus not found.
I had this working before i upgraded to windows 10, so what am I doing wrong?
Ok finally got this to work ... in the instructions I followed it said to place the ovr plugin files in a folder called "unity". I found thisthis thread http://forum.unity3d.com/threads/unity-5-3-vrdevice-initialization-of-device-oculus-failed.372663/ and placed it in a folder called "oculus" and replaced the file in there, now it works

Unity3D error Fix [duplicate]

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 requires vuforia. So I download vuforia package from here.
Unity 5 is 64 bit.
On unity editor, I delete MainCamera and add ARCamera. There is an error message on unity console. The message is 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 for this problem on vuforia forum. But I don't find unity editor(32 bit)
To use Vuforia with Unity 64 bit, just move the QCARWrapper DLLs from /Plugins to /Plugins/x86. These are the DLLs:
QCARWrapper.exp
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
This should solve the problem!
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.
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:
you just need to install and use the Unity 5 32bit Editor, on Windows.
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.
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
QCARWrapper.exp
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!
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).
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:
In the Xcode project generated by Unity:
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

Vuforia augment reality windows

Can you please tell me, if vuforia can run on a PC? I have tried to make an .EXE file, but it does not work.
Please tell me how can I run vuforia apps on my PC? Should I build it for Windows store using Unity and then run it on Windows 8?
Can you please tell me vuforia can run on pc
Answer is No. You cannot build windows or mac app with Vuforia. Vuforia is only supported on Mobile Platforms (iOS, Android).
But you want to test on Windows, you can run your app and test in unity Editor mode with webcamera attached. I hope it will answer your question.
download unity from the unity website , install & run
download vuforia and vuforia sample for unity on vuforia website
create unity project and add vuforia package to the project
There are some tutorials for you for importing the samples and ofcourse you need to get a key with the name of your project.
Have a look at this https://www.youtube.com/watch?v=HnjbTytHH6U
For now, and without plugin, the answer is no. But,
Vuforia is work on supporting win 10, so maybe months later, you can develop a win 10 universal app.
There is some plugin support build the app for windows and Mac, it costs much money. The plugin is provided by maximarouf
As the answers above, I agree that it is enough to run in unity editor for presantation and test.
Vuforia now has a Windows 10 Early Access Program. You can apply for participation and may get access to the Windows 10 UWP SDK.
However, it currently only supports Intel based devices, like the Surface Book and Surface Pro series.
Alternatively, you can use the Unity3D Plugin to build an app which works on Windows.
No vuforia is not supported . U will get Vuforiawrapper.dll missing error when you try to .
Instead what you could do is , make an APK , Download Bluestacks and install it in PC and emulate your vuforia app in PC . But no Vuforia is not made for PC. It supports UWP though which means Windows Tablet , Windows Phone, Hololens .