Trouble building Qt-Embedded 4.8.3 using ARM Toolchain
Hello!
I've been building Qt-embedded for quite some time now using (arm-none-linux-gnueabi), but this time around I was faced with a nasty error when I tried to build Qt using the Raspberry Pi toolchain (armv6j-hardfloat-linux-gnueabi-), and I'd appreciate your help and insight on it. Steps taken:
changing
Code:
cat mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf
#
# qmake configuration for building with arm-none-linux-gnueabi-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = armv6j-hardfloat-linux-gnueabi-gcc
QMAKE_CXX = armv6j-hardfloat-linux-gnueabi-g++
QMAKE_LINK = armv6j-hardfloat-linux-gnueabi-g++
QMAKE_LINK_SHLIB = armv6j-hardfloat-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = armv6j-hardfloat-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = armv6j-hardfloat-linux-gnueabi-objcopy
QMAKE_STRIP = armv6j-hardfloat-linux-gnueabi-strip
load(qt_config)
and here's the config options:
Code:
./configure -prefix /usr/local/Trolltech/QtEmbedded-4.8.3-arm -embedded arm -release -opensource -qvfb -xplatform qws/linux-arm-gnueabi-g++ -nomake examples -nomake demos -no-qt3support -qt-gfx-linuxfb -qt-gfx-vnc -no-largefile -exceptions -no-accessibility -no-qt3support -no-sse2 -qt-zlib -no-gif -no-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-nis -no-cups -qt-kbd-qvfb -qt-mouse-qvfb -qt-mouse-pc -depths 16,32 -qt-kbd-linuxinput -qt-mouse-linuxinput
Finally here's the error:
Code:
gmake[1]: Entering directory `/home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/src/corelib'
/home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/bin/moc -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm codecs/qtextcodecplugin.h -o .moc/release-shared-emb-arm/moc_qtextcodecplugin.cpp
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
codecs/qtextcodecplugin.h:73: Error: Undefined interface
gmake[1]: *** [.moc/release-shared-emb-arm/moc_qtextcodecplugin.cpp] Error 1
gmake[1]: Leaving directory `/home/pluvius/src/4.8.3-arm/qt-everywhere-opensource-src-4.8.3/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] Error 2
I'd appreciate some help here, thank you :)
Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain
try this steps ..
clean your qt configuaration
export PATH=your compiler Path:$PATH
add -v option to your qt configure -v will shows log in this you can find what is happening ...
I hope it will solve your problem ...
Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain
Why not to choose some build system to do it for you? I can recommend Buildroot.
Cheers,
marek
Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain
Sorry for my late response, but thank you very much guys :), that solved my problem!
Re: Trouble building Qt-Embedded 4.8.3 using ARM Toolchain
I found I had to manually fixup my $PATH env var too like Qt/E page and unset $CC and $CXX when building qt 4.8 from source. Normally these are all set by our OE angstrom compiler when building SDK examples, but these had to be stripped when building full source tree.
One more item I ran into was with the 4.8.3 webkit option kept getting disabled by the configure script. I tracked this down to extra quotes in QMAKE_CXX setting which failed the gcc -dumpversion check. Don't know why the OE guys put their QMAKE_ vars all in quotes.