Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
69 Views

failure to build samples in C

Jump to solution

Hello,

I am a new starter with OpenVino. I installed the toolkit. I opened the samples.sln file (from the C:\Users\<my username>\Documents\Intel\OpenVINO\inference_engine_cpp_samples_build folder) in MSVS and could build the solution successfully. However, when I did the same for the samples in C I got the following error:

2>LINK : fatal error LNK1104: cannot open file 'gflags.lib'

I would appreciate your help. thanks, Yariv

0 Kudos

Accepted Solutions
Highlighted
Moderator
31 Views

Hi @yaridor 

We identified 2 issues related to this bug:

1) Absent thirdparty directory with gflags lib

2) Cmake configuration issue - missed opencv_c_wrapper. 

This is planned to be fixed soon. Meanwhile, you can try the hot-fix from this PR for Open Source OpenVINO distribution. And for current Intel Distribution of OpenVINO you can use the following workaround:

1) Copy "thirdparty" folder from "cpp" directory to "c"

2) In the "common" directory you need to create the new one - "format_reader", and then move all the files from "common" to it ("common\format_reader")

After following those steps c samples should be built successfully.

Thank you.
Best regards, Max.

View solution in original post

0 Kudos
3 Replies
Highlighted
Moderator
45 Views

Hi @yaridor 

We were able to reproduce this issue under Windows OS, so we are looking into fixing it.
Thanks for reporting this.

Best regards, Max.

0 Kudos
Highlighted
Moderator
32 Views

Hi @yaridor 

We identified 2 issues related to this bug:

1) Absent thirdparty directory with gflags lib

2) Cmake configuration issue - missed opencv_c_wrapper. 

This is planned to be fixed soon. Meanwhile, you can try the hot-fix from this PR for Open Source OpenVINO distribution. And for current Intel Distribution of OpenVINO you can use the following workaround:

1) Copy "thirdparty" folder from "cpp" directory to "c"

2) In the "common" directory you need to create the new one - "format_reader", and then move all the files from "common" to it ("common\format_reader")

After following those steps c samples should be built successfully.

Thank you.
Best regards, Max.

View solution in original post

0 Kudos
Highlighted
Moderator
14 Views

This thread will no longer be monitored since we have provided a solution.  If you need any additional information from Intel, please submit a new question.

0 Kudos