ts-7000
[Top] [All Lists]

[ts-7000] Re: Qt/Embedded - almost there!

To:
Subject: [ts-7000] Re: Qt/Embedded - almost there!
From: "Doug" <>
Date: Wed, 19 Aug 2009 03:51:46 -0000
--- In  Scott Zimmerman <> wrote:
> I'm booted over NFS and I see all the files.  I can actually run
> ts_calibrate and ts_test and my helloworld program but they all error out.
> :(

That's a good sign though -- it means the EABI libraries you copied from 
sys-root are working :)

> Here's what I'm seeing:
> 
> ./ts_calibrate
> ts_open: No such file or directory

I can't remember for sure, but we have seen this one before when we were 
setting everything up. This might be because it can't open event0 or fb0 (as 
you mention below), since the calibration program needs to open both. It might 
also be messing up trying to open the ts.conf file -- make sure that your 
ts.conf file is actually in /usr/etc/ts.conf

> ./ts_test
> /dev/input/event0: No such file or directory
> 
> ./qhw #My Qt Hello World
> ./qhw: error while loading shared libraries: libts-0.0.so.0: cannot open
> shared object file: No such file or directory

This is because the path to tslib is not in your LD_LIBRARY_PATH environment 
variable. Example on how to fix this:

export LD_LIBRARY_PATH=/usr/local/linux-arm/lib:$LD_LIBRARY_PATH

But if you don't have a fb0 device, it'll still error out because it can't open 
the frame buffer. So we need to figure out why fb0 isn't there.

> I have verified that all the libraries are where they are supposed to be in
> the filesystem, so it looks like I'm blowing the environment variable for
> TS.
> 
> Here's what I have:
> 
> #added this for tslib
> export TSLIB_TSEVENTTYPE=H3600
> export TSLIB_CONSOLEDEVICE=none
> export TSLIB_FBDEVICE=/dev/fb0
> export TSLIB_TSDEVICE=/dev/input/event0
> export TSLIB_CALIBFILE=/usr/etc/pointercal
> export TSLIB_CONFFILE=/usr/etc/ts.conf
> export TSLIB_PLUGINDIR=/usr/local/linux-arm/lib/ts
> export QWS_MOUSE_PROTO=Tslib
> 
> Here is my ts.conf file
> module_raw input
> module pthres pmin=1
> module variance delta=30
> module dejitter delta=100
> module linear

Those both look good to me.

> I looked in my /dev directory and I don't see the fb0 device or the
> input/event0 file.  Also, there is no /usr/etc/pointercal file (I'm assuming
> this one gets created by ts_calibrate).

Yeah, the pointercal file will get created by ts_calibrate. Interesting that 
you don't have fb0. Try typing:

mdev -s

and see if it appears. After loading a module you have to use that command for 
the device to appear in /dev

Also type lsmod to make sure that the ts framebuffer module is loaded. Maybe it 
got removed in the process of changing your rootfs around. If not you might 
need to download the modules for the 7390 and put them somewhere where you can 
load them with insmod. The same would go for the touchscreen. One of the 
scripts in the fastboot initrd (in /lbin I think) loads that stuff if you need 
to see which modules need to be loaded. The /linuxrc-fastboot script might also 
give some hints.

> Any clues?  I know I had to build the framebuffer stuff to get Qt to
> compile, but do I need to rebuild it on the 7390 board to get an fb0
> device?

Naw, you'll be fine with the cross compiler. The lack of fb0 just means either 
the kernel module isn't loaded or it hasn't appeared in /dev yet because mdev 
-s needs to be run. It's one of the two...

You're completely safe running it from the console.

BTW, when you run a Qt app, you need to run it with the -qws parameter to 
create a Qt window server. If you're going to run more than one Qt app at the 
same time, you only need to use -qws on one of the apps, but that app has to 
stay open while the other ones are open too.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU