New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UWP (Universal Windows Platform) support #3
Comments
I don't have any experience/knowledge on UWP/HoloLens, so I have no idea about the issue. I keep this issue open for future reference, but please don't expect me to fix it in the near future. |
This comment has been minimized.
This comment has been minimized.
That depends on how you define the world coordinate. I think it's a kind of application-specific problem. |
By the way, please don't reuse the thread for other issues. I'll only discuss the topic (UWP support) in this issue page. |
@FilippoCinotti I also tried to use the project for the Hololens 2 and I bypassed this issue by importing the right packages manually (System.Buffers, System.Memory, ... initially imported by nuget if I'm right) to the project. |
@Yafilo the same happen to me, let me know if you are able to make progresses |
Hey so I found a repo to get the ARM64 of aprilTag through VCPKG : Hope it helps |
Thanks @Yafilo, let's get in touch! |
@Yafilo Where do I have to execute the vcpkg? On my local computer in terminal or in Unity? How do I use it in Unity then. Sry but I'm a little confused. TY in advance! |
You can download the repo and then launch During the installation I got an hash error with a file, you can just modify the expected hash signature with the current haash signature. I don't remember wich file it was but it worked for me. |
@Yafilo @FelixWeichselgartner Do you manage to complete it? I got a building error |
I did not try so far, because I expected that would happen ^^. |
|
@Yafilo I manage to solve the issue by substituting the correct hash code in the folder ./vcpkg/ports/apriltag/portfile (@FelixWeichselgartner @muxavir ). However, I only get x86 version of the library... how do you get this .\vcpkg\buildtrees\apriltag\arm64-uwp-rel ? |
You can add parameters on building, if I remember well, you can set something like : Hope it could help |
@Yafilo could you please upload the library? yes the command should be |
But it gaves me an error |
any luck for arm64 @FilippoCinotti ? |
None :(
Il mar 6 lug 2021, 09:56 Musawar Arshad ***@***.***> ha
scritto:
… any luck for arm64 @FilippoCinotti <https://github.com/FilippoCinotti> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APBTOBI4XNZFQLPXQ46IZKDTWKZMJANCNFSM42QIDVQQ>
.
|
@FilippoCinotti I am right there with you man, I'm trying to do the same thing. I am able to build out a dll for arm64 by doing |
I was able to build the vcpkg package using the above methods. I grabbed the latest vcpkg and merged it with the branch from ooeygui. Updated the hash. Used the triplet code listed above for arm (haven't tried arm64 yet). But when I run it on the device I get a Access violation reading location.... It is in the assembly-csharp.cpp and muddled with IL2CPP code so its hard to really tell where its occurring other than DetectionArray_get_Item_m is in the method name. Appears to be this:
|
Figured out my issue. It at least no longer crashes and it does say it has found 1 detected tag (though I haven't tried drawing it in the spatial scene yet). In ZArray.cs the el_sz was a ulong and the branch I was working off of has el_sz in the zarray struct in apriltags.c as a size_t or uint. Thus the parsing/conversion was off. |
Hi @markgrossnickle, would you be willing to share your .dll file so that we others don't have to go through entire build ordeal? I would appreciate it a lot! |
Here is a zip of the Arm build. It also has a debug method which outputs text back to Unity |
Has anyone here tried to run this on the HoloLens 1? Its an Intel x86 so I hoped it would run the default DLLs but I am getting the following error:
To be clear, this is a UWP support error, as it should work out of box with something like the HoloLens 1 which is an x86 UWP platform. |
Hey @markgrossnickle , is there a possibility you can build and share the arm64 build too? the arm does not work for arm64 builds and i can't build for arm i need arm64 for the Hololens 2 @theloni-monk I get the same issue when I run it on the HoloLens 2 |
I'd like to pass to UWP to run this project on windows HoloLens 2, but I can't figure out how to solve these errors:
error CS0246: The type or namespace name 'Span<>' could not be found (are you missing a using directive or an assembly reference?)
Can you help me?
The text was updated successfully, but these errors were encountered: