m0_64781331: 大佬,我装完后用opencv_version能显示版本号,但是用你那个方法就不行,执行测试文件后显示下面这些
g++ test1.cpp -o test1 `pkg-config --cflags --libs opencv`
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
test1.cpp:1:10: fatal error: opencv2/highgui.hpp: 没有那个文件或目录
#include <opencv2/highgui.hpp>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.应用改进SA算法实现MATLAB-HFSS交互仿真与天线优化加菲猫不爱吃猫粮: no free