microsoft / HoloLens2ForCV

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

errors while building in VS2019 #56

Open loleklel opened 3 years ago

loleklel commented 3 years ago

Hi,

I just want to test research mode on my HL2 but in VS2019 I got many errors such as:

Severity Code Description Project File Line Suppression State Error C2664 'void BasicHologram::XYZAxisModel::SetColors(DirectX::XMFLOAT3 &,DirectX::XMFLOAT3 &,DirectX::XMFLOAT3 &)': cannot convert argument 1 from 'DirectX::XMFLOAT3' to 'DirectX::XMFLOAT3 &' CalibrationVisualization C:\Users\robin.popelka\Desktop\HoloLens2ForCV-main\Samples\CalibrationVisualization\CalibrationVisualization\CalibrationVisualizationScenario.cpp 151

I tried to build the project within windows SDK 10.0.17 Version and the newest one 10.0.19 but no success.

Can you help me with this issue?

dorinung commented 3 years ago

I have updated the CalibrationVisualization and SensorVisualization for compile errors that came with the latest version of Visual Studio 16.8. Can you please try the latest changes?

Thanks.

loleklel commented 3 years ago

Hi, yes it works now with ver. VS 16.8.2. Only the sample CameraWithCVAndCalibration is still not working.

thank you!

dorinung commented 3 years ago

I have only fixed CalibrationVisualization and SensorVisualization. I will get to CameraWithCVAndCalibration in a few days.

iimrann412 commented 3 years ago

I have only fixed CalibrationVisualization and SensorVisualization. I will get to CameraWithCVAndCalibration in a few days.

how did you fix it ? can you tell me please? Thanks

raulsf6 commented 3 years ago

I'm getting the same Error C2664 trying to build CameraWithCVAndCalibration in Visual Studio 19

dorinung commented 3 years ago

I just pushed fixes for CameraWithCVAndCalibration.

Thanks,

raulsf6 commented 3 years ago

Hi @dorinung, It compiled perfectly this time. However, did you try to execute it in Hololens 2? I did it and it just keeps loading. It seems it does not work.

RenSiyao commented 3 years ago

我刚刚推送了CameraWithCVAndCalibration的修复程序。

谢谢,

Could you please take a look at this problem for me?thank you https://github.com/microsoft/HoloLens2ForCV/issues/75#issue-814213398