Rotate screen to portrait on QT (LCD 4D 7')

Hi,

I am able to rotate the screen using the following:

opkg install xf86-video-fbdev

xorg.conf is:

Section “Device”
Identifier “Frame Buffer”
Driver “fbdev”
Option “Rotate” “CW”
EndSection

But when I load my QT application, the screen do not rotate.
I am loading the app using:

pkill gdm
./App -qws

Any idea?

Regards

Run it without qws. Qws is a self-server mode. When you use x11 server then you don’t need the qws option

Hi,

If I run withou qws, i got this error:

root@beaglebone:~# ./App
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.

Thanks

How did you got qws working? Normally qt on Debian is not compiled with qws… Am I wrong?

Micka,

it depends on how you build Qt sources. There are a number of options and you should explicitly specify if you want QWS or X11 support. You can’t run applications built for QWS under X11 and vice versa

Hi,

Could you point me where should I modify the compilation to build for X11? I am using this tutorial:
http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/
Is it a flag on ./configure?

Best regards

Any solution on how to build for X11?

Anyone compiling QT for X11?

Regards,

By default in Ubuntu and Debian distribution, qt is compiled for x11…no need to compile it again…

Micka,

Hi Micka,

My project uses angstrom.
I think i have 2 options. Either compile for X11 or rotate the screen on QT.
I have been trying both without success.

Regards,

U should move on to Debian… Most of us use Debian. Angstrom… Well… See… No support…

Micka,

well, Angstrom has no support, but it is more tiny and strongly optimized for Cortex-A8 and therefore much faster than the generally compiled Debian. However Debian’s “apt-get install” is priceless for faster starting