编译时,Clueless Qt Creator 5.9错误

时间:2017-06-18 20:51:11

标签: c++ qt compiler-errors qt-creator

不确定如何解决此问题或为何会发生任何帮助将非常感激。谢谢如果还有什么我应该发布以协助帮助大声笑请告诉我!谢谢!

0

项目文件:

/opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QTouchEvent::TouchPoint::rotation() const@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createPlatformMenuBar() const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickTemplates2.so.5: undefined reference to `QPlatformDialogHelper::buttonLayout(Qt::Orientation, QPlatformDialogHelper::ButtonLayout)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QTouchEvent::TouchPoint::ellipseDiameters() const@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::isCommonTextEditShortcut(QKeyEvent const*)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::QInputControl(QInputControl::Type, QObject*)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit>, char const*)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::font(QPlatformTheme::Font) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createPlatformSystemTrayIcon() const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QT_DISTANCEFIELD_SCALE(bool)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::QPlatformTheme()@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `typeinfo for QPlatformTheme@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::staticMetaObject@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::qt_metacall(QMetaObject::Call, int, void**)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::standardButtonShortcut(int) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QPointingDeviceUniqueId::staticMetaObject@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit>, QByteArray const&)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::standardPixmap(QPlatformTheme::StandardPixmap, QSizeF const&) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::fileIcon(QFileInfo const&, QFlags<QPlatformTheme::IconOption>) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QT_DISTANCEFIELD_BASEFONTSIZE(bool)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QFileSelectorPrivate::selectionHelper(QString const&, QString const&, QStringList const&, QChar const&)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickTemplates2.so.5: undefined reference to `QPlatformDialogHelper::buttonRole(QPlatformDialogHelper::StandardButton)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `qt_version_tag@Qt_5.9'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QTouchEvent::TouchPoint::uniqueId() const@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::qt_metacast(char const*)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `typeinfo for QInputControl@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::palette(QPlatformTheme::Palette) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createIconEngine(QString const&) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::standardButtonText(int) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QT_DISTANCEFIELD_HIGHGLYPHCOUNT()@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::themeHint(QPlatformTheme::ThemeHint) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createPlatformMenu() const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `operator delete(void*, unsigned long)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::createPlatformMenuItem() const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::QInputControl(QInputControl::Type, QObjectPrivate&, QObject*)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Qml.so: undefined reference to `operator delete[](void*, unsigned long)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `vtable for QInputControl@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::keyBindings(QKeySequence::StandardKey) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Qml.so: undefined reference to `QDateTime::QDateTime(QDateTime&&)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickTemplates2.so.5: undefined reference to `QStyleHints::useHoverEffects() const@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickTemplates2.so.5: undefined reference to `QPlatformTheme::removeMnemonics(QString const&)@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QPointingDeviceUniqueId::fromNumericId(long long)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::~QPlatformTheme()@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QColor::setNamedColor(QLatin1String)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit>, QString const&)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QInputControl::isAcceptableInput(QKeyEvent const*) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickControls2.so: undefined reference to `QPlatformTheme::usePlatformNativeDialog(QPlatformTheme::DialogType) const@Qt_5_PRIVATE_API'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QT_DISTANCEFIELD_RADIUS(bool)@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5Quick.so: undefined reference to `QStringRef::isRightToLeft() const@Qt_5'
    /opt/Qt/5.9.1/gcc_64/lib/libQt5QuickTemplates2.so.5: undefined reference to `QPlatformDialogHelper::staticMetaObject@Qt_5_PRIVATE_API'
    Makefile:264: recipe for target 'LiveViewControl' failed
    collect2: error: ld returned 1 exit status
    make: *** [LiveViewControl] Error 1
    16:42:53: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project LiveViewControl (kit: Desktop Qt 5.9.1 GCC 64bit)
    When executing step "Make"
    16:42:53: Elapsed time: 00:03.

1 个答案:

答案 0 :(得分:0)

我想出来了

qmake --version 

并且看到它使用错误的Qt版本修复它并编译。