Hi everybody,
I have just started to work with an ADS5121 Rev 4.1. I downloaded and installed ltib succesfully on my Ubuntu 9.10. I tried to compile QT in these two ways, both unsuccesfully:
OPTION 1) Using ltib, I added Qtopia 4 package. Compile process starts but after a minutes my virtual maching gets freezed.
OPTION2 ) I downloaded qt-everywhere-opensource-src-4.6.1. To crosscompile it, I followed this steps:
Configuration:
./configure \
-embedded powerpc -xplatform qws/linux-powerpc-g++ \
-prefix /home/user/Trolltech/Qt_4.6.1_powerpc -big-endian -depths 24 \
-qt-zlib -qt-freetype -qt-libjpeg -qt-libpng -no-gif -no-libtiff \
-no-qt3support -no-glib -nomake demos -nomake examples -no-webkit \
-L/media/ltib/ltib-mpc5121ads-20090602/rootfs/usr/lib -I/media/ltib/ltib-mpc5121ads-20090602/rootfs/usr/include
Edit qmake.conf
..
QMAKE_CC =powerpc-e300c3-linux-gnu-gcc
QMAKE_CXX =powerpc-e300c3-linux-gnu-c++
QMAKE_LINK = powerpc-e300c3-linux-gnu-c++
QMAKE_LINK_SHLIB =powerpc-e300c3-linux-gnu-c++
QMAKE_AR = powerpc-e300c3-linux-gnu-ar cqs
QMAKE_OBJCOPY = powerpc-e300c3-linux-gnu-objcopy
QMAKE_STRIP = powerpc-e300c3-linux-gnu-strip
..
I changed path to point to toolchain:
PATH=$PATH:/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin
Compile process starts, but after a minutes a have this problem:
..
riptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared-emb-powerpc -o obj/release/Interpreter.o ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp
{standard input}: Assembler messages:
{standard input}:7782: Warning: end of file not at end of a line; newline inserted
{standard input}:8613: Error: syntax error; found `
powerpc-e300c3-linux-gnu-c++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [obj/release/Interpreter.o] Error 1
Anybody who has succesfully crosscompile QT maybe could help me?
Regards, mdm.
hi,
i found the same QTOPIA's problems with IMX51.
i solved the trouble installing qt for embedded "qt-embedded-linux-opensource-src-4.5.2"
to configure i write the command line (but you can customize it yourself)
./configure -prefix /qt -embedded arm -shared -opensource -no-opengl -no-cups -qt-libjpeg -depths 32 -little-endian -nomake demos -nomake examples
but before i modify the file "./mkspecs/default/qmake.conf" with the correct compiler sw name
# qmake configuration for building with arm-linux-g++
#
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-none-linux-gnueabi-gcc
QMAKE_CXX = arm-none-linux-gnueabi-g++
QMAKE_LINK = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = arm-none-linux-gnueabi-strip
load(qt_config)
after this i exec "make" and "make install" and everythink works ok
Hi !
I successfully was able to compile QT 4 with the i.MX51 L2.6.31_09.12.10 revision BSP (still haven't tried to make it run).
Here is how I did :
1) I use a fully updated Ubuntu 9.04
2) Several packages have to be installed. To compile QT4, you have to add following packages to your Ubuntu : uuid-dev, qt3-dev-tools-embedded, libxtst-dev
3) With LTIB, you need to install at least the following packages : alsa-lib, libpng, gst-plugins-base and of course QT 4
Then run ./ltib. QT4 source code has to be downloaded from bitshrine.org, so please make sure your computer is connected to internet, and wait. Probably you thought it was frozen, but maybe it was downloading... The file is over 100 MB.
Then wait...
Hope this helps
Sam
Hi,
Thank you SAM
I was able to compile Qt4 as per your instructions.
I was able see QT application running on IMX51.
I would like to run a sample qtopia program on IMX51.
Here I am pasting sample code given in Qtopia website.
Hi¡
Thanks by your replies.
I succesfully crosscompile QT 4.6.1
Regards¡