How to write Applications in C++ for Friendly ARM mini 2440 using Qt 4.6.2 library: part 1
Hi,
this is a first tutorial on “How to write Applications in C++ for Friendly ARM mini 2440 using Qt 4.6.2 library“. I decided to write this simple tutorial because I saw on many different forums (concerning embedded platform) a lot of questions concerning Qt library. In my opinion PC software developers know very well Qt, but there is a lack of knowledge of this application framework in the embedded world. I write this very little and simple tutorial just to introduce the subject. If it is useful to someone, I’ll write more detailed examples.
===
First of all you have to compile and install Qt on your host computer.
See this tutorial for GNU/Linux target or this tutorial for Windows CE 5.0 target operating system on Mini 2440 board.
Then you can start (on your host computer) a tool like Qt Creator. If you are using Windows you can download Qt Creator here, if you are using GNU/Linux you can download it here.
Let’s start…
Run Qt Creator and from the File Menu choose New File or Project. You will see a dialog window. Start a new Qt GUI Application on Qt Creator as in following picture:
Choose a name for your project (example HelloWorld)
Click Next and leave in the following dialog menu all the default options:
Choose a name (example MainWindow) for your base class (which in this example is QMainWindow)
and Finish
Your Qt Creator IDE will look like this:
At this point, if you are using MS Visual Studio 2008 to compile code for Windows CE 5.0, from a command prompt run the command:
setcepaths wince50standard-armv4i-msvc2008
If you are using Ms Visual Studio 2005 run the command
setcepaths wince50standard-armv4i-msvc2005
and then type
qmake <the name of file.pro>
and type
nmake
At the end you will have your binary image. Remember to copy all the Qt DLL and the MS visual C run time DLL on your target.
If you are using a GNU/Linux distribution on your target you have to type at the shell prompt:
qmake <the name of file.pro>
and type
nmake
At the end you will have your binary image. Remember to copy all the Qt shared library on the target.
If you think this little tutorial has been useful to you please let me know, so I can decide to write new “how to” to cover Qt/C++ programming.
Have Fun!
Popularity: 1% [?]
Puoi visualizzare il post originale qui.
Fatal error: Call to undefined function wp23_related_posts() in /home/tuxfeed/public_html/wp-content/themes/df_marine/index.php on line 68







