This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about linking Qt Webkit lib provided by AM335x package



Hi, All,

My colleague downloaded an AM335x package to develop new GUI appllication base on it. This package includes tool chains, Qt library, and some application examples.

We tried to compile the application examples 'browser' provided by package with the tool chains. However, we got the following errors:

browserapplication.o: In function `BrowserApplication::historyManager()':
browserapplication.cpp:(.text+0x3b8): undefined reference to `QWebHistoryInterface::setDefaultInterface(QWebHistoryInterface*)'
browserapplication.o: In function `BrowserApplication::icon(QUrl const&) const':
browserapplication.cpp:(.text+0x940): undefined reference to `QWebSettings::iconForUrl(QUrl const&)'
browserapplication.o: In function `BrowserApplication::loadSettings()':
browserapplication.cpp:(.text+0xae4): undefined reference to `QWebSettings::globalSettings()'
browserapplication.cpp:(.text+0xaf8): undefined reference to `QWebSettings::fontFamily(QWebSettings::FontFamily) const'
browserapplication.cpp:(.text+0xb04): undefined reference to `QWebSettings::fontSize(QWebSettings::FontSize) const'
browserapplication.cpp:(.text+0xc10): undefined reference to `QWebSettings::setFontFamily(QWebSettings::FontFamily, QString const&)'
browserapplication.cpp:(.text+0xc48): undefined reference to `QWebSettings::setFontSize(QWebSettings::FontSize, int)'
browserapplication.cpp:(.text+0xc58): undefined reference to `QWebSettings::fontFamily(QWebSettings::FontFamily) const'
browserapplication.cpp:(.text+0xc64): undefined reference to `QWebSettings::fontSize(QWebSettings::FontSize) const'
browserapplication.cpp:(.text+0xd70): undefined reference to `QWebSettings::setFontFamily(QWebSettings::FontFamily, QString const&)'
browserapplication.cpp:(.text+0xda8): undefined reference to `QWebSettings::setFontSize(QWebSettings::FontSize, int)'
browserapplication.cpp:(.text+0xdf8): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
browserapplication.cpp:(.text+0xe78): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
browserapplication.cpp:(.text+0xf34): undefined reference to `QWebSettings::setUserStyleSheetUrl(QUrl const&)'
browserapplication.cpp:(.text+0xf44): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
browserapplication.o: In function `BrowserApplication::postLaunch()':
browserapplication.cpp:(.text+0x1374): undefined reference to `QWebSettings::setIconDatabasePath(QString const&)'
browserapplication.cpp:(.text+0x137c): undefined reference to `QWebSettings::setOfflineStoragePath(QString const&)'
browserapplication.o: In function `BrowserApplication::saveSession()':
browserapplication.cpp:(.text+0x1a70): undefined reference to `QWebSettings::globalSettings()'
browserapplication.cpp:(.text+0x1a78): undefined reference to `QWebSettings::testAttribute(QWebSettings::WebAttribute) const'
browsermainwindow.o: In function `BrowserMainWindow::slotToggleInspector(bool)':
browsermainwindow.cpp:(.text+0xab8): undefined reference to `QWebSettings::globalSettings()'
browsermainwindow.cpp:(.text+0xac4): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)' 

  • What SDK package are you using and QT version ?

    Have you mentioned (exported) the QT library path correctly ?

    http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT
    http://processors.wiki.ti.com/index.php/Building_Qt.
    http://processors.wiki.ti.com/index.php/Building_Qt_with_OpenGL_ES_accelerated_by_SGX
    http://processors.wiki.ti.com/index.php/Building_QT_Projects