I updated my Realm for iOS Obj-C from 0.98 to 1.0.1
but now we're getting these error during compilation:
undef: __ZN5realm4util23PlatformSpecificCondVarC1Ev undef:
__ZN5realm4util23PlatformSpecificCondVarD1Ev undef: __ZNK5realm13TableViewBase16maximum_datetimeEmPm undef: __ZNK5realm5Table16maximum_datetimeEmPm undef: __ZNK5realm11StringIndex3getEmRNSt3__15arrayIcLm8EEE undef: __ZN5realm5Table12set_datetimeEmmNS_8DateTimeE undef: __ZN5realm9Allocator10do_reallocEmPKcmm undef: __ZNK5realm5Table16minimum_datetimeEmPm undef: __ZN5realm5QueryC1ERKNS_5TableERKNS_4util8bind_ptrINS_8LinkViewEEE undef: __ZNK5realm13TableViewBase16minimum_datetimeEmPm undef:
__ZNK5realm5Table12get_datetimeEmm undef: __ZN5realm14LinkListColumn19unregister_linkviewERKNS_8LinkViewE Undefined symbols for architecture x86_64:
"realm::util::PlatformSpecificCondVar::PlatformSpecificCondVar()",
referenced from:
realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool) in
libRealm.a(shared_realm.o)
"realm::util::PlatformSpecificCondVar::~PlatformSpecificCondVar()",
referenced from:
realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool) in
libRealm.a(shared_realm.o)
"realm::TableViewBase::maximum_datetime(unsigned long, unsigned long*)
const", referenced from:
auto realm::Results::max(unsigned long)::$_3::operator()(realm::TableView const&)
const in libRealm.a(results.o)
"realm::Table::maximum_datetime(unsigned long, unsigned long*) const",
referenced from:
auto realm::Results::max(unsigned long)::$_3::operator()(realm::Table const&) const in
libRealm.a(results.o) "realm::StringIndex::get(unsigned long,
std::__1::array&) const", referenced from:
void realm::StringIndex::set(unsigned long, realm::null) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::set(unsigned long, long long) in libRealm.a(RLMQueryUtil.o)
"realm::Table::set_datetime(unsigned long, unsigned long,
realm::DateTime)", referenced from:
realm::RowFuncs >::set_datetime(unsigned long, realm::DateTime) in libRealm.a(RLMAccessor.o)
copy_property_values(realm::Property const&, realm::Property const&, realm::Table&) in libRealm.a(object_store.o)
"realm::Allocator::do_realloc(unsigned long, char const*, unsigned
long, unsigned long)", referenced from:
vtable for realm::Allocator in libRealm.a(RLMArray.o) "realm::Table::minimum_datetime(unsigned long, unsigned long*) const",
referenced from:
auto realm::Results::min(unsigned long)::$_7::operator()(realm::Table const&) const in
libRealm.a(results.o) "realm::Query::Query(realm::Table const&,
realm::util::bind_ptr const&)", referenced from:
realm::Table::where(realm::util::bind_ptr const&) in libRealm.a(RLMArrayLinkView.o)
"realm::TableViewBase::minimum_datetime(unsigned long, unsigned long*)
const", referenced from:
auto realm::Results::min(unsigned long)::$_7::operator()(realm::TableView const&)
const in libRealm.a(results.o) "realm::Table::get_datetime(unsigned
long, unsigned long) const", referenced from:
realm::RowFuncs >::get_datetime(unsigned long) const in libRealm.a(RLMAccessor.o)
copy_property_values(realm::Property const&, realm::Property const&, realm::Table&) in libRealm.a(object_store.o)
"realm::LinkListColumn::unregister_linkview(realm::LinkView const&)",
referenced from:
realm::LinkView::~LinkView() in libRealm.a(RLMArray.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
I'm using cocoapods to install it. Thanks!
I ended up downgrading the cocoapods to 0.39.0
and did this
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
pod install
This works for now.
Related
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)
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'
I'm working on a project and it's compiling with all of my co-workers but me (we use Github to synchronize our work). We all work with MacOs 10.8.4. Here's a part of the error I'm facing :
Undefined symbols for architecture x86_64:
"qt_message_output(QtMsgType, QMessageLogContext const&, QString const&)", referenced from:
QDebug::~QDebug() in PhTimeCode.o
QDebug::~QDebug() in PhStripDoc.o
QDebug::~QDebug() in PhGraphicView.o
QDebug::~QDebug() in PhGraphicContext.o
QDebug::~QDebug() in PhGraphicImage.o
QDebug::~QDebug() in PhGraphicTexturedRect.o
QDebug::~QDebug() in PhGraphicStripView.o
...
"QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)", referenced from:
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhTimeCode.o
QTypedArrayData<char>::deallocate(QArrayData*) in PhDebug.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhDebug.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripDoc.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripText.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhPeople.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhGraphicView.o
...
"QArrayData::shared_null", referenced from:
QArrayData::sharedNull() in PhDebug.o
QArrayData::sharedNull() in PhStripDoc.o
QArrayData::sharedNull() in PhStripText.o
QArrayData::sharedNull() in PhPeople.o
QArrayData::sharedNull() in PhGraphicText.o
QArrayData::sharedNull() in PhFont.o
"QMetaObject::Connection::~Connection()", referenced from:
PhGraphicView::PhGraphicView(QWidget*) in PhGraphicView.o
PhGraphicStripView::PhGraphicStripView(QWidget*) in PhGraphicStripView.o
MainWindow::MainWindow(QWidget*) in MainWindow.o
"QMapDataBase::createData()", referenced from:
QMapData<QString, PhPeople*>::create() in PhStripDoc.o
QMapData<PhStripCut*, PhGraphicRect*>::create() in PhGraphicStripView.o
QMapData<PhStripText*, PhGraphicText*>::create() in PhGraphicStripView.o
QMapData<PhPeople*, PhGraphicText*>::create() in PhGraphicStripView.o
QMapData<QString, PhPeople*>::create() in PhGraphicStripView.o
"QMapDataBase::createNode(int, int, QMapNodeBase*, bool)", referenced from:
QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhStripDoc.o
QMapData<PhStripCut*, PhGraphicRect*>::createNode(PhStripCut* const&, PhGraphicRect* const&, QMapNode<PhStripCut*, PhGraphicRect*>*, bool) in PhGraphicStripView.o
QMapData<PhStripText*, PhGraphicText*>::createNode(PhStripText* const&, PhGraphicText* const&, QMapNode<PhStripText*, PhGraphicText*>*, bool) in PhGraphicStripView.o
QMapData<PhPeople*, PhGraphicText*>::createNode(PhPeople* const&, PhGraphicText* const&, QMapNode<PhPeople*, PhGraphicText*>*, bool) in PhGraphicStripView.o
QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhGraphicStripView.o
"QMapDataBase::shared_null", referenced from:
QMap<QString, PhPeople*>::QMap() in PhStripDoc.o
QMap<PhStripCut*, PhGraphicRect*>::QMap() in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::QMap() in PhGraphicStripView.o
QMap<PhPeople*, PhGraphicText*>::QMap() in PhGraphicStripView.o
"QMapDataBase::recalcMostLeftNode()", referenced from:
QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhStripDoc.o
QMap<QString, PhPeople*>::detach_helper() in PhStripDoc.o
QMap<PhStripCut*, PhGraphicRect*>::detach_helper() in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
QMap<PhPeople*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::QMap(QMap<PhStripText*, PhGraphicText*> const&) in PhGraphicStripView.o
...
the code compile with everybody expected me, and I've already re-installed Qt via the online installer. I'm lost.
Please check you have any other Qt libraries already installed in your system(in some other paths). If so uninstall & try.
I created a simple GUI application in QtCreator (QT 4.8.2) and added a function to check the network connectivity:
bool MainWindow::CheckNetworkConnectivity()
{
QList<QNetworkInterface> interface = QNetworkInterface::allInterfaces();
for(int i = 0; i < interface.count();i++)
{
QNetworkInterface inface = interface.at(i);
if(inface.IsUp && !inface.IsLoopBack)
{
ui->lstLog->addItem(inface.name()+QDateTime::currentDateTime().toString("h:m:s ap"));
ui->chkConStatus->setChecked(true);
}
else{
ui->chkConStatus->setChecked(false);
}
}
return ui->chkConStatus->checkState();
}
After that any attempts to compile the code generates the following errors:
15:21:11: Running steps for project MasterVPN...
15:21:11: Configuration unchanged, skipping qmake step.
15:21:11: Starting: "C:\Qt\Designer\bin\jom.exe"
C:\Qt\Designer\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.2\include\QtCore" -I"c:\Qt\4.8.2\include\QtGui" -I"c:\Qt\4.8.2\include" -I"c:\Qt\4.8.2\include\ActiveQt" -I"debug" -I"." -I"..\MasterVPN" -I"." -I"c:\Qt\4.8.2\mkspecs\win32-msvc2010" -Fodebug\ #C:\Users\Master\AppData\Local\Temp\mainwindow.obj.4156.31.jom
mainwindow.cpp
link /LIBPATH:"c:\Qt\4.8.2\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\MasterVPN.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\MasterVPN.exe #C:\Users\Master\AppData\Local\Temp\MasterVPN.exe.4156.5422.jom
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QNetworkInterface::~QNetworkInterface(void)" (__imp_??1QNetworkInterface##QAE#XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QNetworkInterface::name(void)const " (__imp_?name#QNetworkInterface##QBE?AVQString##XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QNetworkInterface::QNetworkInterface(class QNetworkInterface const &)" (__imp_??0QNetworkInterface##QAE#ABV0##Z) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class QList<class QNetworkInterface> __cdecl QNetworkInterface::allInterfaces(void)" (__imp_?allInterfaces#QNetworkInterface##SA?AV?$QList#VQNetworkInterface####XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
debug\MasterVPN.exe : fatal error LNK1120: 4 unresolved externals
jom: C:\Users\Master\Documents\Qt\MasterVPN-build-desktop-Qt_4_8_2__4_8_2__Debug\Makefile.Debug [debug\MasterVPN.exe] Error 1120
jom: C:\Users\Master\Documents\Qt\MasterVPN-build-desktop-Qt_4_8_2__4_8_2__Debug\Makefile [debug] Error 2
15:21:17: The process "C:\Qt\Designer\bin\jom.exe" exited with code 2.
Error while building/deploying project MasterVPN (target: Desktop)
When executing step 'Make'
Can someone please point out what the cause could be?
The linker is indicating that is can not find the required functionality. This is contained within QtNetwork4.lib (if you're on a Windows platform) or the equivalent library for your platform. So you have to tell the linker that it needs to link against this library. The network module is the required one, so instead of just
QT += core gui
at least make that
QT += core gui network
That should fix the linker errors you see.
I tried to compile Qt+Webkit statically with MS VS 2008 and this worked.
C:\Qt\4.6.2>configure -release -static -opensource -no-fast -no-exceptions -no-accessibility -no-rtti -no-stl -no-opengl -no-openvg -no-incredibuild-xge -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -no-gif -no-libpng -no-libtiff -no-libjpeg -no-libmng -no-qt3support -no-mmx -no-3dnow -no-sse -no-sse2 -no-iwmmxt -no-openssl -no-dbus -platform win32-msvc2008 -arch windows -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-script -no-scripttools -webkit -no-declarative
However, I get these errors whenever building a project that links statically to QWebKit:
1> Creating library C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.lib and object C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exp
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _VerQueryValueW#16 referenced in function "class WebCore::String __cdecl WebCore::getVersionInfo(void * const,class WebCore::String const &)" (?getVersionInfo#WebCore##YA?AVString#1#QAXABV21##Z)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoW#16 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW#8 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathRemoveFileSpecW#4 referenced in function "class WebCore::String __cdecl WebCore::safariPluginsDirectory(void)" (?safariPluginsDirectory#WebCore##YA?AVString#1#XZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_SHGetValueW#24 referenced in function "void __cdecl WebCore::addWindowsMediaPlayerPluginDirectory(class WTF::Vector &)" (?addWindowsMediaPlayerPluginDirectory#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathCombineW#12 referenced in function "void __cdecl WebCore::addMacromediaPluginDirectories(class WTF::Vector &)" (?addMacromediaPluginDirectories#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exe : fatal error LNK1120: 6 unresolved externals
Do I need to check something in the Qt project options? I have QtCore, QtGui, Network and WebKit checked.
It looks like you need to link in the windows .lib files for each of the missing functions:
VerQueryValue,GetFileVersionInfo -> version.lib
GetFileVersionInfoSize -> Coredll.lib
PathRemoveFileSpec, SHGetValue, PathCombine -> shlwapi.lib
If you are using qmake, you add:
LIBS += -lversion -lCoredll -lshlwapi
Otherwise: From the Project menu, choose Properties. Open Configuration Properties->Linker->Input. In the Additional Dependencies field, add version.lib, Coredll.lib and shlwapi.lib