I am a nebee in Linux/Qt/Arm domaim I have recently cross compiled qt 4.7.0 for Tiny 6410. I ported the compiled libraries of qt as well as ts lib onto my tiny 6410. I had commented out the lines to trigger qtopia in /etc/init.d/rcS I had made changes to profile file as well and my app (compiled on my host with the cross qmake, runs perfectly alright on my tiny 6410 when I run it from its directory. i.e. : #cd /mnt/demos/customapp #./customapp -qws However, when I add a line (my executable path) to the rcS file (/etc/init.d/) as: /mnt/demos/customapp/customapp -qws & my app runs, i.e. I can see my application MainWindow on the tiny 6410 lcd but no touch works the application is frozen. I am guessing this is happening because the OS is not able to initialize my custom ts lib , mouse proto etc (set in profile file) before it triggers my application. please help me out here.
qt app not running properly from rcS
When you run your app from the command line, the shell already has included some environment variables the tslib depends on (for example to know the device node it must open). When you run the same app from the init process, these variables are not set yet.
Hi Juergen, Thanks for your post. Can you elaborate a little more here. What more needs to be done in the rcS file before I trigger my qt application so that the shell includes these environment variables (specific to my qt and tslib compilation).
I solved the issue by adding the following line in the /etc/rcS source /etc/profile before /mnt/demos/customapp/customapp -qws & This loads all the environment variables. Now the qt application loads properly with touch working.