Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2010-02

QT for arm-linux

10 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi All,

Is it possible to cross-compile the "qt4pas" dll for arm-linux? If yes: how to do?
(I already have an installation of Lazarus that cross-compiles for arm-linux)

Thanks!
Kjow

Den Jean
to Kjow
Kjow wrote
yes: how to do?

the binding is a Qt program (of type library).
Just use the Qt documentation for cross compiling.

Kjow
to Den Jean

2010/2/25 Den Jean :

On Thursday 25 February 2010 10:57:40 Kjow wrote: > yes: how to do? the binding is a Qt program (of type library). Just use the Qt documentation for cross compiling.

I'm sorry, but I'm a newbie in this... Can you link me some documentation to generate a libQt4Pas.so arm compatible?

Thanks!
Kjow

Den Jean
to Kjow
Kjow wrote
I'm sorry, but I'm a newbie in this... Can you link me some documentation to generate a libQt4Pas.so arm compatible?

http://lists.lazarus.freepascal.org/pipermail/qt/2010-January/001446.html

first know what platform :
http://qt.nokia.com/doc/4.5/qt-embedded-linux.html meaning if Qt provides window manager on framebuffer or x11 with some window manager is present on the embedded device.

for x11 use binding platform BINUX
otherwise use binding platform QTOPIA
(the QTOPIA name is for historic reasons, QWS would be better now, but I cannot rename every-time Qt renames things and QWS is not well known.

in the source code of Qt you will find conditional defines like Q_WS_QWS and Q_WS_X11.
See also: http://wiki.freepascal.org/Qt4_binding#Supported_Platforms

x11 -> use binding platform BINUX
qtopia -> use binding platform QTOPIA

make sure that in Qt4Pas.pro (the project file of the binding) the line DEFINES += $$PLATFORM
is changed into the used platform
e.g. DEFINES += QTOPIA

instead of system wide qt, use qt-embedded (you downloaded) and use proper qmake spec: so instead of running qmake, do /qt-embedded-linux-opensource-src-4.5.3/bin/qmake -spec qws/linux-arm-g++

this will make that arm-linux-gcc gets called. should be installed ofcourse

and then run make

regards,

Den Jean

Kjow
to Den Jean

2010/2/25 Den Jean :

Show quoted text 5 lines
first know what platform : http://qt.nokia.com/doc/4.5/qt-embedded-linux.html meaning if Qt provides window manager on framebuffer or x11 with some window manager is present on the embedded device. [cut]

Thank you very much!
I'm beginning to understand... it is almost clear, but I can't find where to download/how to install the "arm-linux-g++" cross compiler... it returns "make: arm-linux-g++: command not found".

Thanks,
Kjow

Nataraj S Narayan
to Kjow

Hi

Are you on libc or uclibc?

If uclibc toolchain, check out
http://www.eilers.net/index.php/projekte/opensps/78

regards

Nataraj

Kjow wrote 20 lines
2010/2/25 Den Jean : > first know what platform : > http://qt.nokia.com/doc/4.5/qt-embedded-linux.html > meaning if Qt provides window manager on framebuffer > or x11 with some window manager is present on the embedded device. > [cut] Thank you very much! I'm beginning to understand... it is almost clear, but I can't find where to download/how to install the "arm-linux-g++" cross compiler... it returns "make: arm-linux-g++: command not found". Thanks, Kjow _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
Kjow
to Nataraj S Narayan

2010/2/26 Nataraj S Narayan :

Show quoted text 10 lines
Hi Are you on libc or uclibc? If uclibc toolchain, check out http://www.eilers.net/index.php/projekte/opensps/78 regards Nataraj

Thanks!
How can I know which I need to use? I have a Kubuntu 9,10 i386, where are installed the latest svn revisions of Lazarus and FPC enabled to cross-compile to arm-linux (
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM ). I also have binutils-2.20 for arm-linux.

Thanks you,
Kjow.

Nataraj S Narayan
to Kjow

Is your target libc based or uclibc based? only you can tell.

regards

Nataraj

Kjow wrote 27 lines
2010/2/26 Nataraj S Narayan : > Hi > > Are you on libc or uclibc? > > If uclibc toolchain, check out > http://www.eilers.net/index.php/projekte/opensps/78 > > regards > > Nataraj Thanks! How can I know which I need to use? I have a Kubuntu 9,10 i386, where are installed the latest svn revisions of Lazarus and FPC enabled to cross-compile to arm-linux ( http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM ). I also have binutils-2.20 for arm-linux. Thanks you, Kjow. _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
Kjow
to Nataraj S Narayan

2010/2/26 Nataraj S Narayan :

Show quoted text 5 lines
Is your target libc based or uclibc based? only you can tell. regards Nataraj

Oh, ok... I think the target is uclibc, I need to develop on maemo 5/meego that are debian (arm) based with X11 + QT. I have read that for maemo it is needed uclibc > 9.28/9.29... So I would build arm-linux-g++ from uClibc-0.9.30.2 (
http://www.uclibc.org/downloads/ )

Can you help me to make it?

Thanks!
Kjow