LocalJoost / QRCodeService

Show a MRTK2 service to read (and position) QR codes using HoloLens 2
MIT License
76 stars 25 forks source link

MRTK Update #8

Closed Bastien1612 closed 2 years ago

Bastien1612 commented 2 years ago

Hello,

I tried to update the MRTK by importing with unitypackage they give on their repository but everything start to errors. Is it possible to update the MRTK with this project? And if yes, how?

LocalJoost commented 2 years ago

Can you give a little more context?

Suppose you are me. You have written a blog post like mine, and published a little sample project. The sentences you wrote is all you get to go by. Would you know how to give an answer, of even have the remotest clue of what could possibly go wrong?

Bastien1612 commented 2 years ago

I pull the main Branch. My Unity version is 2019.4.30. I try to update to 2.6.1, to update like I said I use the unitypackage like the picture below : image I change nothing else.

LocalJoost commented 2 years ago

Not sure what is happening here and I need to try to repro what is going wrong. I did upgrade to 2.6.1 in this branch https://github.com/LocalJoost/QRCodeService/tree/openxr/ but that uses Unity 2020.3.7 and the packages are loaded using the MRKT Feature tool. This is the openXR version. Currently I am at work and don't have time to check what is going wrong.

LocalJoost commented 2 years ago

After finishing my working day, I tried to upgrade the main branch. So here's what I did

image

And I got ZERO errors.

I suggest abandoning the Package Manager and using the MRKT Feature Tool. If you check the OpenXR branch, you can see this working already under Unity 2020, which I would very much recommend for new projects.

Bastien1612 commented 2 years ago

Sorry for this late answer I was on many subject.

I tried what you said and I don't have the last error I had in console, but when I try to build appx with the build window :

image

I tried also the OpenXR branch and it works well.

LocalJoost commented 2 years ago

But that's a warning. Not an error.

Bastien1612 commented 2 years ago

There is 1 warning ("1 Avertissement(s)" on the screenshot) and 1 error ("1 Erreur(s)" on the screenshot) and the appPackage folder is not build.

LocalJoost commented 2 years ago

A build error is proceeded by a red bang. You only show information logs. See this? From your screen shots? image 115 informational logs, 6 warnings, 0 errors. The Appx should not be built from Unity: Unity should generate a Visual C++ solution you should deploy using Visual C++ I really have no idea what you are doing and how. You give me so little, and I am not clairvoyant. Did you ever make, build and deploy a HoloLens apps before?