Hi all,
I'm trying to cross-compile an application statically linked to Qt-Embedded (open-source license).
My host is Ubuntu Linux 32-bit on a PC. My target is Linux running on a ARM9.
I dowloaded Qt-embedded and built them using:
./configure -release -static -no-largefile -no-accessibility -embedded arm -xplatform qws/linux-arm-g++ -prefix <destinazione> -little-endian -no-mmx -no-3dnow -no-sse -no-sse2 -opensource -no-qt3support -no-webkit -no-openssl -silent -no-cups -no-opengl -qt-gfx-linuxfb
This is supposed to build a static version of QT libraries, isn't it ?
Then, I modified the mkspecs/common/g++.conf file, adding -static to QMAKE_LFLAGS.
However, when compiling the application, I get several errors:
Qt Code:
/home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtCore.a(qfsfileengine_unix.o): In function `QFSFileEngine::owner(QAbstractFileEngine::FileOwner) const': qfsfileengine_unix.cpp:(.text+0x7e4): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking qfsfileengine_unix.cpp:(.text+0x6a0): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtGui.a(qapplication_qws.o): In function `QWSDisplay::Data::flushCommands()': /home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtGui.a(qapplication_qws.o): In function `QWSDisplay::Data::flush()': /home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtGui.a(qapplication_qws.o): In function `QWSDisplay::Data::~Data()': /home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtGui.a(qapplication_qws.o): In function `QWSDisplay::Data::~Data()': /home/cloud/ev-sdk/rootfs/armle-fs/lib//libQtGui.a(qapplication_qws.o): In function `QWSDisplay::Data::waitForQCopResponse()':To copy to clipboard, switch view to plain text mode
Any help will be very appreciated.
Many thanks.
Bookmarks