I’ve tried bakeqtpi.bash script to generate an image with Qt5 following the instructions at http://qt-project.org/wiki/RaspberryPi_Beginners_guide both in build machines Ubuntu 12.04 32-bit and Debian Wheezy 64-bit and I get the same build failure:
.obj/release-shared/main.o: In function `dumpRecursive(QDir const&, QTextStream&)’:
main.cpp:(.text+0×3ea): undefined reference to `QDir::entryInfoList(QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const’
main.cpp:(.text+0×3ea): undefined reference to `QDir::entryInfoList(QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const’
main.cpp:(.text+0×45f): undefined reference to `QDir::QDir(QString const&)’
main.cpp:(.text+0×476): undefined reference to `QDir::~QDir()’
.obj/release-shared/main.o: In function `createProject(QString const&)’:
main.cpp:(.text+0×572): undefined reference to `QDir::currentPath()’
main.cpp:(.text+0×57f): undefined reference to `QDir::QDir(QString const&)’
main.cpp:(.text+0×5aa): undefined reference to `QDir::dirName() const’
main.cpp:(.text+0×5c6): undefined reference to `QFile::QFile()’
main.cpp:(.text+0×5ef): undefined reference to `QFile::open(_IO_FILE*, QFlags<QIODevice::OpenModeFlag>, QFlags<QFileDevice::FileHandleFlag>)’
main.cpp:(.text+0×699): undefined reference to `QFile::~QFile()’
main.cpp:(.text+0×6bf): undefined reference to `QDir::~QDir()’
main.cpp:(.text+0×74d): undefined reference to `QDir::QDir(QString const&)’
main.cpp:(.text+0×769): undefined reference to `QDir::~QDir()’
main.cpp:(.text+0×7d9): undefined reference to `QFile::setFileName(QString const&)’
It seems it can’t find the Qt libraries. Should I install qt5 libs on the build machine before running the script? I’ve already installed Qt5 SDK Beta 2.
↧