Each language has its own advantage. you can include Qt C++ also. Its has advantage of “same code work over different OS ” . Yes its Independent one. I got a chance to work on Qt c++. Hence I knew Java, Its quite easy for me to understand. Everyone get struck while begin to learn new language, samething happened to me also. from my experience, I used Makefile utility for compiliation. but Qt uses QMake utility for compiling. So I learnt one more tool QMake.
But at last, I ran the program successfully in arm devices. That time I understood the power of Qt. Later, I built Library (.so) for arm. I have adopted Qt C++ and thinking so comfortable to use Qt C++. Those who want to try out Qt for arm. This post may help them.
Steps for Cross compile Qt C++ version of Arm Linux (X11 – opensource):
1. Download Qt source for Linux (X11) from http://qt.nokia.com/downloads/linux-x11-cpp .
2. Extract the file. Let’s say Qt-dir : qt-everywhere-opensource-4.6.2
3. Replace <arm-none-linux-gnueabi-gcc> with your compile name in Qt-dir/mkspecs/qws/linux-arm-g++/qmake.conf configuration file.
4. Save those changes.
5. Then, edit Qt-dir/mkspecs/common/qws.conf file.
Set values to the below variables:
QMAKE_INCDIR_X11 = /opt/…./arm-none-linux-gnueabi-gcc/include
QMAKE_LIBDIR_X11 = /opt/…./arm-none-linux-gnueabi-gcc/lib
// LD library X11, XExt
QMAKE_LIBS_X11 = -lXext -lX11 -lm
6. Save changes
7. Go to Qt-dir and Configure by giving below as parameters:
- -arch arm
- -xplatform qws/linux-arm-g++
- -prefix /usr/local/
- -platform linux-g++
- -little-endian
- -armfpa
- -no-sm
- -qt-mouse-tslib // Qt Touch screen library
- -fast
- -no-qt3support
- -silent
8. make
9. make install
10. done