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

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.

Related

ArcGIS plugin for Unity3d on Mac m1

I've downloaded the ArcGIS plugin (.tgz) and, using Unity's plugin manager, imported the .tgz file. Instructions here
However, I have errors in my console:
Despite the errors, I get the ArcGIS Maps SDK menu item but clicking on "Map Creator" does not do anything...
Any idea what is going on? Does ArcGIS even work with Unity and/or Mac M1s?
ESRI at this time doesn't support M1. So you can run tutorials with that plugin only with Unity Intel version. Hope in the future will provide also a plugin for Silicon versions of Unity!

Unity 3d error while opening the editor. Probably an error in the package manager

I am facing a problem with unity 3d editor. The issue is in both the versions of the Editor that I have downloaded being 2021 version and 2019.4 version. It occurs whenever I create and load up a new project in the unity editor.I have made no changes in the script or the scene so it is probably a problem with the packages. The module I have downloaded is the android build support and windows build support. Moreover I do not get any error message. I am attaching a screenshot. Please check the screenshot and please see what is the problem. Please help is you can. I will be very thankfulPlease see the picture and Help

Unity asking NDK version that is no longer available

The version of NDK Unity asking me to install is not on google site NDK Versions. The only one available is r19 version 19.2.5345600 but unity app is asking for r19 version 19.0.52321"
Image of the problem
Yeah, I know the problem can be solved by using Unity Hub but the reason I am not using that is because Unity Hub takes forever to download anything and my connection is slow. Unity Hub times out a lot and I have to install the entire unity 3D software and all of the external tools using it in order to download the NDK using Unity Hub. Currently, Unity doesn't allow you to add modules if Unity 3D is not downloaded using Unity Hub.
I have tried installing NDK r18 and r20 but that doesn't work, same problem.
So can anyone please help me?
You could try spoofing your NDK version, though this may cause unexpected behaviour. In Android ndk-r19c, modify source.properties such that:
Pkg.Desc = Android NDK
Pkg.Revision = 19.0.5232133
If you have Android Studio installed, (or can access via sdk manager, I guess )You can download the ndk version requested by Unity (r19 - 19.0.5232133) using the SDK manager.
Note: you have to uncheck the hide obsolete packages option

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

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

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