Use OpenCV in ubuntu c ++

0

I'm using Ubuntu with OpenCV to develop a computational view method, before I used OpenCV in windows and put the following configuration in qtCreator to recognize OpencCV.

INCLUDEPATH += "C:\OpenCV-QT\install\include"
LIBS += -L"C:\OpenCV-QT\install\x86\mingw\bin" \
    libopencv_core320 \
    libopencv_highgui320 \
    libopencv_videoio320 \
    libopencv_imgcodecs320 \
    libopencv_imgproc320 \
    libopencv_features2d320 \
    libopencv_calib3d320

In Ubuntu I put both in the / home / daniel / directory and in the root (/), how do I put the ubuntu path in the same qt as that of windows?     
asked by anonymous 09.05.2018 / 15:20

1 answer

0

It should probably be because qt does not find the libraries on this path that reported, when I installed opencv here, these files were in "/ usr / local / lib", try this: use this path for the .so and / usr / local / include / opencv for .hpp

    
21.06.2018 / 20:36