BOSSoNe0013 / track-o-bot

The friendly Hearthstone Tracker (Linux port)
https://trackobot.com
GNU Lesser General Public License v2.1
39 stars 6 forks source link

Error while compiling. #23

Closed Frozen-byte closed 8 years ago

Frozen-byte commented 8 years ago

While Compiling with make i get the following error: (130) frozen_byte@frozen-nix ~/T/track-o-bot> make -s tmp/Hearthstone.o: In functionHearthstone::LogConfigPath() const': Hearthstone.cpp:(.text+0x1ca): undefined reference to QString::toUtf8_helper(QString const&)' tmp/Hearthstone.o: In functionHearthstone::ReadAgentAttribute(char const) const': Hearthstone.cpp:(.text+0x5ff): undefined reference to QString::toUtf8_helper(QString const&)' tmp/WebProfile.o: In functionWebProfile::AuthPostJson(QString const&, QByteArray const&)': WebProfile.cpp:(.text+0x1345): undefined reference to QString::toLatin1_helper(QString const&)' WebProfile.cpp:(.text+0x14e0): undefined reference toQString::toLatin1_helper(QString const&)' tmp/WebProfile.o: In function WebProfile::UploadResult(QJsonObject const&)': WebProfile.cpp:(.text+0x1afb): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' WebProfile.cpp:(.text+0x1b6f): undefined reference to QJsonValue::stringDataFromQStringHelper(QString const&)' tmp/Window.o: In functionWindow::CreateTrayIcon()': Window.cpp:(.text+0x5cc): undefined reference to QString::toLower_helper(QString const&)' tmp/Autostart.o: In functionAutostart::SetActive(bool)': Autostart.cpp:(.text+0x443): undefined reference to QString::toUtf8_helper(QString const&)' Autostart.cpp:(.text+0x50d): undefined reference toQString::toUtf8_helper(QString const&)' tmp/HearthstoneLogWatcher.o: In function HearthstoneLogWatcher::CheckForLogChanges()': HearthstoneLogWatcher.cpp:(.text+0x3af): undefined reference toQByteArray::trimmed_helper(QByteArray const&)' tmp/HearthstoneLogTracker.o: In function HearthstoneLogTracker::HandleLogLine(QString const&)': HearthstoneLogTracker.cpp:(.text+0x703): undefined reference toQString::trimmed_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0xba1): undefined reference to QString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x115d): undefined reference toQString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x2471): undefined reference to QString::toUtf8_helper(QString const&)' HearthstoneLogTracker.cpp:(.text+0x2780): undefined reference toQString::toUtf8_helper(QString const&)' tmp/HearthstoneLogTracker.o: In function QString::toStdString() const': HearthstoneLogTracker.cpp:(.text._ZNK7QString11toStdStringEv[_ZNK7QString11toStdStringEv]+0x12): undefined reference toQString::toUtf8_helper(QString const&)' tmp/HearthstoneLogTracker.o: In function `int qRegisterMetaType<std::vector<CardHistoryItem, std::allocator > >(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 Result::AsJson() const': ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x107): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x1de): undefined reference to QJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x342): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x539): undefined reference to QJsonValue::stringDataFromQStringHelper(QString const&)' ResultQueue.cpp:(.text._ZNK6Result6AsJsonEv[_ZNK6Result6AsJsonEv]+0x613): undefined reference toQJsonValue::stringDataFromQStringHelper(QString const&)' tmp/Local.o: In function qt2cstr(QString const&)': Local.cpp:(.text+0xab): undefined reference toQString::toLatin1_helper(QString const&)' tmp/moc_Window.o: In function Window::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': moc_Window.cpp:(.text+0x1eb): undefined reference toQMetaType::registerNormalizedType(QByteArray const&, void ()(void), void ()(void, void const), int, QFlags, 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 QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' tmp/moc_WebProfile.o: In functionWebProfile::qt_static_metacall(QObject*, QMetaObject::Call, int, void)': moc_WebProfile.cpp:(.text+0x23a): undefined reference to QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' tmp/moc_WebProfile.o: In functionQMetaTypeId<QList >::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`

My 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:

NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"`

What is wrong with my QT?

PlasmaPower commented 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.

Frozen-byte commented 8 years ago

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!