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
Error compiling for HoloLens #6
Comments
Following up with more info, it seems to be related to some post process that HoloToolkit is doing... so not sure if this falls under anyone's jurisdiction. The call stack reveals:
|
I think the ZXing.Unity build isn't perfect. But I can't test it myself. I looked a little bit around in the internet |
Thanks for the links. I think there are a lot of options to try. My current hypothesis is that there is an incompatibility with the HoloToolkit. But I still have a lot of options to try. I'll check in if I make any progress today. |
@micjahn I found this user who has the same problem. We need to remove references to the (BTW, the other option mentioned in the thread produces a litany of other errors due to IL2CPP incompatibilities. I think removing the I tried to build ZXing.Net right out of the box but got a bunch of errors. I'm not sure if it's a VS config issue, or what the problem is. If you are able to walk me through how to build ZXing.Net, maybe I can work to remove |
Update: I think that we need to wrap the [Browsable] attributes in |
I don't understand why other users get it running with the published assembly. |
@micjahn It does work on Unity, just not a UWP application built by Unity (published as a Windows Store App). The error comes when Unity compiles for UWP, specifically. So I guess the directive would be |
I made a special build without the Browsable attribute. |
Thanks! I'm going to try this asap. |
Next version of ZXing.Net will included binaries for unity without the Browseable attribute. Source code changes are already within the repository. |
Hello,
I'm trying to use zxing.unity.dll on the HoloLens. I'm so close.
When building, I'm getting the following error, related to System.ComponentModel.BrowsableAttribute:
Reference rewriter: Error: type System.ComponentModel.BrowsableAttribute doesn't exist in target framework.
There are about 4 of these errors that reference this namespace in various places. I saw a video online of someone who was successful in deploying ZXing to Unity/HoloLens, but they didn't mention this issue. I'm not sure if it's some version difference. But anyway, here are some specs:
Thank you!
Eric
The text was updated successfully, but these errors were encountered: