繁体   English   中英

UBUNTU 18.04 中 Qt5.11.1 上的链接错误

[英]Linking errors on Qt5.11.1 in the UBUNTU 18.04

我在Qt世界中有点新,所以也许这个问题很简单,但我不知道如何解决。

我已经使用此链接中提供的 5.11.1 版安装了 qt 库。 为了配置安装,我使用了这个命令:

./configure -static -developer-build -opensource -confirm-license -platform linux-g++ -qt-zlib -qt-libjpeg -qt-pcre -qt-libpng -qt-freetype -nomake examples -nomake tests -opengl desktop -qt-xcb -prefix /usr/local/Qt5.11.1

在完成静态编译的所有工作(基本上为此创建一个工具包)之后,我在构建步骤中遇到了一些错误。 他们来了:

/usr/local/Qt5.11.3/plugins/platforms/libqwayland-egl.a(moc_qwaylandeglwindow.o):(.data.rel.ro._ZTVN15QtWaylandClient17QWaylandEglWindowE[_ZTVN15QtWaylandClient17QWaylandEglWindowE]+0x178): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/plugins/platforms/libqwayland-xcomposite-egl.a(qwaylandxcompositeeglwindow.o):(.data.rel.ro._ZTVN15QtWaylandClient27QWaylandXCompositeEGLWindowE[_ZTVN15QtWaylandClient27QWaylandXCompositeEGLWindowE]+0x168): undefined reference to `QPlatformWindow::initialize()'
/usrMakefile:1521: recipe for target 'build/release/VMTK-Neuro4.0' failed
/local/Qt5.11.3/plugins/platforms/libqwayland-xcomposite-glx.a(qwaylandxcompositeglxwindow.o):(.data.rel.ro._ZTVN15QtWaylandClient27QWaylandXCompositeGLXWindowE[_ZTVN15QtWaylandClient27QWaylandXCompositeGLXWindowE]+0x168): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-egl-integration.a(qxcbeglwindow.o):(.data.rel.ro._ZTV13QXcbEglWindow[_ZTV13QXcbEglWindow]+0xd0): undefined reference to `QXcbWindow::setWindowState(QFlags<Qt::WindowState>)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-egl-integration.a(qxcbeglwindow.o):(.data.rel.ro._ZTV13QXcbEglWindow[_ZTV13QXcbEglWindow]+0x160): undefined reference to `QXcbWindow::startSystemMove(QPoint const&)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-egl-integration.a(qxcbeglwindow.o):(.data.rel.ro._ZTV13QXcbEglWindow[_ZTV13QXcbEglWindow]+0x1d8): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-egl-integration.a(qxcbeglwindow.o):(.data.rel.ro._ZTV13QXcbEglWindow[_ZTV13QXcbEglWindow]+0x218): undefined reference to `non-virtual thunk to QXcbWindow::setWindowState(QFlags<Qt::WindowState>)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-egl-integration.a(qxcbeglwindow.o):(.data.rel.ro._ZTV13QXcbEglWindow[_ZTV13QXcbEglWindow]+0x2e8): undefined reference to `non-virtual thunk to QXcbWindow::startSystemMove(QPoint const&)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxwindow.o):(.data.rel.ro._ZTV13QXcbGlxWindow[_ZTV13QXcbGlxWindow]+0xd0): undefined reference to `QXcbWindow::setWindowState(QFlags<Qt::WindowState>)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxwindow.o):(.data.rel.ro._ZTV13QXcbGlxWindow[_ZTV13QXcbGlxWindow]+0x160): undefined reference to `QXcbWindow::startSystemMove(QPoint const&)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxwindow.o):(.data.rel.ro._ZTV13QXcbGlxWindow[_ZTV13QXcbGlxWindow]+0x1d8): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxwindow.o):(.data.rel.ro._ZTV13QXcbGlxWindow[_ZTV13QXcbGlxWindow]+0x218): undefined reference to `non-virtual thunk to QXcbWindow::setWindowState(QFlags<Qt::WindowState>)'
/usr/local/Qt5.11.3/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxwindow.o):(.data.rel.ro._ZTV13QXcbGlxWindow[_ZTV13QXcbGlxWindow]+0x2e8): undefined reference to `non-virtual thunk to QXcbWindow::startSystemMove(QPoint const&)'
/usr/local/Qt5.11.3/lib/libQt5GlxSupport.a(qglxconvenience.o): In function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:308: undefined reference to `QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace)'
/usr/local/Qt5.11.3/lib/libQt5GlxSupport.a(qglxconvenience.o): In function `qglx_surfaceFormatFromVisualInfo(QSurfaceFormat*, _XDisplay*, XVisualInfo*, int)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:347: undefined reference to `QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace)'
/usr/local/Qt5.11.3/lib/libQt5GlxSupport.a(qglxconvenience.o): In function `qglx_reduceFormat(QSurfaceFormat*)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:416: undefined reference to `QSurfaceFormat::colorSpace() const'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:417: undefined reference to `QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace)'
/usr/local/Qt5.11.3/lib/libQt5GlxSupport.a(qglxconvenience.o): In function `qglx_buildSpec(QSurfaceFormat const&, int, int)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:123: undefined reference to `QSurfaceFormat::colorSpace() const'
/usr/local/Qt5.11.3/lib/libQt5GlxSupport.a(qglxconvenience.o): In function `qglx_findConfig(_XDisplay*, int, QSurfaceFormat, bool, int, int)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/glxconvenience/qglxconvenience.cpp:213: undefined reference to `QSurfaceFormat::colorSpace() const'
/usr/local/Qt5.11.3/plugins/imageformats/libqgif.a(qgifhandler.o): In function `QGIFFormat::decode(QImage*, unsigned char const*, int, int*, int*)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/plugins/imageformats/gif/qgifhandler.cpp:358: undefined reference to `QImage::sizeInBytes() const'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/plugins/imageformats/gif/qgifhandler.cpp:423: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/plugins/imageformats/libqwebp.a(qwebphandler.o): In function `QWebpHandler::read(QImage*)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtimageformats/src/plugins/imageformats/webp/qwebphandler.cpp:179: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-emu-integration.a(qeglfsemulatorintegration.o):(.data.rel.ro._ZTV25QEglFSEmulatorIntegration[_ZTV25QEglFSEmulatorIntegration]+0x118): undefined reference to `QEglFSDeviceIntegration::platformFunction(QByteArray const&) const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-emu-integration.a(qeglfsemulatorintegration.o):(.data.rel.ro._ZTV25QEglFSEmulatorIntegration[_ZTV25QEglFSEmulatorIntegration]+0x120): undefined reference to `QEglFSDeviceIntegration::nativeResourceForIntegration(QByteArray const&)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-emu-integration.a(qeglfsemulatorintegration.o):(.data.rel.ro._ZTV25QEglFSEmulatorIntegration[_ZTV25QEglFSEmulatorIntegration]+0x128): undefined reference to `QEglFSDeviceIntegration::nativeResourceForScreen(QByteArray const&, QScreen*)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV29QEglFSKmsEglDeviceIntegration[_ZTV29QEglFSKmsEglDeviceIntegration]+0x118): undefined reference to `QEglFSDeviceIntegration::platformFunction(QByteArray const&) const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV29QEglFSKmsEglDeviceIntegration[_ZTV29QEglFSKmsEglDeviceIntegration]+0x120): undefined reference to `QEglFSKmsIntegration::nativeResourceForIntegration(QByteArray const&)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV29QEglFSKmsEglDeviceIntegration[_ZTV29QEglFSKmsEglDeviceIntegration]+0x128): undefined reference to `QEglFSKmsIntegration::nativeResourceForScreen(QByteArray const&, QScreen*)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceWindow[_ZTV24QEglFSKmsEglDeviceWindow]+0x30): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceWindow[_ZTV24QEglFSKmsEglDeviceWindow]+0x70): undefined reference to `QPlatformWindow::setWindowState(QFlags<Qt::WindowState>)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldeviceintegration.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceWindow[_ZTV24QEglFSKmsEglDeviceWindow]+0x140): undefined reference to `QPlatformWindow::startSystemMove(QPoint const&)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o): In function `QEglFSKmsEglDeviceScreen::QEglFSKmsEglDeviceScreen(QKmsDevice*, QKmsOutput const&)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevicescreen.cpp:51: undefined reference to `QEglFSKmsScreen::QEglFSKmsScreen(QKmsDevice*, QKmsOutput const&, bool)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xa0): undefined reference to `QEglFSKmsScreen::manufacturer() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xa8): undefined reference to `QEglFSKmsScreen::model() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xb0): undefined reference to `QEglFSKmsScreen::serialNumber() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xd8): undefined reference to `QEglFSKmsScreen::modes() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xe0): undefined reference to `QEglFSKmsScreen::currentMode() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-kms-egldevice-integration.a(qeglfskmsegldevicescreen.o):(.data.rel.ro._ZTV24QEglFSKmsEglDeviceScreen[_ZTV24QEglFSKmsEglDeviceScreen]+0xe8): undefined reference to `QEglFSKmsScreen::preferredMode() const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-x11-integration.a(qeglfsx11integration.o):(.data.rel.ro._ZTV20QEglFSX11Integration[_ZTV20QEglFSX11Integration]+0x118): undefined reference to `QEglFSDeviceIntegration::platformFunction(QByteArray const&) const'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-x11-integration.a(qeglfsx11integration.o):(.data.rel.ro._ZTV20QEglFSX11Integration[_ZTV20QEglFSX11Integration]+0x120): undefined reference to `QEglFSDeviceIntegration::nativeResourceForIntegration(QByteArray const&)'
/usr/local/Qt5.11.3/plugins/egldeviceintegrations/libqeglfs-x11-integration.a(qeglfsx11integration.o):(.data.rel.ro._ZTV20QEglFSX11Integration[_ZTV20QEglFSX11Integration]+0x128): undefined reference to `QEglFSDeviceIntegration::nativeResourceForScreen(QByteArray const&, QScreen*)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandshmbackingstore.o): In function `QtWaylandClient::QWaylandShmBackingStore::resize(QSize const&)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandshmbackingstore.cpp:293: undefined reference to `QImage::sizeInBytes() const'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandshmbackingstore.cpp:295: undefined reference to `QImage::sizeInBytes() const'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandshmbackingstore.cpp:296: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandshmbackingstore.o): In function `QtWaylandClient::QWaylandShmBuffer::~QWaylandShmBuffer()':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandshmbackingstore.cpp:122: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandshmbackingstore.o):(.data.rel.ro._ZTVN15QtWaylandClient23QWaylandShmBackingStoreE[_ZTVN15QtWaylandClient23QWaylandShmBackingStoreE]+0x30): undefined reference to `QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandwindow.o): In function `QtWaylandClient::QWaylandWindow::setCanResize(bool)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandwindow.cpp:487: undefined reference to `void QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::DefaultDelivery>(QWindow*, QRect const&)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandwindow.o): In function `QtWaylandClient::QWaylandWindow::handleScreenChanged()':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandwindow.cpp:929: undefined reference to `void QWindowSystemInterface::handleWindowScreenChanged<QWindowSystemInterface::DefaultDelivery>(QWindow*, QScreen*)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandwindow.o): In function `QtWaylandClient::QWaylandWindow::setWindowStateInternal(QFlags<Qt::WindowState>)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandwindow.cpp:1018: undefined reference to `void QWindowSystemInterface::handleWindowStateChanged<QWindowSystemInterface::DefaultDelivery>(QWindow*, QFlags<Qt::WindowState>, int)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandwindow.o): In function `QtWaylandClient::QWaylandWindow::initWindow()':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandwindow.cpp:209: undefined reference to `QWindow::windowStates() const'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandwindow.o): In function `QtWaylandClient::QWaylandWindow::setGeometry(QRect const&)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandwindow.cpp:343: undefined reference to `void QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::DefaultDelivery>(QWindow*, QRect const&)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandshmwindow.o):(.data.rel.ro._ZTVN15QtWaylandClient17QWaylandShmWindowE[_ZTVN15QtWaylandClient17QWaylandShmWindowE]+0x170): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandcursor.o): In function `QtWaylandClient::QWaylandCursor::cursorBitmapImage(QCursor const*)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtwayland/src/client/qwaylandcursor.cpp:122: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandcursor.o):(.data.rel.ro._ZTVN15QtWaylandClient14QWaylandCursorE[_ZTVN15QtWaylandClient14QWaylandCursorE]+0x80): undefined reference to `QPlatformCursor::setOverrideCursor(QCursor const&)'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(qwaylandcursor.o):(.data.rel.ro._ZTVN15QtWaylandClient14QWaylandCursorE[_ZTVN15QtWaylandClient14QWaylandCursorE]+0x88): undefined reference to `QPlatformCursor::clearOverrideCursor()'
/usr/local/Qt5.11.3/lib/libQt5WaylandClient.a(moc_qwaylandwindow_p.o):(.data.rel.ro._ZTVN15QtWaylandClient14QWaylandWindowE[_ZTVN15QtWaylandClient14QWaylandWindowE]+0x168): undefined reference to `QPlatformWindow::initialize()'
/usr/local/Qt5.11.3/lib/libqtfreetype.a(ftgzip.o): In function `ft_gzip_file_init':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:307: undefined reference to `z_inflateInit2_'
/usr/local/Qt5.11.3/lib/libqtfreetype.a(ftgzip.o): In function `ft_gzip_file_done':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:322: undefined reference to `z_inflateEnd'
/usr/local/Qt5.11.3/lib/libqtfreetype.a(ftgzip.o): In function `ft_gzip_file_reset':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:351: undefined reference to `z_inflateReset'
/usr/local/Qt5.11.3/lib/libqtfreetype.a(ftgzip.o): In function `ft_gzip_file_fill_output':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:431: undefined reference to `z_inflate'
/usr/local/Qt5.11.3/lib/libqtfreetype.a(ftgzip.o): In function `FT_Gzip_Uncompress':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:737: undefined reference to `z_inflateInit2_'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:741: undefined reference to `z_inflate'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:744: undefined reference to `z_inflateEnd'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/freetype/src/gzip/ftgzip.c:752: undefined reference to `z_inflateEnd'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(qgenericunixthemes.o): In function `QGnomeTheme::gtkFontName() const':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp:789: undefined reference to `QString::arg(QLatin1String, int, QChar) const'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(qdbusplatformmenu.o): In function `QDBusPlatformMenu::QDBusPlatformMenu()':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/themes/genericunix/dbusmenu/qdbusplatformmenu.cpp:168: undefined reference to `QPlatformMenu::QPlatformMenu()'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(qdbusplatformmenu.o): In function `QDBusPlatformMenuItem::QDBusPlatformMenuItem()':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/themes/genericunix/dbusmenu/qdbusplatformmenu.cpp:62: undefined reference to `QPlatformMenuItem::QPlatformMenuItem()'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(qdbustraytypes.o): In function `iconToQXdgDBusImageVector(QIcon const&)':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/platformsupport/themes/genericunix/dbustray/qdbustraytypes.cpp:107: undefined reference to `QImage::sizeInBytes() const'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(moc_qdbusplatformmenu_p.o):(.data.rel.ro._ZTV21QDBusPlatformMenuItem[_ZTV21QDBusPlatformMenuItem]+0x70): undefined reference to `QPlatformMenuItem::setTag(unsigned long long)'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(moc_qdbusplatformmenu_p.o):(.data.rel.ro._ZTV21QDBusPlatformMenuItem[_ZTV21QDBusPlatformMenuItem]+0x78): undefined reference to `QPlatformMenuItem::tag() const'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(moc_qdbusplatformmenu_p.o):(.data.rel.ro._ZTV17QDBusPlatformMenu[_ZTV17QDBusPlatformMenu]+0x90): undefined reference to `QPlatformMenu::setTag(unsigned long long)'
/usr/local/Qt5.11.3/lib/libQt5ThemeSupport.a(moc_qdbusplatformmenu_p.o):(.data.rel.ro._ZTV17QDBusPlatformMenu[_ZTV17QDBusPlatformMenu]+0x98): undefined reference to `QPlatformMenu::tag() const'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(png.o): In function `png_compare_ICC_profile_with_sRGB':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:2368: undefined reference to `z_adler32'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:2369: undefined reference to `z_adler32'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:2381: undefined reference to `z_crc32'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:2382: undefined reference to `z_crc32'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(png.o): In function `png_reset_crc':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:130: undefined reference to `z_crc32'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(png.o): In function `png_calculate_crc':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:173: undefined reference to `z_crc32'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(png.o): In function `png_reset_zstream':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/png.c:986: undefined reference to `z_inflateReset'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngread.o): In function `png_read_destroy':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngread.c:979: undefined reference to `z_inflateEnd'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngrutil.o): In function `png_inflate_claim':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngrutil.c:407: undefined reference to `z_inflateReset2'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngrutil.c:416: undefined reference to `z_inflateInit2_'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngrutil.c:429: undefined reference to `z_inflateValidate'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngrutil.o): In function `png_zlib_inflate':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngrutil.c:467: undefined reference to `z_inflate'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngrutil.o): In function `png_decompress_chunk':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngrutil.c:662: undefined reference to `z_inflateReset'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngwrite.o): In function `png_write_destroy':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwrite.c:945: undefined reference to `z_deflateEnd'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngwutil.o): In function `png_deflate_claim':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwutil.c:395: undefined reference to `z_deflateEnd'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwutil.c:413: undefined reference to `z_deflateReset'
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwutil.c:417: undefined reference to `z_deflateInit2_'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngwutil.o): In function `png_text_compress':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwutil.c:580: undefined reference to `z_deflate'
/usr/local/Qt5.11.3/lib/libqtlibpng.a(pngwutil.o): In function `png_compress_IDAT':
/home/everaldo/Downloads/qt-everywhere-src-5.11.3/qtbase/src/3rdparty/libpng/pngwutil.c:981: undefined reference to `z_deflate'
collect2: error: ld returned 1 exit status
make: *** [build/release/VMTK-Neuro4.0] Error 1
16:39:32: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project VMTK-DTI_2.0 (kit: Qt 5.11.3 Static GCC (C++, x86 64bit in /usr/bin) )
When executing step "Make"

我在整个互联网上寻找解决这些链接错误的方法,但我没有找到我缺少的库。 在这个项目中,我还使用了 glew、glm 和 gdcm 库。 那么,我该如何解决这些错误呢? 谢谢。

我不建议将“-prefix”与“-developer-build”选项一起使用。 我可以在附加的输出中看到 Qt 已安装到 /usr/local? 还是直接从源代码用作开发人员构建?

仅使用这些设置之一。 或者您可以尝试通过 qt.conf 调整 Qt 安装的位置(不确定这是否也适用于开发人员构建;但对于重新定位的 qt 树来说工作顺利)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM