Linking errors on Qt5.11.1 in the UBUNTU 18.04 - qt

I'm a little bit new in the Qt world, so maybe this question is very simple, but I do not know how to solve it.
I have installed the qt libraries using the version 5.11.1 available in this link. For configuring the installation I used this command:
./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
And after doing all the stuff for the static compilation (basically creating a kit for that) I'm getting some errors during the building step. Here they are:
/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"
I looked in all the internet for a way to solve thoses linking errors, but I didn't find the libraries I'm missing. In this project I also use the glew, glm and gdcm libraries.
So, how can I solve thoses errors? Thanks.

I don't recomemnd to use use '-prefix' with '-developer-build' options together. I can see in attached output that Qt was installed to /usr/local? Or is it used as developer-build directly from source code?
Use only one of these settings. Or you can try adjust the location of Qt installation via qt.conf (not sure if this work for developer-builds too; but works smooth for relocated qt tree)

Related

Unresolved symbol when building Qt Cmake Project

I was working on a QT program including libtorch and opencv which was compiling without any error in my previous Ubuntu 21.04.
The libtorch library locates at /home/user/Downloads/libtorch and OpenCV installed with the following command:
apt install python3-opencv libopencv-dev libdc1394-22-dev
After upgrading my OS to Ubuntu jammy (22.04), building that program returns the following errors:
warning: libicui18n.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
warning: libicuuc.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDSTSavings_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_setMillis_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_strcoll_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToUpper_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getTimeZoneDisplayName_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_getSortKey_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_get_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDefaultTimeZone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZones_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToLower_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_next_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_setAttribute_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_inDaylightTime_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_clone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZoneIDEnumeration_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openCountryTimeZones_67'
error: collect2: error: ld returned 1 exit status
error: [CMakeFiles/example.dir/build.make:234: bina] Error 1
CMakeLists.txt is as following code:
cmake_minimum_required(VERSION 3.5)
project(example LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH /home/user/Downloads/libtorch)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(TS_FILES example_en_US.ts)
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
torchtestdlg.cpp
classification.cpp
${TS_FILES}
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(example
${PROJECT_SOURCES}
)
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
else()
if(ANDROID)
add_library(example SHARED
${PROJECT_SOURCES}
)
else()
add_executable(example
${PROJECT_SOURCES}
)
endif()
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
endif()
target_link_libraries(example PRIVATE Qt${QT_VERSION_MAJOR}::Widgets ${TORCH_LIBRARIES} ${OpenCV_LIBS})
Obviously it means that it has unresolved symbols which I couldn't understand what symbols they are.

QT compile static + OpenSSL error

I have downloaded source files of qt-everywhere-opensource-src-5.8.0 from here: https://download.qt.io/snapshots/qt/5.8/5.8.0/latest_src/
I have installed QtFramework(qt-opensource-windows-x86-mingw530-5.8.0) and Win32 OpenSSL v1.0.2k downloaded from here: https://slproweb.com/products/Win32OpenSSL.html
I want to compile it with support for Static version of QT + OpenSSL
I tried the following configuration
configure -static -release -platform win32-g++ -openssl-linked -I C:/OpenSSL-Win32/include -L C:/OpenSSL-Win32 /lib
and then mingw32-make , but I bring the following error.
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x691): undefined reference to SSL_library_init'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6a1): undefined reference
toSSL_load_error_strings' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6b1): undefined reference to SSL_new'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6c1): undefined reference
toSSL_ctrl' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6d1): undefined reference to SSL_read'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6e1): undefined reference
toSSL_set_bio' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x6f1): undefined reference to SSL_set_accept_state'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x701): undefined reference
toSSL_set_connect_state' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x711): undefined reference to SSL_shutdown'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x721): undefined reference
toSSL_set_session' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x731): undefined reference to SSL_SESSION_free'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x741): undefined reference
toSSL_get1_session' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x751): undefined reference to SSL_get_session'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x761): undefined reference
toSSL_get_ex_new_index' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x771): undefined reference to SSL_set_ex_data'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x781): undefined reference
toSSL_get_ex_data' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x791): undefined reference to SSL_set_psk_client_callback'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7a1): undefined reference
toSSL_set_psk_server_callback' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7b1): undefined reference to SSL_CTX_use_psk_identity_hint'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7c1): undefined reference
toSSLv3_client_method' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7d1): undefined reference to SSLv23_client_method'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7e1): undefined reference
toTLSv1_client_method' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x7f1): undefined reference to TLSv1_1_client_method'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x801): undefined reference
toTLSv1_2_client_method' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x811): undefined reference to SSLv3_server_method'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x821): undefined reference
toSSLv23_server_method' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x831): undefined reference to TLSv1_server_method'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x841): undefined reference
toTLSv1_1_server_method' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x851): undefined reference to TLSv1_2_server_method'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x861): undefined reference
toSSL_write' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x871): undefined reference to X509_cmp'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x881): undefined reference
toX509_dup' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x891): undefined reference to X509_print'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8a1): undefined reference
toX509_EXTENSION_get_object' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8b1): undefined reference to X509_free'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8c1): undefined reference
toX509_get_ext' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8d1): undefined reference to X509_get_ext_count'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8e1): undefined reference
toX509_get_ext_d2i' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x8f1): undefined reference to X509V3_EXT_get'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x901): undefined reference
toX509V3_EXT_d2i' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x911): undefined reference to X509_EXTENSION_get_critical'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x921): undefined reference
toX509_EXTENSION_get_data' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x931): undefined reference to BASIC_CONSTRAINTS_free'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x941): undefined reference
toAUTHORITY_KEYID_free' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x951): undefined reference to ASN1_STRING_print'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x961): undefined reference
toX509_check_issued' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x971): undefined reference to X509_get_issuer_name'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x981): undefined reference
toX509_get_subject_name' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x991): undefined reference to X509_verify_cert'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9a1): undefined reference
toX509_NAME_entry_count' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9b1): undefined reference to X509_NAME_get_entry'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9c1): undefined reference
toX509_NAME_ENTRY_get_data' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9d1): undefined reference to X509_NAME_ENTRY_get_object'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9e1): undefined reference
toX509_PUBKEY_get' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0x9f1): undefined reference to X509_STORE_free'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa01): undefined reference
toX509_STORE_new' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa11): undefined reference to X509_STORE_add_cert'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa21): undefined reference
toX509_STORE_CTX_free' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa31): undefined reference to X509_STORE_CTX_init'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa41): undefined reference
toX509_STORE_CTX_set_purpose' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa51): undefined reference to X509_STORE_CTX_get_error'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa61): undefined reference
toX509_STORE_CTX_get_error_depth' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa71): undefined reference to X509_STORE_CTX_get_current_cert'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa81): undefined reference
toX509_STORE_CTX_get_chain' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xa91): undefined reference to X509_STORE_CTX_new'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xaa1): undefined reference
toOPENSSL_add_all_algorithms_noconf' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xab1): undefined reference to OPENSSL_add_all_algorithms_conf'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xac1): undefined reference
toSSL_CTX_load_verify_locations' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xad1): undefined reference to SSLeay'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xae1): undefined reference
toSSLeay_version' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xaf1): undefined reference to i2d_SSL_SESSION'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb01): undefined reference
tod2i_SSL_SESSION' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb11): undefined reference to SSL_select_next_proto'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb21): undefined reference
toSSL_CTX_set_next_proto_select_cb' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb31): undefined reference to SSL_get0_next_proto_negotiated'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb41): undefined reference
toSSL_set_alpn_protos' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb51): undefined reference to SSL_CTX_set_alpn_select_cb'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb61): undefined reference
toSSL_get0_alpn_selected' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb71): undefined reference to DH_new'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb81): undefined reference
toDH_free' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xb91): undefined reference to d2i_DHparams'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xba1): undefined reference
toi2d_DHparams' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xbb1): undefined reference to DH_check'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xbc1): undefined reference
toBN_bin2bn' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xbd1): undefined reference to EC_KEY_dup'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xbe1): undefined reference
toEC_KEY_new_by_curve_name' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xbf1): undefined reference to EC_KEY_free'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xc01): undefined reference
toEC_get_builtin_curves' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xc11): undefined reference to EC_curve_nist2nid'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xc21): undefined reference
toPKCS12_parse' C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xc31): undefined reference to d2i_PKCS12_bio'
C:\qt-everywhere-opensource-src-5.8.0\qtbase\lib\libQt5Network.a(qsslsocket_open
ssl_symbols.o):qsslsocket_openssl_symbols.cpp:(.text+0xc41): undefined reference
toPKCS12_free' collect2.exe: error: ld returned 1 exit status Makefile.Release:62: recipe for target 'release\download.exe' failed mingw32-make[5]: * [release\download.exe] Error 1 mingw32-make[5]: Leaving directory 'C:/qt-everywhere-opensource-src-5.8.0/qtbase /examples/network/download' Makefile:34: recipe for target 'release' failed mingw32-make[4]: [release] Error 2 mingw32-make[4]: Leaving directory 'C:/qt-everywhere-opensource-src-5.8.0/qtbase /examples/network/download' Makefile:56: recipe for target 'sub-download-make_first' failed mingw32-make[3]: [sub-download-make_first] Error 2 mingw32-make[3]: Leaving directory 'C:/qt-everywhere-opensource-src-5.8.0/qtbase /examples/network' Makefile:150: recipe for target 'sub-network-make_first' failed mingw32-make[2]: [sub-network-make_first] Error 2 mingw32-make[2]: Leaving directory 'C:/qt-everywhere-opensource-src-5.8.0/qtbase /examples' Makefile:67: recipe for target 'sub-examples-make_first' failed mingw32-make[1]: [sub-examples-make_first] Error 2 mingw32-make[1]: Leaving directory 'C:/qt-everywhere-opensource-src-5.8.0/qtbase ' Makefile:75: recipe for target 'module-qtbase-make_first' failed mingw32-make: * [module-qtbase-make_first] Error 2
C:\qt-everywhere-opensource-src-5.8.0>
I tried also
configure -static -release -platform win32-g++ -openssl-linked -I C:/OpenSSL-Win32/include -L C:/OpenSSL-Win32/lib OPENSSL_LIBS="-llibeay32 -lssleay32 -lgdi32"

native build qt5.7.1 on raspberry pi get errors: /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QV8Engine::toVariant

i tried to build qt 5.7.1 on pi3 following this instruction:
https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi
the source package i use is:
qt-everywhere-opensource-src-5.7.1.tar
configure as:
./configure -v -opengl es2 -force-pkg-config -device linux-rpi3-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -qt-xcb -make libs -no-use-gold-linker -prefix /usr/local/qt5
The instruction is using "linux-rasp-pi-g++", but i think it should be linux-rpi3-g++ for Rpi3.
Make, and i get errors like:
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib
-Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -mfloat-abi=hard -Wl,--gc-sections -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib
-Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib
-o ../../bin/qmltestrunner .obj/main.o -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib
-lQt5QuickTest -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Test -lQt5Core -lGLESv2 -lpthread /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QV8Engine::toVariant(QV4::ValueRef, int)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::dataReady(QQmlAbstractProfilerAdapter*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionContext::throwTypeError()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::markObjects(QV4::Managed*, QV4::ExecutionEngine*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlEngineDebugService::instance()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV8Engine::fromVariant(QVariant const&)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::operator=(unsigned long long)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::qt_metacast(char const*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickItem::y() const#Qt_5'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::errors() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::engine() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionEngine::newErrorObject(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::property() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlCustomParser::bindingIdentifier(QV4::CompiledData::Binding
const*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
reference to QV4::ExecutionContext::throwError(QString const&)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::Invalid' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:
undefined reference to QQmlAbstractBinding::vTables'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionContext::throwError(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::call(QV4::Managed*, QV4::CallData*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::createBinding(int, QObject*, QQmlContext*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::operator new(unsigned int, QV4::MemoryManager*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::height() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::setLookup(QV4::Managed*, QV4::Lookup*, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::PersistentValue(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::qt_metacall(QMetaObject::Call, int, void**)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::addGlobalProfiler(QQmlAbstractProfilerAdapter*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickView::QQuickView(QWindow*)#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::putIndexed(QV4::Managed*, unsigned int, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::put(QV4::Managed*, QV4::StringRef, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::Object(QV4::ExecutionEngine*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::staticMetaObject'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::instance()'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::engine() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::getLookup(QV4::Managed*, QV4::Lookup*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::setSource(QUrl const&)#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::operator=(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ArrayData::realloc(QV4::Object*, QV4::ArrayData::Type, unsigned
int, unsigned int, bool)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlInspectorService::addView(QObject*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlPropertyPrivate::setBinding(QQmlProperty const&,
QQmlAbstractBinding*, QFlags)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ValueRef,
QV4::ValueRef, QObject*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::staticMetaObject#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::QQmlValueType(int, QObject*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::x() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlDebugStream::QQmlDebugStream(QByteArray*,
QFlags<QIODevice::OpenModeFlag>)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::window() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::~Object()'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::mapToScene(QPointF const&)
const#Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
reference to QV4::Object::deleteProperty(QV4::Managed*,
QV4::StringRef)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::rootContext() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::getIndexed(QV4::Managed*, unsigned int, bool*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlDebugService::isDebuggingEnabled()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::destroy(QV4::Managed*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickWindow::grabWindow()#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::metaObject() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlAbstractBinding::weakPointer()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::get(QV4::Managed*, QV4::StringRef, bool*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QOpenGLContextPrivate::globalShareContext()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::setVTable(QV4::ManagedVTable const*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlEngineDebugService::setStatesDelegate(QQmlDebugStatesDelegate*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickView::status() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::construct(QV4::Managed*, QV4::CallData*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlInspectorService::instance()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::query(QV4::Managed const*, QV4::StringRef)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickItem::width() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::defineAccessorProperty(QV4::StringRef, unsigned long
long ()(QV4::CallContext), unsigned long long
()(QV4::CallContext))'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::advanceIterator(QV4::Managed*, QV4::ObjectIterator*,
QV4::StringRef, unsigned int*, QV4::Property*,
QV4::PropertyAttributes*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::String::simplifyString() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
`QQmlInspectorService::removeView(QObject*)' collect2: error: ld
returned 1 exit status Makefile:108: recipe for target
'../../bin/qmltestrunner' failed make[3]: *
[../../bin/qmltestrunner] Error 1 make[3]: Leaving directory
'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/tools/qmltestrunner'
Makefile:276: recipe for target 'sub-qmltestrunner-make_first' failed
make[2]: * [sub-qmltestrunner-make_first] Error 2
so, how can i fix this problem?
thanks.
I've solved this problem, and there is a new problem now.
Before native building qt on pi, I installed qt by:
sudo apt-get install qt5-default, and other qt5 packages.
Although I have :
sudo apt-get remove those packages, it may still works.
so I formatted the SD card and re-burned an Raspbian image, followed the instructions, "make", and the problem is gone.
but now I have another problem.
When I "make install", I get this error:
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -mfloat-abi=hard -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libdeclarative_location.so .obj/location.o .obj/qdeclarativegeomapitemview.o .obj/qdeclarativegeoserviceprovider.o .obj/qdeclarativegeocodemodel.o .obj/qdeclarativegeoroutemodel.o .obj/qdeclarativegeoroute.o .obj/qdeclarativegeoroutesegment.o .obj/qdeclarativegeomaneuver.o .obj/qdeclarativegeomap.o .obj/qdeclarativegeomaptype.o .obj/qdeclarativegeomapitembase.o .obj/qdeclarativegeomapquickitem.o .obj/qdeclarativecirclemapitem.o .obj/qdeclarativerectanglemapitem.o .obj/qdeclarativepolygonmapitem.o .obj/qdeclarativepolylinemapitem.o .obj/qdeclarativeroutemapitem.o .obj/qgeomapitemgeometry.o .obj/qdeclarativegeomapcopyrightsnotice.o .obj/error_messages.o .obj/locationvaluetypehelper.o .obj/qquickgeomapgesturearea.o .obj/qquickgeocoordinateanimation.o .obj/mapitemviewdelegateincubator.o .obj/qdeclarativeplacecontentmodel.o .obj/qdeclarativesupportedcategoriesmodel.o .obj/qdeclarativesearchsuggestionmodel.o .obj/qdeclarativesearchresultmodel.o .obj/qdeclarativereviewmodel.o .obj/qdeclarativeplaceimagemodel.o .obj/qdeclarativeplaceeditorialmodel.o .obj/qdeclarativecontactdetail.o .obj/qdeclarativecategory.o .obj/qdeclarativeplace.o .obj/qdeclarativeplaceattribute.o .obj/qdeclarativeplaceicon.o .obj/qdeclarativeplaceuser.o .obj/qdeclarativeratings.o .obj/qdeclarativesupplier.o .obj/qdeclarativesearchmodelbase.o .obj/moc_qdeclarativecirclemapitem_p.o .obj/moc_qdeclarativerectanglemapitem_p.o .obj/moc_qdeclarativepolygonmapitem_p.o .obj/moc_qdeclarativepolylinemapitem_p.o .obj/moc_qdeclarativeroutemapitem_p.o .obj/moc_qdeclarativegeomapcopyrightsnotice_p.o .obj/moc_qquickgeocoordinateanimation_p.o .obj/moc_qdeclarativeplacecontentmodel.o .obj/moc_qdeclarativesupportedcategoriesmodel_p.o .obj/moc_qdeclarativesearchsuggestionmodel_p.o .obj/moc_qdeclarativesearchresultmodel_p.o .obj/moc_qdeclarativereviewmodel_p.o .obj/moc_qdeclarativeplaceimagemodel_p.o .obj/moc_qdeclarativeplaceeditorialmodel.o .obj/moc_qdeclarativecontactdetail_p.o .obj/moc_qdeclarativecategory_p.o .obj/moc_qdeclarativeplace_p.o .obj/moc_qdeclarativeplaceattribute_p.o .obj/moc_qdeclarativeplaceicon_p.o .obj/moc_qdeclarativeplaceuser_p.o .obj/moc_qdeclarativeratings_p.o .obj/moc_qdeclarativesupplier_p.o .obj/moc_qdeclarativesearchmodelbase.o -L=/opt/vc/lib -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/lib -lQt5Location -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Core -Wl,-rpath-link,/opt/vc/lib -lGLESv2 -lpthread -lclip2tri -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/lib -lpoly2tri -lclipper
/usr/bin/ld: cannot find -lclip2tri
/usr/bin/ld: cannot find -lpoly2tri
/usr/bin/ld: cannot find -lclipper
collect2: error: ld returned 1 exit status
Makefile:273: recipe for target '../../../qml/QtLocation/libdeclarative_location.so' failed
make[4]: *** [../../../qml/QtLocation/libdeclarative_location.so] Error 1
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports/location'
Makefile:80: recipe for target 'sub-location-install_subtargets' failed
make[3]: *** [sub-location-install_subtargets] Error 2
make[3]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports'
Makefile:135: recipe for target 'sub-imports-install_subtargets' failed
make[2]: *** [sub-imports-install_subtargets] Error 2
make[2]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src'
Makefile:56: recipe for target 'sub-src-install_subtargets' failed
make[1]: *** [sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation'
Makefile:844: recipe for target 'module-qtlocation-install_subtargets' failed
make: *** [module-qtlocation-install_subtargets] Error 2
I found there are 3 directories in qtlocation/src/3rdparty
clip2tri
clipper
poly2tri
and 3 file in qtlocation/lib:
libclip2tri.prl
libclipper.prl
libpoly2tri.prl
but no lib files.
I checked the build log, it seems cpp file in the directoriy qtlocation/src/3rdparty are not compiled,
cd 3rdparty/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/3rdparty.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[3]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'
cd poly2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
cd clipper/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper/clipper.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
cd clip2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri/clip2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
make[3]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'
cd location/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/location/location.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[3]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/location'

Linking errors with qt pcl and vtk

I am trying to compile the PCL tutorial described here and I am facing these linking errors.
Linking CXX executable pcl_visualizer usr/lib/libpq.so.5: undefined
reference to SSL_get_peer_certificate#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFReadDirectory#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined
reference to CRYPTO_num_locks#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference to
SSL_CTX_use_certificate_chain_file#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFIsTiled#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined reference to
SSL_use_certificate_file#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference to ENGINE_free#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference toOPENSSL_config#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference to SSL_get_error#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
SSL_use_PrivateKey_file#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference to X509_STORE_load_locations#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFDefaultStripSize#LIBTIFF_4.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference to TIFFReadTile#LIBTIFF_4.0' usr/lib/libpq.so.5:
undefined reference toSSL_set_ex_data#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFWriteScanline#LIBTIFF_4.0' usr/lib/libvtkIO.so.5.8.0: undefined
reference to_TIFFfree#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined
reference to SSL_read#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference toTIFFGetField#LIBTIFF_4.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFScanlineSize#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined reference
toX509_STORE_set_flags#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference to SSLv23_method#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference toENGINE_load_private_key#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
X509_get_subject_name#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference toCRYPTO_set_id_callback#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFClose#LIBTIFF_4.0' usr/lib/libvtkIO.so.5.8.0: undefined reference
toTIFFClientOpen#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined
reference to SSL_CTX_new#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference toSSL_CTX_get_cert_store#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
SSL_check_private_key#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference toTIFFGetFieldDefaulted#LIBTIFF_4.0'
usr/lib/libpq.so.5: undefined reference to
ENGINE_by_id#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0: undefined
reference toTIFFNumberOfDirectories#LIBTIFF_4.0' usr/lib/libpq.so.5:
undefined reference to ERR_get_error#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
CRYPTO_set_locking_callback#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference to SSL_load_error_strings#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference toSSL_new#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
X509_NAME_get_text_by_NID#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference toTIFFOpen#LIBTIFF_4.0' usr/lib/libpq.so.5:
undefined reference to SSL_write#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference toX509_free#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference to SSL_CTX_load_verify_locations#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFReadRGBAImage#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined
reference to SSL_free#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference toSSL_ctrl#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference to TIFFSetField#LIBTIFF_4.0' usr/lib/libpq.so.5:
undefined reference toSSL_set_verify#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to ENGINE_init#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference toSSL_set_fd#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to SSL_connect#OPENSSL_1.0.0'
usr/lib/libpq.so.5: undefined reference to
ERR_reason_error_string#OPENSSL_1.0.0' usr/lib/libpq.so.5: undefined
reference to SSL_CTX_ctrl#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference toSSL_pending#OPENSSL_1.0.0' usr/lib/libpq.so.5:
undefined reference to SSL_use_PrivateKey#OPENSSL_1.0.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
TIFFSetWarningHandler#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined
reference to ENGINE_finish#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference toTIFFSetErrorHandler#LIBTIFF_4.0'
usr/lib/libvtkIO.so.5.8.0: undefined reference to
_TIFFmalloc#LIBTIFF_4.0' usr/lib/libpq.so.5: undefined reference to
SSL_library_init#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0: undefined
reference to TIFFSetDirectory#LIBTIFF_4.0' usr/lib/libvtkIO.so.5.8.0:
undefined reference toTIFFReadScanline#LIBTIFF_4.0'
usr/lib/libpq.so.5: undefined reference to
SSL_shutdown#OPENSSL_1.0.0' usr/lib/libvtkIO.so.5.8.0: undefined
reference toTIFFNumberOfTiles#LIBTIFF_4.0' collect2: error: ld
returned 1 exit status make[2]: * [pcl_visualizer] Error 1 make1:
* [CMakeFiles/pcl_visualizer.dir/all] Error 2 make: *** [all] Error 2
The CmakeList file is define as follow:
cmake_minimum_required (VERSION 2.6 FATAL_ERROR)
project (pcl-visualizer)
find_package (Qt4 REQUIRED)
find_package (VTK REQUIRED)
find_package (PCL 1.7.1 REQUIRED)
include_directories (${PCL_INCLUDE_DIRS})
link_directories (${PCL_LIBRARY_DIRS})
add_definitions (${PCL_DEFINITIONS})
set (project_SOURCES main.cpp pclviewer.cpp)
set (project_HEADERS pclviewer.h)
set (project_FORMS pclviewer.ui)
set (VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid QVTK)
QT4_WRAP_CPP (project_HEADERS_MOC ${project_HEADERS})
QT4_WRAP_UI (project_FORMS_HEADERS ${project_FORMS})
INCLUDE (${QT_USE_FILE})
ADD_DEFINITIONS (${QT_DEFINITIONS})
ADD_EXECUTABLE (pcl_visualizer ${project_SOURCES}
${project_FORMS_HEADERS}
${project_HEADERS_MOC})
TARGET_LINK_LIBRARIES (pcl_visualizer ${QT_LIBRARIES} ${PCL_LIBRARIES} ${VTK_LIBRARIES})
Is there anything missing in the CMakeList file?
The PostgreSQL library you are linking to is missing openssl, you can check it with
ldd /usr/lib/libpq.so.5
it should report something like
libssl.so.1.0.0 => not found
The same with vtk, but it doesn't find a valid TIFF library.
First, check that you have both openssl and tiff libraries installed, if linking still fails, check if versions are correct.
Second, if all libraries are installed, check if are from the correct architecture (all 32-bit or all 64-bit).
Third, manually force your project to load libraries flags (both from command line CMAKE_MODULE_LINKER_FLAGS / CMAKE_SHARED_LINKER_FLAGS or in the target_link_libraries directive).
As mentioned in the comments, anaconda is the problem.
Rename your anaconda folder to anaconda-temp so that the link in your path variable is incorrect for cmake during its scan. Then install qt5-default using sudo apt-get install qt5-default as that solved both the errors in my case. Then rerun cmake and now it should detect qt5 in the correct location (i.e. not in the anaconda path).
Now run make and then finally you can rename anaconda-temp to anaconda so that it corresponds to your path and the value in bashrc and it's business as usual.
For solving problem with TIFF 4.0 you may try
cd $HOME/Downloads
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb
sudo ldconfig
It works for me that you should remove the ananconda3 from your system path. For me, I just remove it from the ~/.bashrc file. And everything works ok.

Error after updating meteor to 0.9.2

I get this error after updating meteor from 0.8 to 0.9.2
Uncaught TypeError: undefined is not a function dynamic_template.js:371
Uncaught TypeError: Cannot read property 'prototype' of undefined helpers.js:139
Uncaught TypeError: undefined is not a function router.js:61
Uncaught TypeError: Cannot read property 'RouteController' of undefined iron-router-progress.js?2b52a697e5a2fba4ec827721c08cfdd0a5bae508:25
Uncaught TypeError: Cannot read property 'RouteController' of undefined fast-render.js?b28103b086a46881dd8dde215dd8dfe85b2f693b:27
Uncaught Error: There are multiple templates named '__IronDefaultLayout__'. Each template needs a unique name. templating.js:9
Uncaught TypeError: undefined is not a function router.js:61
Uncaught TypeError: Cannot read property 'IronRouterProgress' of undefined global-imports.js?e50dcd2c89bf87a5ac45632b7280655943c6b817:6
Uncaught ReferenceError: Template is not defined template.admin_dashboard.js?00ebfb68d4f1c5e5ae7f687b10f53b2947bc5bb8:2

Resources