Problem getting during Build the project



  • I am getting below error during build when I to display the image using cv::imshow() function
    Opencv 4.0
    Qt vesion 5.10

    /usr/local/lib/libopencv_highgui.so: undefined reference to QString::toUtf8_helper(QString const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQGraphicsView::viewportEvent(QEvent*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QAbstractSlider::value() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQBezier::bounds() const@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QRegularExpression::~QRegularExpression()@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQGraphicsView::showEvent(QShowEvent*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to qvsnprintf(char*, unsigned long, char const*, __va_list_tag*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQPen::QPen(QColor const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to qrand()@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toqEnvironmentVariableIntValue(char const*, bool*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::metaObject() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference totypeinfo for QWidgetPrivate@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to non-virtual thunk to QBoxLayout::heightForWidth(int) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQVariant::toString() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QByteArray::append(char)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQBoxLayout::addLayout(QLayout*, int)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QCheckBox::checkStateSet()@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQImage::hasAlphaChannel() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::windowTitle() const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toqsnprintf(char*, unsigned long, char const*, ...)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to typeinfo for QPaintEngineExPrivate@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQString::toLocal8Bit_helper(QChar const*, int)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to qTriangulate(QVectorPath const&, QTransform const&, double, bool)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference totypeinfo for QPaintDevice@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QFont::QFont(QFont const&)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQByteArray::mid(int, int) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::showNormal()@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQAbstractScrollArea::viewport() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QtPrivate::ResultStoreBase::filterMode() const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQMetaType::typeName(int)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QWidget::QWidget(QWidgetPrivate&, QWidget*, QFlags<Qt::WindowType>)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQElapsedTimer::start()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QSurfaceFormat::setDepthBufferSize(int)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQTransform::map(QPointF const&) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QObject::setObjectName(QString const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQAbstractScrollArea::eventFilter(QObject*, QEvent*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngineExPrivate::~QPaintEngineExPrivate()@Qt_5_PRIVATE_API' /usr/local/lib/libopencv_highgui.so: undefined reference toQWaitCondition::QWaitCondition()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngineEx::drawRects(QRectF const*, int)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQImageTextureGlyphCache::createTextureData(int, int)@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QTimer::start(int)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQRadioButton::sizeHint() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QString::operator=(QString const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQFile::~QFile()@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QGraphicsView::qt_metacast(char const*)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toqstrdup(char const*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QIcon::QIcon(QString const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQRadioButton::staticMetaObject@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QBoxLayout::minimumSize() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQMutex::lock()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QDir::mkpath(QString const&) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQApplication::QApplication(int&, char**, int)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to hex(QTextStream&)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQFileInfo::path() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QRadioButton::hitButton(QPoint const&) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQVariant::~QVariant()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to qEnvironmentVariableIsSet(char const*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::setFocusPolicy(Qt::FocusPolicy)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QGradient::stops() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQAbstractSlider::setPageStep(int)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImageTextureGlyphCache::resizeTextureData(int, int)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQOpenGLFunctions::openGLFeatures() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QOpenGLContext::defaultFramebufferObject() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference totypeinfo for QGraphicsEffectPrivate@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to typeinfo for QCheckBox@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQString::chop(int)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QObject::objectName() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQImagePixmapCleanupHooks::addPlatformPixmapDestructionHook(void ()(QPlatformPixmap))@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QAbstractConcatenable::appendLatin1To(char const*, int, QChar*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQWidget::testAttribute_helper(Qt::WidgetAttribute) const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QThreadStorageData::get() const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQFileInfo::isDir() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QAbstractButton::text() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQCheckBox::paintEvent(QPaintEvent*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QOpenGLContext::versionFunctions(QOpenGLVersionProfile const&) const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQColor::redF() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::setDevicePixelRatio(double)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQBezier::fromPoints(QPointF const&, QPointF const&, QPointF const&, QPointF const&)@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QRadialGradient::centerRadius() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference tovtable for QFontEngineGlyphCache@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImagePixmapCleanupHooks::addImageHook(void (*)(long long))@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQSysInfo::productType()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QSurfaceFormat::setStencilBufferSize(int)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQFutureInterfaceBase::queryState(QFutureInterfaceBase::State) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to typeinfo for QException@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQSurfaceFormat::~QSurfaceFormat()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QSysInfo::productVersion()@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQVariant::QVariant(QSize const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QString::operator==(QLatin1String) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQBrush::QBrush(QColor const&, Qt::BrushStyle)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::scaled(QSize const&, Qt::AspectRatioMode, Qt::TransformationMode) const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQProcess::readAllStandardError()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QThreadStorageData::QThreadStorageData(void (*)(void*))@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQString::toLatin1_helper(QString const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to qVersion@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQThread::QThread(QObject*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::QImage(QImage const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQFile::open(QFlagsQIODevice::OpenModeFlag)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to vtable for QImage@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQSurfaceFormat::setStereo(bool)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QObject::childEvent(QChildEvent*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQColor::rgba() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QMetaObject::Connection::~Connection()@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQTransform::QTransform(double, double, double, double, double, double)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QDirIterator::fileInfo() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQPen::~QPen()@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QAbstractButton::timerEvent(QTimerEvent*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::sharedPainter() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QSurfaceFormat::setProfile(QSurfaceFormat::OpenGLContextProfile)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference tonon-virtual thunk to QBoxLayout::minimumHeightForWidth(int) const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to qtVectorPathForPath(QPainterPath const&)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQBrush::gradient() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngine::systemClip() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQHBoxLayout::qt_metacast(char const*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QDashedStrokeProcessor::QDashedStrokeProcessor()@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQDirIterator::hasNext() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QTransform::map(double, double, double*, double*) const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQRegion::end() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to non-virtual thunk to QBoxLayout::expandingDirections() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQObject::staticMetaObject@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QVariant::QVariant(QRegularExpression const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::contextMenuEvent(QContextMenuEvent*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QPixmap::save(QString const&, char const*, int) const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQVectorPath::addCacheData(QPaintEngineEx*, void*, void ()(QPaintEngineEx, void*)) const@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QGradient::interpolationMode() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQListData::shared_null@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::hide()@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQImage::format() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QSlider::QSlider(Qt::Orientation, QWidget*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQWindow::create()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::scanLine(int)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQDir::absoluteFilePath(QString const&) const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QTriangulatingStroker::process(QVectorPath const&, QPen const&, QRectF const&, QFlags<QPainter::RenderHint>)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQSurfaceFormat::setOption(QSurfaceFormat::FormatOption, bool)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QString::toLatin1_helper_inplace(QString&)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQOpenGLSharedResource::QOpenGLSharedResource(QOpenGLContextGroup*)@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QCoreApplication::applicationFilePath()@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toqt_register_signal_spy_callbacks(QSignalSpyCallbackSet const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to typeinfo for QPainterState@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQWindow::setSurfaceType(QSurface::SurfaceType)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QOpenGLContext::openGLModuleType()@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQFile::QFile()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QOpenGLContext::shareContext() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::focusOutEvent(QFocusEvent*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::bytesPerLine() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQCursor::QCursor(Qt::CursorShape)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QByteArray::append(char const*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQHBoxLayout::QHBoxLayout()@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QLayout::isEmpty() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQBoxLayout::itemAt(int) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QAbstractButton::focusOutEvent(QFocusEvent*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQRegion::begin() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QEventLoop::exit(int)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQByteArray::startsWith(char) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QPainter::setBrush(QBrush const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQGraphicsView::dropEvent(QDropEvent*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQMapDataBase::freeData(QMapDataBase*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QThreadPool::start(QRunnable*, int)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQFutureInterfaceBase::refT() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPainter::paintEngine() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQPixmap::QPixmap(QSize const&)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::setLayout(QLayout*)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQCoreApplication::applicationDirPath()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngineEx::fillRect(QRectF const&, QBrush const&)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQRegularExpressionMatch::hasMatch() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngineEx::drawRects(QRect const*, int)@Qt_5_PRIVATE_API' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQRegularExpressionMatch::~QRegularExpressionMatch()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintDevice::initPainter(QPainter*) const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQBrush::QBrush(QBrush const&)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QPushButton::focusOutEvent(QFocusEvent*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQWindow::devicePixelRatio() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QPaintEngineEx::clip(QPainterPath const&, Qt::ClipOperation)@Qt_5_PRIVATE_API' /usr/local/lib/libopencv_highgui.so: undefined reference toQAction::QAction(QIcon const&, QString const&, QObject*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QTemporaryDir::QTemporaryDir()@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQVariant::toRegularExpression() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QSurfaceFormat::setRedBufferSize(int)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQByteArray::split(char) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to qUnregisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQFutureInterfaceBase::reportException(QException const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to qt_widget_private(QWidget*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQVariant::toPoint() const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QTemporaryDir::isValid() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQPainterPath::addRegion(QRegion const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QWidget::setAutoFillBackground(bool)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQObject::disconnect(QObject const*, char const*, QObject const*, char const*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QByteArray::isNull() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQOpenGLExtensions::openGLExtensions()@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QBoxLayout::addItem(QLayoutItem*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQPaintEngineExPrivate::replayClipOperations()@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::event(QEvent*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQMenu::QMenu(QWidget*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::setCursor(QCursor const&)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQPushButton::qt_metacall(QMetaObject::Call, int, void**)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to typeinfo for QGraphicsEffect@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQBoxLayout::addWidget(QWidget*, int, QFlagsQt::AlignmentFlag)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QHBoxLayout::~QHBoxLayout()@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQByteArray::truncate(int)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QArrayData::shared_null@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQColor::setGreenF(double)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QWindow::handle() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQSettings::setArrayIndex(int)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QColor::invalidate()@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQOpenGLContext::getProcAddress(char const*) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QLabel::QLabel(QWidget*, QFlags<Qt::WindowType>)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQByteArray::simplified_helper(QByteArray const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QMetaObjectPrivate::signal(QMetaObject const*, int)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toqFormatLogMessage(QtMsgType, QMessageLogContext const&, QString const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QByteArray::number(double, char, int)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQColor::operator==(QColor const&) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to typeinfo for QGraphicsView@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQThread::wait(unsigned long)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to non-virtual thunk to QWidget::redirected(QPoint*) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQApplication::closeAllWindows()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QListData::erase(void**)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQFileDevice::atEnd() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::moveEvent(QMoveEvent*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQPaintEngineEx::clip(QRect const&, Qt::ClipOperation)@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QColor::setRgb(int, int, int, int)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQPainter::fillRect(QRect const&, QColor const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QByteArray::append(QByteArray const&)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQPen::joinStyle() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::metric(QPaintDevice::PaintDeviceMetric) const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQElapsedTimer::nsecsElapsed() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QGraphicsView::paintEvent(QPaintEvent*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQShortcut::QShortcut(QKeySequence const&, QWidget*, char const*, char const*, Qt::ShortcutContext)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to typeinfo for QFutureInterfaceBase@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQOpenGLFramebufferObject::QOpenGLFramebufferObject(QSize const&, QOpenGLFramebufferObjectFormat const&)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to qstrncpy(char*, char const*, unsigned int)@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQFileInfo::setFile(QDir const&, QString const&)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QVariant::toSize() const@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toqt_scaleForTransform(QTransform const&, double*)@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QImage::scanLine(int) const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::mouseMoveEvent(QMouseEvent*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QObject::~QObject()@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toqt_sine_table@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QLibraryInfo::location(QLibraryInfo::LibraryLocation)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQImagePixmapCleanupHooks::enableCleanupHooks(QPixmap const&)@Qt_5_PRIVATE_API'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QGraphicsView::focusInEvent(QFocusEvent*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQDate::toString(QString const&) const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QButtonGroup::addButton(QAbstractButton*, int)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQPaintDevice::redirected(QPoint*) const@Qt_5'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QRadialGradient::focalPoint() const@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQRadioButton::minimumSizeHint() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QGraphicsView::dragEnterEvent(QDragEnterEvent*)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQString::fromUtf8_helper(char const*, int)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QFontMetrics::~QFontMetrics()@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQWidget::devType() const@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::dragMoveEvent(QDragMoveEvent*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQWidgetPrivate::setWindowFlags(QFlagsQt::WindowType)@Qt_5_PRIVATE_API'
    //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference to QSurfaceFormat::alphaBufferSize() const@Qt_5' //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference toQLibraryInfo::build()@Qt_5'
    //home/bulki/anaconda3/lib/libQt5Test.so.5: undefined reference to QRegExp::QRegExp(QString const&, Qt::CaseSensitivity, QRegExp::PatternSyntax)@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQAbstractButton::focusInEvent(QFocusEvent*)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QRadioButton::qt_metacast(char const*)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQSurfaceFormat::setAlphaBufferSize(int)@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QWidget::show()@Qt_5' /usr/local/lib/libopencv_highgui.so: undefined reference toQIcon::~QIcon()@Qt_5'
    /usr/local/lib/libopencv_highgui.so: undefined reference to QPainter::setPen(QColor const&)@Qt_5' //home/bulki/anaconda3/lib/libQt5OpenGL.so.5: undefined reference toQSurfaceFormat::testOption(QSurfaceFormat::FormatOption) const@Qt_5'


  • Qt Champions 2018

    Hi @Jhankar-patel, and welcome to the forum.

    Can you show as your *.pro file please? Thanks.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You seem to be mixing your local system Qt and the conda installed version.

    How did you install OpenCV ?
    What about using the version provided by conda ?


Log in to reply