microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
494 stars 144 forks source link

CameraWithCVAndCalibration runtime error: Unable to activate Microsoft Store app #153

Closed nothingbut1 closed 1 year ago

nothingbut1 commented 1 year ago

Hello and thanks for these useful samples.

I am able to run all the samples except "CameraWithCVAndCalibration".

Here is my procedure:

  1. Open the CameraWithCVAndCalibration.sln file in Visual Studio, build (Debug, ARM64), errors occured: 屏幕截图 2022-12-07 113455 so I check the property settings, and add the opencv_world412d.lib path to the Library Directories: 屏幕截图 2022-12-07 113154 rebuild, succedded with two warnings (these warning matters ?): 屏幕截图 2022-12-07 114500

  2. Deploy succeeded. image

  3. Press F5 to debug, an error window displayed as follows: 屏幕截图 2022-12-07 114833 press OK, another error window displayed as follows: 屏幕截图 2022-12-07 114856 and in the visual studio output window shows: 屏幕截图 2022-12-07 114937 It seems that there are some errors with dll library, but I don't know how to fix it.

    I have refered to the issues #8 and #41 with similar error, but it doen't works for me. Device Portal and Research Mode are all enabled. 屏幕截图 2022-12-07 101227

Environment: Hololens: beta developer mode, Windows version 22621.1036.arm64fre.ni_release_svc_sydney.221129-1357 visual studio 2022 professional

Any help would be grately appreciated!

joriswa commented 1 year ago

The opencv lib is stored with Git LFS so you need clone it with Git LFS. Otherwise the file will be empty

nothingbut1 commented 1 year ago

@joriswa

The opencv lib is stored with Git LFS so you need clone it with Git LFS. Otherwise the file will be empty

Thanks for your reply. I had noticed this, so the repository is cloned with Git LFS. 屏幕截图 2022-12-08 093220

The cloned opencv_world412d.lib is only about 1.9 Mb, is it normal ? 屏幕截图 2022-12-08 094402 image

nothingbut1 commented 1 year ago

see #96