Hi
I have a problem. A Qt application which uses QWT elements isn't properly displayed on my ARM9 target board. Only the cursor is shown in a green box in size of the cursor.
When I delete the QWT-Elements, the QT widget is displayed errorless.
If I compile the application for PC (VMWare Ubuntu) and run it there, it is displayed correctly (with Qwt elements).
What I have done to built the app:
(on PC)
-uncompress QWT 5.2.1-Sources to directory qwt-5.2.1
-compile QWT via qmake (for PC) und make
-install with "make install"
-set Library path with ldconfig
Now I have created the Qt/Qwt application using Qt Designer (Qwt elements were available in Designer).
Then I used "qmake -project" to generate a *.pro file and added
INCLUDEPATH = /home/at91sam/Downloads/qwt-5.2.1/src
LIBS = -L/home/at91sam/Downloads/qwt-5.2.1/lib -lqwt
to the end of the file. After qmake (for PC) and make, I could start the application on PC.
Now I built the application for the ARM9 board with:
(on PC)
-uncompress QWT 5.2.1-Sources to directory qwt-5.2.1_ICnova
-uncomment the line "CONFIG += QwtDesigner" from qwtconfig.pri
-compile QWT via qmake (from ARM toolchain) und make (compiled without errors)
Now I added the lines
INCLUDEPATH = /home/at91sam/Downloads/qwt-5.2.1_ICnova/src
LIBS = -L/home/at91sam/Downloads/qwt-5.2.1_ICnova/lib -lqwt
at the end of the *.pro file of my application and compiled it with qmake (from ARM toolchain) and make.
Then I copied the binary to my ARM9 target board. When I executed it, I got the error message "can't load library 'libqwt.so.5'".
So I copied the file libqwt.so.5.2.1 from PC (directory qwt-5.2.1_ICnova/lib) to the ARM9 board (directory /usr/lib) and created a symlink libqwt.so.5 to the file libqwt.so.5.2.1.
Now I could start my application "./MyFirstQt -qws" without errors, but with the behavior I described at the beginning of the post (only the cursor is shown).
Does anybody know why the Qt/Qwt appliccation isn't shown correctly? What is my mistake?
I hope you can help me.
By the way, the QTembedded version from my builtroot system is 4.4.3.
Best regards, Markus
Bookmarks