问题描述
我想在统一的android应用程序上使用c ++ dll.要在Android设备上使用本机dll,我了解到我应该使用Unity5.我从此处下载unity5.我的应用程序需要vuforia.因此,我从此处下载了vuforia软件包.
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是64位.
Unity 5 is 64 bit.
在统一编辑器上,我删除MainCamera
并添加ARCamera
.统一控制台上有错误消息.消息如下:
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()
vuforia论坛上有针对此问题的解决方案.但我找不到unity editor(32 bit)
There is a solution for this problem on vuforia forum. But I don't find unity editor(32 bit)
推荐答案
要将Vuforia与Unity 64位一起使用,只需将QCARWrapper
DLL从/Plugins
移至/Plugins/x86
.这些是DLL:
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
这应该可以解决问题!
这篇关于Unity3d-无法加载“资产/插件/QCARWrapper.dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!