QT Application weird problem on beagleboard

Hello guys,

I’m having trouble with the QT Creator in Angstrom. I’m using ubuntu to deploy the application to beagleboard.

I follow this guide to cross compile to angstrom:

Then I created a new project (gui) and added -qws as argument to make qt application start in beaglebone. It started, but I’m having a weird issue.

I recorded my desktop to be easy to see.

My QT Creator and Project setup:

Weird problem after deploy:

Thanks!

I’m searching and I think I’m beggining to understand…
Angstrom uses X11 (X-window) system for desktop and QT Embedded has its own window system, so there’s the “bug”.

Am I right?

I’ve got the same issue… The problem is that Qt use a virtual framebuffer and your Angstrom use X11 … I tried to did this:

sudo service lxdm stop

(I use lxdm )… so it stop X11 and I can use the the virtual frame buffer without the conflict with X11 … But it doesn’t work well because the mouse pointer is shifted (I use a touch screen)…

So now I’m trying to cross compile Qt with X11 support (I mean without embedded arm option)… and I find this a bit difficult…

That´s what I’m up too. I´m trying to search a way to cross compile to X11.
If you find any solution, please post here. I´ll do the same, maybe a video guide.

I found that beagleboard has two qt demos. The proper qtdemo and qtdemoE. The qtdemo is launch over X11 and qtdemoE must be launched with -qws option. I couldn’t find anything about how qtdemo was made.

Did you try the tslib calibration solution? I still don’t have my LCD7. But theres a video (here) that shows how to calibrate.

Thanks for your answer. I didn’t try the tslib yet… Thanks for your link, I’ll have a look on it ^^

For the moment I tried to link X11 libs to an arm file system … I installed the libs on this file system with chroot and qemu solutions… Tell me if you want more information to do this…
I tried aslo to compile Qt entirely and directly in the arm file system, but I 've got an other issue…

I made a post about my try compiling Qt with X11:
https://groups.google.com/forum/?fromgroups=#!category-topic/beagleboard/software/edorvudP128

I think it’s a pity that there is no “How to” tutorial to make this …I guess we are not the only ones trying to do this…? I 'll make too a tutorial if I manage to do it…

Hi Allain,

what happens when you start your application without the -qws option?

In my opinions you only need this option when you are using a framebuffer device on the command line. But in your video you are already running an x-server.

It won’t start, it says:

`
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
QWSSocket::connectToLocalFile could not connect:: No such file or directory
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the “-qws” command-line option.

`

I used this setup for my QT applikation
http://treyweaver.blogspot.com.ar/2010/10/setting-up-qt-development-environment.html

Just needed to adapt for my compiler.
I don’t need the -qws option to run it in an X-Server.

Are you running an X-Server?
Is a Framebuffer device available?

Sorry but what you mean with X-Server?

I’m running gnome desktop with x11 (x window system).

In the tutorial, the last command line he says to use -qws for gui application.

By X-Server I meen X11.
My knowledge is that -qws is for runnning the applikation in a virtual framebuffer under X11. But I tested it an my laptop and the application ist running with and without the -qws option.
Next time I’ll try it on my BBB.

I guess that TI Image for LCD is broken. (it comes with alot crap installed!). Installed the beagleboard’s one and it’s all going very well.

I decided I’ll not use X11 in my board (for my actual project it’s not interesting, also saves a good chunk of beagleboard ram). Unfortunaly I don’t have time to research why it’s not working on X11, but I guess that with version 5.2.1 will (probably) work. - they (Qt team) abandoned the QWS to become a abstract platform application, so yeah.

I still will do some tutorials about my learn to help everyone in Qt and Beagleboard community. Probably I’ll make this week.

Thank you guys!

Thanks for the tuturials ^^

I use qws for the moment… I still don’t have any idea why I don’t manage to use X11 …arrrgghhhh…