QT or C++ ?

Ivan Jäger
Hey everyone

I'm a happy owner of the Mini240 3.5" 256MB and have the following things
working:

- GPE-Image booting from SD-Card
- Compiled rt2870_sta and connected to my WLAN via wpa_supplicant
- Compiled Apache2 and PHP5
- Controlling K8055 Board via PHP

After all that i want to launch a browser in fullscreen mode displaying my
Webinterface. Fennec runs fast but there is no fullscreen. All other
browsers doesn't work or are to slow.

Now i have to write my own Fullscreen-Program.

But what should i use QT or C++?
Which is better / easier for my Case?

Thanks.

Fabien
QT IS C++ !

It's just a framework to make C++ easier to use.

Anyways, you should go for QT.

davef
Is Arora a full-screen browser?  Did a search and it seems it is.

"Nandy" at this page:
http://billforums.station51.net/viewtopic.php?f=8&t=15&start=80
has a <test.jffs2> file with the WebKit part of Qt plus Aroroa in it.  A
page or two back he has a kernel that works with it.

If you read the rest of the thread you will see there has been a network
issue, which seems to be solved but with a remaining Arora lock-up problem.

It would be great to have another pair of eyes trying to sort this out!

Cheers,
Dave

davef
PS.

If you don't make any changes to his rootfs Arora does work, you just can't
go to any websites.

Dave

Ivan Jäger
Thank you very much for the answers.

I've downloaded the uImage and the jffs2. I will test it soon and if it
works i will try to get it working on my rootfs.

But i think it wouldn't be bad for me to learn QT and C++ :)

I will let you know what i found out and sorry for my bad english.

greets

ivan

Ivan Jäger
Today i have tried the rootfs and kernel from Nandy.

Arora looks nice and it's very fast, but there is no real fullscreen.

I've got the same problem. At the first start i was very happy because i
was able to open google.ch but after i clicked on one link arora freezed.

Did anyone tried the same thing on a ext3 rootfs?

I think i'm going to write a small fullscreen-gui which can switch on / off
relais over the K8055-Board.

Is anyone interested when i'm finished?

greets

ivan

davef
> Did anyone tried the same thing on a ext3 rootfs?

My current thinking is that there is not enough RAM to run the version of
Arora that I have.  I am going to try going back to some older versions to
see I can get one of the to work on the 64M RAM mini2440.

Having the rootfs on an SD card doesn't help me.  Please correct me, if I
have this wrong.

Dave

Ivan Jäger
Not enough RAM? I'm not really sure.

When i startup my ext3 rootfs. It start's up an Xserver, matchbox, Apache2,
wpa-supplicant and Fennec.

In htop i see that it uses 35 MB of RAM.

I will try to create my own browser using qt-webkit.

Ivan Jäger
Finally got my fullscreen-browser working. 

I had to create a Project with Qt Creator and compile it trouth bitbake.
It's a very simple Testbrowser. There are no Toolbar and no Buttons. But it
just works fine to display my Webinterface.

The only problem i have is the right export to a ts_calibration-file and
use it with my application.

If somebody is interested i can attach the Project.

davef
Ivan,

I managed to get Arora working by following this tutorial:
http://billforums.station51.net/viewtopic.php?f=1&t=5
and putting everything on a SD card.  

This was a month or so ago and from my fading memory I think speed had
dropped noticeably.

If your project can be run on a 64M machine without a SD card and can
display CSS content I would be interested.  Does it need <webkit>?

If you attached the project, would that include a file system to run it on
or ?

Regards,
Dave

Ivan Jäger
Well my rootfs is 270MB big and im booting it from a SD card. But it loads
Google News without needing a swap partition.

I simply inserted a WebView in QT Creator and resized it. So i think it
does need Webkit.

My JFFS2-Image created with bitbake is 68MB. It includes QT4 and TSLIB.

Maybe i can optimize my recipe for a smaller image and also include the
project. I will give it a try.

Should this settings posted from "peter a" work?

export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
export QWS_DISPLAY=LinuxFB:mmWidth=232:mmHeight=142

At the moment i just can't calibrate correctly. My Mouse is always
inverted.

davef
< My Mouse is always inverted.

Have you done a search?  Other people have had this problem. There are some
quite long threads on here, but comments about this problem are possibly
quite well "buried".

Sorry I can't check your export variables until I get home.

Don't spend too much effort if I am the only one interested in the project.

Dave

Ivan Jäger
Attachment: fullscreen_browser.tar.gz (1.95 KB)
Hey dave,

I've searched many hours and i still got no solution. But i think i just
need a little more time trying different settings.

You are right it makes no sense if i bitbake an image for you including the
project because the "setUrl" in Webview is hardcoded.

I write down my steps and attach the source code:

1. Setup Bitbake like describe here:
http://www.electronics.diycinema.co.uk/embedded/mini2440/bitbaking-the-k...

2. Bitbake this Recipe (mini2440-qt4-embedded.bb):

#Angstrom bootstrap image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

DEPENDS =  "task-base-extended \
esekeyd u-boot-utils tslib \
i2c-tools i2c screen nfs-utils \
directfb mtd-utils \
"

IMAGE_INSTALL = "task-base-extended \
${ANGSTROM_EXTRA_INSTALL} \
qt4-embedded \
esekeyd u-boot-utils tslib-calibrate tslib-tests \
i2c-tools i2c screen rsync nfs-utils-client \
directfb mtd-utils \
pango htop \
"

export IMAGE_BASENAME = "mini2440-qt4-embedded-image"
IMAGE_LINGUAS = ""

inherit image

3. Setup a Subversion Server:
http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-min...

4. Create a Recipe for the attached project:
http://bec-systems.com/site/501/best-practices-for-building-qt-applicati...

5. Bitbake the Project

davef
Ivan,

Thank you for writing down the procedure.

I have never used bitbake, so this project will have to wait until I am
ready for another BIG challenge.  I believe getting set up on bitbake takes
a fair bit of effort.  I have just bought a big fast PC, so I am NOT
constrained in that area.

So, you didn't find any helpful suggestions on getting the inverted mouse
problem sorted ?

Kind regards,
Dave

Ivan Jäger
Yes, i have spent a lot of time getting bitbake to create an image and
especially to compile my project.

Just a week ago i installed the newest 32-Bit Debian on my Vmware-Server so
i can use my Bitbake-Installation everywhere.

You don't need much time to get bitbake working if you follow doug's howto.
But i suggest you to use a seperate 32-Bit Debian.

This is the best thread i found: http://www.friendlyarm.net/forum/topic/853

I realized that i have no /dev/input/ts. Also i don't know where my
TSLIB_PLUGINDIR should be. My config is under /etc/ts.conf

If i run this export QWS_MOUSE_PROTO=tslib:/dev/input/event1 the
Touchscreen doesn't work anymore. Maybe i should try the newer tslib like
fatbrain described.

There must be something i do wrong. The calibration worked perfectly in
Nandy's image.

greets

ivan

Ivan Jäger
I followed Bill's Howto: 
http://billforums.station51.net/viewtopic.php?f=8&t=15

Now the touchscreen works perfectly in Fluid Launcher. It seems that it is
no good idea to compile tslib and Qt trough bitbake.

Thank you Bill and Dave

davef
Ivan,

I have stated another thread on <Full-screen browser>, would appreciate
your comments.

Dave