Problem with Qt and Mouse on BeagleBoard

I can't seem to get my mouse to work. I can see that the mouse is
working in Angstrom by "cat /dev/input/mouse0 | hexdump ; this shows
the mouse data as I move it.

But when I set:
export QWS_MOUSE_PROTO='IntelliMouse:/dev/input/mouse0'
and then run the program
./MyProgram -qws
the cursor will not move when I move the mouse.

I have substituted 'Microsoft' for IntelliMouse and /dev/input/event2
for /dev/input/mouse0 and it still fails.

I used the following config when building qt on my Ubuntu box:

./configure -prefix /opt/qt-arm -embedded arm -platform /qws/linux-x86-
g++ -xplatform qws/linux-DM3730-g++ -depths 16,24,32 -no-mmx -no-3dnow
-no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-
openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-
linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -little-endian

Please Help!

I can't seem to get my mouse to work. I can see that the mouse is
working in Angstrom by "cat /dev/input/mouse0 | hexdump ; this shows
the mouse data as I move it.

But when I set:
export QWS_MOUSE_PROTO='IntelliMouse:/dev/input/mouse0'
and then run the program
./MyProgram -qws
the cursor will not move when I move the mouse.

I have substituted 'Microsoft' for IntelliMouse and /dev/input/event2
for /dev/input/mouse0 and it still fails.

I compiled QT for BeagleBoard with:
./configure -opensource -confirm-license -no-qt3support -release -
nomake examples -nomake demos -embedded arm -little-endian -xplatform
qws/linux-arm-g++ -prefix /opt/qt4-4.6.3-beagle-shared-vnc -qt-gfx-vnc

and I see the mouse pointer without problem.

Are you using the framebuffer or X?

framebuffer.
I'm using Angstrom image downloaded from http://www.angstrom-distribution.org/narcissus/
.

I am also using a narcissus image. I am using a: BeagleBoard,
Simple, Console image

I did not download any of the "X" stuff, didn't think I needed it.
How about you?

I selected this:

Current configuration:
Machine: beagleboard
Image name: random-91140962
Image type: tbz2

Additional Packages:

alsa-utils
alsa-utils-aconnect
alsa-utils-alsaconf
alsa-utils-alsactl
alsa-utils-alsamixer
alsa-utils-amixer
alsa-utils-aplay
alsa-utils-aseqdump
alsa-utils-aseqnet
alsa-utils-iecset
alsa-utils-speakertest
angstrom-uboot-scripts
apache2
dosfstools
dropbear
e2fsprogs
e2fsprogs-mke2fs
kernel-modules
libgles-omap3
libgles-omap3-rawdemos
ntp
ntpclient
ntpdate
opencv-samples
qt4-embedded-plugin-gfxdriver-gfxpvregl
samba
u-boot
wireless-tools
x-load

All I can say is that mouse works with the prebuilt qt/e and qt/x11 for angstrom.

Changing the configuration file to what you had fixed the issue!
Wonder why? Where did you get this configuration file?

I got mine directly from the TI's Building QT web site.

Thanks for your help.

A lot of tests... :slight_smile:

All I can say is that mouse works with the prebuilt qt/e and qt/x11 for angstrom.

Never understood why the Angstrom toolchain is for Qt 4.6.2, but the
prebuilt qt/e packages are for 4.6.3.

Can you tell me what packages I need install to get just the Qt
Libraries, and not all of the tools; then I will try it again.

Thanks,

All I can say is that mouse works with the prebuilt qt/e and qt/x11 for angstrom.

Never understood why the Angstrom toolchain is for Qt 4.6.2, but the
prebuilt qt/e packages are for 4.6.3.

4.6.2 and 4.6.3 are completely compatible, so there's little point in updating the toolchain just to make people feel good.

Can you tell me what packages I need install to get just the Qt
Libraries, and not all of the tools; then I will try it again.

opkg update && opkg list | grep libqt

Something I must be missing then.

in the /usr/lib directory all of the qt embbedded libraries have names
like libQtNetworkE.so.4.6.3 but my executable that I made on my Ubuntu
box needs a file with a name like libQtNetwork.so.4. So I do
something like this: "ln -s ibQtNetworkE.so.4.6.3 libQtNetwork.so.4"
for all the libraries that I need. Start my executable and nothing
happens; program does not start and no error messages.

What gives?

Something I must be missing then.

in the /usr/lib directory all of the qt embbedded libraries have names
like libQtNetworkE.so.4.6.3 but my executable that I made on my Ubuntu
box needs a file with a name like libQtNetwork.so.4. So I do
something like this: "ln -s ibQtNetworkE.so.4.6.3 libQtNetwork.so.4"
for all the libraries that I need. Start my executable and nothing
happens; program does not start and no error messages.

What gives?

Angstrom uses QT_LIB_INFIX to make qt/e and qt/x11 parallel installable. The env script in the SDK sets up the needed qmake vars, as do OE and the native qt toolchain.

Ok, I went back and added "-qtlibinfix E" to my build environment and
it did generate files with the correct file names. I then did a 'opkg
install qtr-embedded' on my Beagleboard. But I take a program the is
built on my Ubuntu box and it will not run on my BeagleBoard without
moving the libraries over. When I execute the code it just sits there,
no gui, no messages and nothing in the dmesg log file.

Any ideas?