Skip to content

请问这个 c++ demo入和运行 #27

Description

@tongchangD

您好,我刚刚接触C++,请问这个代码如何测试
我在网上查

g++ -o test main_yolo.cpp

可是报错

In file included from main_yolo.cpp:1:
yolo.h:7:10: fatal error: opencv2/dnn.hpp: 没有那个文件或目录
 #include <opencv2/dnn.hpp>
          ^~~~~~~~~~~~~~~~~
compilation terminated.

但是在我电脑里面终端输入

whereis opencv

会得到

opencv: /usr/include/opencv /usr/share/opencv

请问是哪儿存在了问题

祝好
tongchangD

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions