microsoft / HoloLens2ForCV

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

Trying to rung CameraWithCVAndCalibration app #44

Closed hein30 closed 3 years ago

hein30 commented 3 years ago

I am trying to run CameraWithCVAndCalibration sample app. But I am having trouble building the app.

Error LNK1107 invalid or corrupt file: cannot read at 0x86 CameraWithCVAndCalibration C:\Users\xxx\Desktop\HoloLens2ForCV-main\Samples\CameraWithCVAndCalibration\OpenCvInstallArm64-412d\x64\vc15\staticlib\opencv_world412d.lib 1

Could someone please elaborate on how to install opencv for this project? Thanks

DadEap commented 3 years ago

I had the same error. It was because I downloaded the project as a zip.

The opencv static library is a heavy file which cannot be directly downloaded. To do so, you need to install git lfs (https://git-lfs.github.com/), which can handle large volume of data, and then clone the project. If the files located in "OpenCvInstallArm64-412d\x64\vc15\staticlib" have a size > 1 Ko, it should work.