QT on Ben - Tutorial
marco.castorina at yahoo.it
Mon May 10 14:19:08 EDT 2010
sorry for the delay, but there have been few things
going on in the last few weeks . I didn't forget
the tutorial of course, so here we go!
Step 1: follow this guide  to install the tool chain.
You need to add the Qt libraries to (from menuconfig
Xorg -> framework -> Qt4) to the basic configuration.
Step 2: type make and enjoy the afternoon :-)
Step 3: once the process is finished, add the path of
the mipsel compiler to the environment variables ;
Step 4: write your Qt program;
Step 5: compile. I used the following command, but
I'm sure creating a make file is a more efficient way:
mipsel-openwrt-linux-uclibc-g++ -I <PATH TO THE TOOLCHAIN>/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/ -L<PATH TO THE TOOLCHAIN>/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -lQtGui -lQtCore -lpthread -ldirectfb -lfusion -ldirect -lQtNetwork -lpng -lz -lfreetype qtexample.cpp -o qtExample
Step 6: copy the executable file to the Ben (I used
the following: spc yourFileHere root at 192.168.254.100)
Step 7: launch the application. Running Qt application
in an embedded environment needs a server , so
you need to lunch the application with the -qws
parameter (./qtexample -qws).
It should be everything. Qt uses qmake to produce
a make file and simplify the compiling process, it's
next on the ToDo list.
I wouldn't got so far without many people from the
community, everyone helped in almost every step.
If you have any question, feel free to ask!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the discussion