| Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hello Guillaume,
thanks for your quick reply. Here is the code.
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[]){
QApplication app(argc, argv);
QPushButton myWidget("prova");
myWidget.show();
return app.exec();
}
Really looking forward to hearing from your,
thanks again,
Giorgio
>
> Hello !
>
> It is maybe an "error" in your code... Could you send your code by mail ? I
> (we) could test it and maybe find something ...
>
> Cheers,
>
> Guillaume
>
>
>
> -------- Message d'origine--------
> De: Giorgio Cardarelli [mailto:giorgio.cardarelli@xxxxxxxxxxx]
> Date: mar. 04/03/2008 16:36
> À: qtopia-interest@xxxxxxxxxxxxx
> Objet : No output on framebuffer
>
> Hello list,
>
> I've prepared a small application with a single QPushButton that
> does nothing. I can compile the program with no errors, but
> when I run it (./qt-test -qws) only the green "desktop" background
> and the mouse cursor is displayed, while the button is not painted.
> It seems like I can actually see what lies "under" the qtopia
> application (in my case the linux console from where I started my
> test app).
>
> I can give some further informations: I'm using an ARM PXA320 cpu,
> qtopia-core-opensource-src-4.3.2, cross-compiling everything with
> an arm-linux-gxx tested toolchain using no particular compiling
> flags. I'm working with a linuxfb device, and the test program provided
> with qtopia (examples/qtopiacore/framebuffer) works perfectly with
> both 8bpp and 16bpp.
>
> Where am I wrong? Can anybody help me?
>
> Many thanks,
> Giorgio
>
> --
> To unsubscribe - send "unsubscribe" in the subject to
> qtopia-interest-request@xxxxxxxxxxxxx
>
>
>
>
--
[ signature omitted ]
This code is ok for me...
How do you compile it ?
I suppose that you did like this :
qmake -project
qmake
make
with the qmake of qtopia (for cross compile)
I tested this code on the board AT91SAM9261-EK (arm based) and on my desktop computer and it is working well (see the shot in attachment)
Maybe the Qtopia libs are not installed correctly... or try the latest release of qtopia core. I run qtopia-core-opensource-src-4.3.4 on my board.
Cheers,
Guillaume
-------- Message d'origine--------
De: Giorgio Cardarelli [mailto:giorgio.cardarelli@xxxxxxxxxxx]
Date: mer. 05/03/2008 09:10
À: GARDET Guillaume; qtopia-interest@xxxxxxxxxxxxx
Objet : Re: RE : No output on framebuffer
Hello Guillaume,
thanks for your quick reply. Here is the code.
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[]){
QApplication app(argc, argv);
QPushButton myWidget("prova");
myWidget.show();
return app.exec();
}
Really looking forward to hearing from your,
thanks again,
Giorgio
>
> Hello !
>
> It is maybe an "error" in your code... Could you send your code by mail ? I
> (we) could test it and maybe find something ...
>
> Cheers,
>
> Guillaume
>
>
>
> -------- Message d'origine--------
> De: Giorgio Cardarelli [mailto:giorgio.cardarelli@xxxxxxxxxxx]
> Date: mar. 04/03/2008 16:36
> À: qtopia-interest@xxxxxxxxxxxxx
> Objet : No output on framebuffer
>
> Hello list,
>
> I've prepared a small application with a single QPushButton that
> does nothing. I can compile the program with no errors, but
> when I run it (./qt-test -qws) only the green "desktop" background
> and the mouse cursor is displayed, while the button is not painted.
> It seems like I can actually see what lies "under" the qtopia
> application (in my case the linux console from where I started my
> test app).
>
> I can give some further informations: I'm using an ARM PXA320 cpu,
> qtopia-core-opensource-src-4.3.2, cross-compiling everything with
> an arm-linux-gxx tested toolchain using no particular compiling
> flags. I'm working with a linuxfb device, and the test program provided
> with qtopia (examples/qtopiacore/framebuffer) works perfectly with
> both 8bpp and 16bpp.
>
> Where am I wrong? Can anybody help me?
>
> Many thanks,
> Giorgio
>
> --
> To unsubscribe - send "unsubscribe" in the subject to
> qtopia-interest-request@xxxxxxxxxxxxx
>
>
>
>
Attachment:
Attachment:
test.png
Description: test.png
Message 3 in thread
hi !
I do not really use buildroot... I just use the cross-compile tools... because buildroot have always problems... ;p
To begin add the buildroot cross compile tools to the PATH :
export PATH=$PATH:/<path_to_buildroot>/build_arm/staging_dir/bin/
(do it in each konsole/Terminal or add it to your ~/.profile or ~/.bashrc)
Then you have to download the source package, untar it, etc...
Do that :
wget ftp://ftp.trolltech.com/qt/source/qtopia-core-opensource-src-4.3.4.tar.gz
gunzip qtopia-core-opensource-src-4.3.4.tar.gz
tar xvvf qtopia-core-opensource-src-4.3.4.tar
mkdir build_dir_qtopia_4.3.4
cd build_dir_qtopia_4.3.4
../qtopia-core-opensource-src-4.3.4/configure -prefix <install_path> -no-sxe -embedded arm -xplatform qws/linux-arm-g++
make su -c 'make install'
If you want to have the support of the touchscreen through tslib, add the following options to the configure :
-qt-mouse-tslib -L <path_to_lib_of_tslib> -I <path_to_include_of_tslib>
it should be ok !
Cheers,
Guillaume
-------- Message d'origine--------
De: Ulf Samuelsson [mailto:ulf.samuelsson@xxxxxxxxx]
Date: mer. 05/03/2008 11:22
À: GARDET Guillaume; Giorgio Cardarelli; qtopia-interest@xxxxxxxxxxxxx
Objet : Re: RE : No output on framebuffer
I have been trying to build Qtopia under Buildroot, (buildroot.uclibc.org)
but that always fails.
It looks like the buildprocess mixes up host tools and native tools.
Anyone has scripts/instructions that succeeds building for AT91SAM9's
which they care to share with me?