Problems making QT

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problems making QT

4,023件の閲覧回数
moidom
Contributor II

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.

0 件の賞賛
4 返答(返信)

887件の閲覧回数
c_morini
Contributor I

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

0 件の賞賛

887件の閲覧回数
SamB
Contributor I

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

0 件の賞賛

887件の閲覧回数
bhakrim
Contributor I

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.

#include <qapplication>
#include <qlabel>
int main(int argc, char *argv[])
{
 QApplication app(argc, argv);
 QLabel *label = new QLabel("Linux is wonderful", 0);
 app.setMainWidget(label);
 label->show();
 return app.exec();
}
When I compiled this program I am getting error like this
QT.cpp:1:24: error: qapplication: No such file or directory
QT.cpp:2:18: error: qlabel: No such file or directory
What are the settings that I have to make to make above program compile and run
Thanks & Regards
Mohan Bhakri
0 件の賞賛

887件の閲覧回数
moidom
Contributor II

Hi¡

 

Thanks by your replies.

 

I succesfully crosscompile QT 4.6.1

 

Regards¡

0 件の賞賛