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

Mailing lists / qt / 2010-02
10 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Kjow wroteyes: how to do?
the binding is a Qt program (of type library).
Just use the Qt documentation for cross compiling.
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
Kjow wroteI'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
2010/2/25 Den Jean :
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
Hi
Are you on libc or uclibc?
If uclibc toolchain, check out
http://www.eilers.net/index.php/projekte/opensps/78
regards
Nataraj
2010/2/26 Nataraj S Narayan :
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.
Is your target libc based or uclibc based? only you can tell.
regards
Nataraj
2010/2/26 Nataraj S Narayan :
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
http://maemo.org/development/
scratchbox environment to compile Qt code for maemo (N900) Binding is Qt code.