Can't add 3dmap to ObjectTrackable
Please provide your development details as below;
1. SDK Version: 4.1.4
2. Development Environment: Unity-Android
3. Tracker/Scanner: Object tracking
4. License Type(Free ):
5. Target Device(Optional):
The 3dmap file is created using Galaxy Tab S3.
When I drag/drop the 3dmap file from streamingassets/MaxstAR/ to ObjectTrackable the error popup shows 2 times if I click cancel button:
Unity console shows:
DllNotFoundException: MaxstAR
maxstAR.MapViewer.Deinitialize () (at Assets/MaxstAR/Script/Wrapper/MapViewer.cs:38)
maxstAR.AbstractMapViewerBehaviour.ReadMap (System.String fileName) (at Assets/MaxstAR/Script/Wrapper/AbstractMapViewerBehaviour.cs:129)
maxstAR.AbstractMapViewerBehaviour.Load (System.String fileName) (at Assets/MaxstAR/Script/Wrapper/AbstractMapViewerBehaviour.cs:100)
maxstAR.ObjectTrackableEditor.Load (System.String fileName) (at Assets/MaxstAR/Editor/ObjectTrackableEditor.cs:27)
maxstAR.ObjectTrackableEditor.OnInspectorGUI () (at Assets/MaxstAR/Editor/ObjectTrackableEditor.cs:97)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:501)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
The 3dmap file is where you place your 3dmap file in a component called ObjectTrackable's Object Trackable Behavior. Drag it to that location.
Leo
Maxst Support Team
Yes, the error happens when I drag it to that location.
BTW, my unity version is 2019.2.9f1 on iMac
Is this the reason?
Thanks
I think the problem is SDK 4.1.4 unity package is not working on Unity2019.2.9f1 (iMac).
DllNotFoundException: MaxstAR
This error is happening for every scene in MaxstARSample folder.
Are you getting dllNotFound error in every scene?
Leo
Maxst Support Team
Yes, in every scene as mentioned in the previous post:
"This error is happening for every scene in MaxstARSample folder."
Well, the MAXST SDK 4.1.x and the UNITY 2019 version that I have used so far is compatible without any problems. And in UNITY 2019.2.9f1 you mentioned, I just tested it but it works fine. Is your environment up-to-date with older SDKs? And is the code you used the sample code we provide? Or did you modify the code a bit?
Leo
Maxst Support Team
Hi Leo
Here are my steps:
1. My environment is unity 2019.2.9f1 on iMac.
2. I created an empty project and import Maxst SDK 4.1.4.
3. The error happens when I run any example scenes from Maxst example folder.
What else would you suggest me to try out?
Thanks,
Laurence
One thought: is it because of iMac?
:-)
MacOS Catalina 10.15.1 (19B88)
Hello jijunzhang.
I just imported and ran the Unity package in the environment you talked about (iMac, Unity 2019.2.9f1, MAXST SDK 4.1.4) and it worked.
The project seems to have been damaged when importing a Unity package, please try importing the package again.
Thank you.
Leo
Maxst Support Team.
xattr -cr /.../Assets/Plugins/MaxstAR.bundle
This command fixed the error.
Thanks for your help, Leo
I'm glad it's been resolved. Good luck.
Leo
Maxst Support Team
thanks for your advice.
I'm having this exact same problem, but in Ubuntu 18.04.4, Unity 2019.4.3.f1 and MAXSTARSDK_Unity_5.0.2, I tried to do the xattr thing, but I don't know what's que equivalent for Ubuntu, any ideas?
Thank you in advance
Sweet