Got it

Face Recognition Sample Project on Huawei Atlas 200 DK: cannot find -lopencv_X

Created: Apr 13, 2021 10:44:44Latest reply: Apr 14, 2021 09:56:44 147 6 0 0 0
  Rewarded HiCoins: 5 (problem resolved)

Hello everyone,

I am trying to set up the face recognition example from Huawei from Gitee. Link to the project: samples: CANN Samples - Gitee.
I am almost done with setting the sample project up. But almost at the end I got an error which I cannot solve by myself.

My problem is originated in the section "Deploying the sample" under point 5.

Where I get the error

When I run "make" I get some linker errors (I think). I have problems with opencv and protobuf:

How the error messages look like


Thank you for your help

  • x
  • convention:

Featured Answers

Best answer

Recommended answer

_xyt
Created Apr 14, 2021 01:46:39

Try to find libopencv_core.so path,

then add the path to LD_LIBRARY_PATH

such as 

12

export LD_LIBRARY_PATH=/home/HwHiAiUser/ascend_ddk/arm/lib:$LD_LIBRARY_PATH

View more
  • x
  • convention:

All Answers
chenhui
chenhui Admin Created Apr 13, 2021 10:45:55

Dear friend!
Please rest assured that we'll be back with an answer shortly.
View more
  • x
  • convention:

_xyt
_xyt Created Apr 13, 2021 11:06:53

Hi,
environment preparation and dependency installation refer to
https://gitee.com/ascend/samples/blob/master/cplusplus/environment/README_CN.md
View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 13, 2021 12:09:11

Posted by _xyt at 2021-04-13 11:06 Hi,environment preparation and dependency installation refer tohttps://gitee.com/ascend/samples/blob ...

Dear _xyt

I have already done the environment preparation and dependency installation.

dependencies already done


I've already checked twice if I forgot a step. But I don't think so.
Do you maybe know what step I am missing?


View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 13, 2021 12:16:38

Posted by Daniel_EdgeAI at 2021-04-13 12:09 Dear _xytI have already done the environment preparation and dependency installation.I've already ...
Also I want to mention that I have compiled ffmpeg and opencv on the Huawei Atlas 200 DK and sent via scp to the development environment (my pc)

(Step: 2.Install ffmpeg and opencv)
View more
  • x
  • convention:

I%20am%20intersted%20in%20Embedded%20Systems%20and%20Machine%20Learning
_xyt
_xyt Created Apr 14, 2021 01:46:39

Try to find libopencv_core.so path,

then add the path to LD_LIBRARY_PATH

such as 

12

export LD_LIBRARY_PATH=/home/HwHiAiUser/ascend_ddk/arm/lib:$LD_LIBRARY_PATH

View more
  • x
  • convention:

Daniel_EdgeAI
Daniel_EdgeAI Created Apr 14, 2021 09:56:44

Posted by _xyt at 2021-04-14 01:46 Try to find libopencv_core.so path,then add the path to LD_LIBRARY_PATHsuch as export LD_LIBRARY_P ...
Thank you. I will try it out in the next days. Currently I am working on another sample project because of the problem.
I will tell you if it helped me.Face Recognition Sample Project on Huawei Atlas 200 DK: cannot find -lopencv_X-3882571-1
View more
  • x
  • convention:

I%20am%20intersted%20in%20Embedded%20Systems%20and%20Machine%20Learning

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.