Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用自制软件在雪豹上安装了openCV。我尝试运行的任何 opencv 程序都找不到所需的头文件。
我知道必须定义头文件的路径。我需要帮助我如何做到这一点?
使用pkg-config让您的工作更轻松:
g++ test.cpp -o test `pkg-config --cflags --libs opencv`