kingpeter2015 / libovmatting

A C++ library for Background Matting
MIT License
51 stars 8 forks source link

Get many errors like"error C4996: 'InferenceEngine::details::InferenceEngineException'" while build ovmatting.sln #10

Open Azarxxx opened 2 years ago

Azarxxx commented 2 years ago

Dear kingpeter2015 I'm now using visual studio 2019 to build ovmatting.sln ,but I get a lot of errors:

1>C:\Users\zjc83\source\repos\libovmatting\include\common.hpp(167,9): error C4996: 'InferenceEngine::details::InferenceEngineException': Use InferRequest::Exception

and at the end of the report ,there is an error goes

2>LINK : fatal error LNK1104: unable to open file“ovmatting.lib”

I have already installed openvino runtime ,so I suspect that whether I didn't configure the openvino environment in visual studio 2019 Could you please answer my confusion and give me some advices?

Thank you and hoping for your reply!

Azarxxx

kingpeter2015 commented 2 years ago

Please build 'ovmatting' first.

image

Azarxxx commented 2 years ago

OK, thanks for reply, I have tried build 'ovmatting' first,but I met same error like this f2a6c2bb05879912cb822a44057ed97 It seems like the error is related to openvino's 'inference engine'

kingpeter2015 commented 2 years ago

Maybe you should downgrade your openvino version to 2021.2.185