我想在 ubuntu 中为 opencv 配置 eclipse-cdt。我遵循了Using OpenCV with Eclipse (plugin CDT)教程。但是,我最终收到了错误消息
致命错误:cv.h: No such file or directory DisplayImage.cpp /opencvtest line 1 C/C++ 问题
我按照教程中的说明检查了我的配置。一切都很好,除了 8.b 中的信息。
正如教程所说pkg-config --libs opencv
,输出应该是,
-L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
但就我而言,输出是,
/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_softcascade.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so
谁能帮我解决这个问题。
先感谢您。