undefined reference to QQuickWidget



  • Hi all,
    I want to use QQuickWidget in my application. But cmake failed with

    undefined reference to `QQuickWidget::QQuickWidget(QWidget*)'
    undefined reference to `QQuickWidget::setResizeMode(QQuickWidget::ResizeMode)'
    

    CMakeLists.txt:

    cmake_minimum_required(VERSION 2.8)
    
    if(POLICY CMP0020)
      cmake_policy(SET CMP0020 NEW)
    endif()
    
    PROJECT(quick_test)
    
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
    
    FIND_PACKAGE(VTK REQUIRED)
    FIND_PACKAGE(Protobuf REQUIRED)
    FIND_PACKAGE(OpenCV REQUIRED)
    FIND_PACKAGE(Qt5Quick REQUIRED)
    FIND_PACKAGE(Qt5Widgets REQUIRED)
    FIND_PACKAGE(Qt5Qml REQUIRED)
    
    find_package(Qt5 COMPONENTS Core Quick Widgets Qml REQUIRED)
    
    INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
    
    include(${VTK_USE_FILE})
    
    set(CMAKE_AUTOMOC ON)
    
    include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
    
    file(GLOB UI_FILES *.ui)
    file(GLOB QT_WRAP *.h)
    file(GLOB CXX_FILES *.cxx)
    file(GLOB CPP_FILES *.cpp)
    
    qt5_wrap_ui(UISrcs ${UI_FILES})
    add_executable(quick_test ${CXX_FILES} ${UISrcs} ${QT_WRAP} quick_test_main.cpp)
    qt5_use_modules(quick_test Quick Core Gui Quick Qml)
    target_link_libraries(quick_test ${VTK_LIBRARIES} glog gflags ${OpenCV_LIBS} Qt5::Quick Qt5::Core Qt5::Widgets Qt5::Qml)
    

    Regards,

    zlf


  • Lifetime Qt Champion

    Hi,

    QQuickWidget is in quickwidgets. You can find that information at the top of the class documentation in the small table under the short documentation.



  • Thank you for your reply.

    cmake_minimum_required(VERSION 2.8)
    
    if(POLICY CMP0020)
      cmake_policy(SET CMP0020 NEW)
    endif()
    
    PROJECT(quick_test)
    
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
    
    FIND_PACKAGE(VTK REQUIRED)
    FIND_PACKAGE(Protobuf REQUIRED)
    FIND_PACKAGE(OpenCV REQUIRED)
    FIND_PACKAGE(Qt5Quick REQUIRED)
    FIND_PACKAGE(Qt5Widgets REQUIRED)
    FIND_PACKAGE(Qt5Qml REQUIRED)
    FIND_PACKAGE(Qt5QuickWidgets REQUIRED)
    
    find_package(Qt5 COMPONENTS Core Quick Widgets Qml REQUIRED)
    
    INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
    
    include(${VTK_USE_FILE})
    
    set(CMAKE_AUTOMOC ON)
    
    include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
    
    file(GLOB UI_FILES *.ui)
    file(GLOB QT_WRAP *.h)
    file(GLOB CXX_FILES *.cxx)
    file(GLOB CPP_FILES *.cpp)
    
    qt5_wrap_ui(UISrcs ${UI_FILES})
    add_executable(quick_test ${CXX_FILES} ${UISrcs} ${QT_WRAP} quick_test_main.cpp)
    qt5_use_modules(quick_test QuickWidgets Quick Core Gui Quick Qml)
    target_link_libraries(quick_test ${VTK_LIBRARIES} glog gflags ${OpenCV_LIBS}  Qt5::QuickWidgets Qt5::Quick Qt5::Core Qt5::Widgets Qt5::Qml)
    

    gives this error

    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QCoreApplication::setApplicationName(QString const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QXmlStreamReader::isStandaloneDocument() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaObject::classInfoOffset() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaProperty::name() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::localeAwareCompare(QString const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QUrl::userInfo(QFlags<QUrl::ComponentFormattingOption>) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QTime::isValid() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaObjectPrivate::signalIndex(QMetaMethod const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QDateTime::currentDateTime()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QVariant::toUrl() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObject::QObject(QObject*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QCryptographicHash::addData(QByteArray const&)@Qt_5'
    /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.5.1: undefined reference to `QV4::Object::advanceIterator(QV4::Managed*, QV4::ObjectIterator*, QV4::Heap::String**, unsigned int*, QV4::Property*, QV4::PropertyAttributes*)'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::replace(int, int, QChar)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QFile::QFile()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QStringRef::lastIndexOf(QChar, int, Qt::CaseSensitivity) const@Qt_5'
    /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.5.1: undefined reference to `QQmlBinding::QQmlBinding(QQmlScriptString const&, QObject*, QQmlContext*)'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QListData::realloc(int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractItemModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObject::connectNotify(QMetaMethod const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QFileInfo::absolutePath() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QJsonValue::QJsonValue(QJsonValue const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `qrand()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `typeinfo for QIODevicePrivate@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `typeinfo for QIODevice@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QString::toLongLong(bool*, int) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QIODevice::canReadLine() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObjectPrivate::QObjectPrivate(int)@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QFile::staticMetaObject@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QWaitCondition::wait(QMutex*, unsigned long)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QUrl::setUserName(QString const&, QUrl::ParsingMode)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QDateTime::operator==(QDateTime const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QStringRef::trimmed() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `qDecodeDataUrl(QUrl const&, QString&, QByteArray&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QDataStream::operator>>(short&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObject::customEvent(QEvent*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::fromRawData(QChar const*, int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::append(char)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `qvsnprintf(char*, unsigned long, char const*, __va_list_tag*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QXmlStreamReader::isCDATA() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QDateTime::toSecsSinceEpoch() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QElapsedTimer::start()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaObject::enumeratorOffset() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::textDirection() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `typeinfo for QItemSelectionModel@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::toDate(QString const&, QString const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QByteArray::trimmed_helper(QByteArray&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QChar::toUpper(unsigned int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaObjectBuilder::addClassInfo(QByteArray const&, QByteArray const&)@Qt_5_PRIVATE_API'
    /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.5.1: undefined reference to `QQmlProfilerService::dataReady(QQmlAbstractProfilerAdapter*)'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaType::typeName(int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `qDeleteInEventHandler(QObject*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QVariant::~QVariant()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractDeclarativeData::isSignalConnected@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QEasingCurve::setAmplitude(double)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::mid(int, int) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::toLocal8Bit_helper(QChar const*, int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QItemSelectionRange::isEmpty() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QThread::exec()@Qt_5'
    /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.5.1: undefined reference to `QQmlEngineDebugService::instance()'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QTimer::start(int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QVariant::toFloat(bool*) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::operator=(QString const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QSocketNotifier::setEnabled(bool)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMutex::lock()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QWaitCondition::QWaitCondition()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAssociativeIterable::const_iterator::operator!=(QAssociativeIterable::const_iterator const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QXmlStreamReader::documentEncoding() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractAnimationTimer::qt_metacall(QMetaObject::Call, int, void**)@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaObjectBuilder::property(int) const@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `hex(QTextStream&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QXmlStreamReader::text() const@Qt_5'
    /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.5.1: undefined reference to `QQmlMemoryScope::QQmlMemoryScope(char const*)'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMetaType::unregisterConverterFunction(int, int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObject::QObject(QObject*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::chop(int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::toBase64() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QNonContiguousByteDevice::qt_metacall(QMetaObject::Call, int, void**)@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLoggingCategory::~QLoggingCategory()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QFile::setPermissions(QFlags<QFileDevice::Permission>)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QObject::objectName() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAssociativeIterable::begin() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractItemModel::match(QModelIndex const&, int, QVariant const&, int, QFlags<Qt::MatchFlag>) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QListData::append(QListData const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractConcatenable::appendLatin1To(char const*, int, QChar*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QItemSelectionModel::QItemSelectionModel(QAbstractItemModel*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QRegExp::capturedTexts()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QDir::mkpath(QString const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QIODevice::isReadable() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QSocketNotifier::qt_metacall(QMetaObject::Call, int, void**)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QCoreApplication::installTranslator(QTranslator*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QUrl::setHost(QString const&, QUrl::ParsingMode)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QThread::QThread(QObject*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::endsWith(QLatin1String, Qt::CaseSensitivity) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::operator==(QLatin1String) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QIODevicePrivate::peek(long long)@Qt_5_PRIVATE_API'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QUrl::fileName(QFlags<QUrl::ComponentFormattingOption>) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QByteArray::expand(int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QDateTime::QDateTime(QDate const&, QTime const&, Qt::TimeSpec)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::append(QStringRef const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMessageLogger::info(char const*, ...) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QThreadStorageData::QThreadStorageData(void (*)(void*))@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QChar::isLetter_helper(unsigned int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::zeroDigit() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QRegExp::patternSyntax() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QFile::resize(long long)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::timeFormat(QLocale::FormatType) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::QString(int, QChar)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::toDouble(bool*) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QJsonValue::toObject() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QRingBuffer::clear()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QListData::prepend()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::number(unsigned long long, int)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QCryptographicHash::hash(QByteArray const&, QCryptographicHash::Algorithm)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QUrl::toLocalFile() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QFile::QFile()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractListModel::QAbstractListModel(QObject*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QTextStream::operator<<(unsigned short)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::endsWith(QString const&, Qt::CaseSensitivity) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::toLatin1_helper(QString const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::toCurrencyString(double, QString const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QString::indexOf(QChar, int, Qt::CaseSensitivity) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QAbstractItemModel::insertColumns(int, int, QModelIndex const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QByteArray::toLong(bool*, int) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QTextCodec::toUnicode(QByteArray const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::append(char const*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QByteArray::prepend(char)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QUrl::isRelative() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QUrl::authority(QFlags<QUrl::ComponentFormattingOption>) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QFile::open(QFlags<QIODevice::OpenModeFlag>)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QXmlStreamReader::attributes() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QTextCodec::codecForName(QByteArray const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QDateTime::setTime(QTime const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QCoreApplication::applicationFilePath()@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QStringRef::toLong(bool*, int) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QLocale::toString(QTime const&, QString const&) const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::isNull() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QMapDataBase::freeData(QMapDataBase*)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QByteArray::toLower_helper(QByteArray&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QEvent::QEvent(QEvent::Type)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QTime::second() const@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QBitArray::QBitArray(int, bool)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Qml.so.5.9.1: undefined reference to `QByteArray::insert(int, QByteArray const&)@Qt_5'
    /home/work/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Network.so.5.9.1: undefined reference to `QThreadPool::~QThreadPool()@Qt_5'
    

  • Lifetime Qt Champion

    Which version of CMake are you using ?

    By the way, did you saw the Qt CMake manual ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.