P
P
parkito2016-05-14 23:46:59
Qt
parkito, 2016-05-14 23:46:59

How to compile a program under QT 5?

Hello. I'm trying to compile a program on ubuntu 16.04 QT 5.6 with openCV 3.1.0. The compiler outputs the following

/usr/bin/ld: cannot find -lopencv_contrib
/usr/bin/ld: cannot find -lopencv_legacy
/usr/bin/ld: cannot find -lopencv_nonfree
/usr/bin/ld: cannot find -lippicv

Googling and installing all sorts of libs that helped on stackoverflow did not help me. Tell me, please, how can I fix the situation?
upd I'm trying to compile a project found on GitHub. It seems that all the libraries are registered in the .pro file
# OpenCv Configuration
INCLUDEPATH += /usr/local/include/opencv
LIBS += -L/usr/local/lib
LIBS += -lopencv_core
LIBS += -lopencv_imgproc
LIBS += -lopencv_highgui
LIBS += -lopencv_ml
LIBS += -lopencv_video
LIBS += -lopencv_features2d
LIBS += -lopencv_calib3d
LIBS += -lopencv_objdetect
LIBS += -lopencv_contrib
<b>LIBS += -lopencv_legacy
LIBS += -lopencv_flann
LIBS += -lopencv_nonfree</b>

However, the latter either did not pick up, or there were changes in the library, which give such a deplorable result.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2016-05-14
@PavelK

Is the path written?
Is that what the library is called exactly?
Connection example:

INCLUDEPATH += K:/Projects/OpenCV/install/include/
LIBS +=-L"K:/Projects/OpenCV/install/x64/mingw/lib/"
LIBS +=  \
-lopencv_core300 \
-lopencv_highgui300 \
-lopencv_imgproc300 \

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question