Closed Frozen-byte closed 8 years ago
Can you do ls /usr/lib/x86_64-linux-gnu/
? I have a feeling the libs are located somewhere else than where the .pro file specifies them.
Jeha, you are right, I forgot to edit the pro file shame
My System is still on 5.2.1 and I just installed qt5.5 in a dedicated place (/opt)
Changed the path to /opt/qt/5.5/gcc_64/lib
everything working fine now.
Thank you for the quick answer!
While Compiling with > >(char const , std::vector<CardHistoryItem, std::allocator >, QtPrivate::MetaTypeDefinedHelper<std::vector<CardHistoryItem, std::allocator >, QMetaTypeId2<std::vector<CardHistoryItem, std::allocator > >::Defined&&(!QMetaTypeId2<std::vector<CardHistoryItem, std::allocator > >::IsBuiltIn)>::DefinedType)':
HearthstoneLogTracker.cpp:(.text._Z17qRegisterMetaTypeISt6vectorI15CardHistoryItemSaIS1_EEEiPKcPT_N9QtPrivate21MetaTypeDefinedHelperIS6_Xaasr12QMetaTypeId2IS6_E7DefinedntsrSB_9IsBuiltInEE11DefinedTypeE[_Z17qRegisterMetaTypeISt6vectorI15CardHistoryItemSaIS1_EEEiPKcPT_N9QtPrivate21MetaTypeDefinedHelperIS6_Xaasr12QMetaTypeId2IS6_E7DefinedntsrSB_9IsBuiltInEE11DefinedTypeE]+0x4c): undefined reference to `QMetaType::registerNormalizedType(QByteArray const&, void ( )(void), void ()(void, void const), int, QFlags, QMetaObject const )'
tmp/ResultQueue.o: In function , QMetaObject const)'
tmp/moc_Window.o: In function `QMetaTypeIdQObject<QAction, 8>::qt_metatype_id()':
moc_Window.cpp:(.text._ZN18QMetaTypeIdQObjectIP7QActionLi8EE14qt_metatype_idEv[_ZN18QMetaTypeIdQObjectIP7QActionLi8EE14qt_metatype_idEv]+0xad): undefined reference to >::qt_metatype_id()':
moc_WebProfile.cpp:(.text._ZN11QMetaTypeIdI5QListI9QSslErrorEE14qt_metatype_idEv[_ZN11QMetaTypeIdI5QListI9QSslErrorEE14qt_metatype_idEv]+0x4f): undefined reference to `QMetaType::registerNormalizedType(QByteArray const&, void ()(void), void ()(void, void const), int, QFlags, QMetaObject const*)'
collect2: error: ld returned 1 exit status
make[1]: ** [build/Track-o-Bot] Error 1
make: [release] Error 2`
make
i get the following error:(130) frozen_byte@frozen-nix ~/T/track-o-bot> make -s tmp/Hearthstone.o: In function
Hearthstone::LogConfigPath() const': Hearthstone.cpp:(.text+0x1ca): undefined reference toQString::toUtf8_helper(QString const&)' tmp/Hearthstone.o: In function
Hearthstone::ReadAgentAttribute(char const) const': Hearthstone.cpp:(.text+0x5ff): undefined reference toQString::toUtf8_helper(QString const&)' tmp/WebProfile.o: In function
WebProfile::AuthPostJson(QString const&, QByteArray const&)': WebProfile.cpp:(.text+0x1345): undefined reference toQString::toLatin1_helper(QString const&)' WebProfile.cpp:(.text+0x14e0): undefined reference to
QString::toLatin1_helper(QString const&)' tmp/WebProfile.o: In functionWebProfile::UploadResult(QJsonObject const&)': WebProfile.cpp:(.text+0x1afb): undefined reference to
QJsonValue::stringDataFromQStringHelper(QString const&)' WebProfile.cpp:(.text+0x1b6f): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' tmp/Window.o: In function
Window::CreateTrayIcon()': Window.cpp:(.text+0x5cc): undefined reference toQString::toLower_helper(QString const&)' tmp/Autostart.o: In function
Autostart::SetActive(bool)': Autostart.cpp:(.text+0x443): undefined reference toQString::toUtf8_helper(QString const&)' Autostart.cpp:(.text+0x50d): undefined reference to
QString::toUtf8_helper(QString const&)' tmp/HearthstoneLogWatcher.o: In functionHearthstoneLogWatcher::CheckForLogChanges()': HearthstoneLogWatcher.cpp:(.text+0x3af): undefined reference to
QByteArray::trimmed_helper(QByteArray const&)' tmp/HearthstoneLogTracker.o: In functionHearthstoneLogTracker::HandleLogLine(QString const&)': HearthstoneLogTracker.cpp:(.text+0x703): undefined reference to
QString::trimmed_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0xba1): undefined reference toQString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x115d): undefined reference to
QString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x2471): undefined reference toQString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x2780): undefined reference to
QString::toUtf8_helper(QString const&)' tmp/HearthstoneLogTracker.o: In functionQString::toStdString() const': HearthstoneLogTracker.cpp:(.text._ZNK7QString11toStdStringEv[_ZNK7QString11toStdStringEv]+0x12): undefined reference to
QString::toUtf8_helper(QString const&)' tmp/HearthstoneLogTracker.o: In function `int qRegisterMetaType<std::vector<CardHistoryItem, std::allocatorResult::AsJson() const': ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x107): undefined reference to
QJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x1de): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x342): undefined reference to
QJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x539): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x613): undefined reference to
QJsonValue::stringDataFromQStringHelper(QString const&)' tmp/Local.o: In functionqt2cstr(QString const&)': Local.cpp:(.text+0xab): undefined reference to
QString::toLatin1_helper(QString const&)' tmp/moc_Window.o: In functionWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': moc_Window.cpp:(.text+0x1eb): undefined reference to
QMetaType::registerNormalizedType(QByteArray const&, void ()(void), void ()(void, void const), int, QFlagsQMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' tmp/moc_WebProfile.o: In function
WebProfile::qt_static_metacall(QObject*, QMetaObject::Call, int, void)': moc_WebProfile.cpp:(.text+0x23a): undefined reference toQMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' tmp/moc_WebProfile.o: In function
QMetaTypeId<QListMy qmake version:
frozen_byte@frozen-nix ~/T/track-o-bot> /opt/qt/5.5/gcc_64/bin/qmake -v QMake version 3.0 Using Qt version 5.5.0 in /opt/qt/5.5/gcc_64/lib
My Linux distribution:What is wrong with my QT?