Here, I would like to share with my brother the steps for porting QT to mini2440. If there are similarities, please forgive me. This may be caused by drawing on the experiences of J's predecessors on the Internet, if you forget it, you cannot write the link.
I ,. I set up the environment: 1. fedora102 and QT creator. I used this to install it. I won't talk about the installation steps. After installing this, I still need the SDK. I won't talk about how to get it.
3. For more information about how to install QT creator, because there are a lot of related information on the Internet. 3. Set up a migration environment. 1. compile the information with the help of mini2440. The steps are as follows: all the information in the mini2440 folder is bought with the mini2440 configuration, if you don't have any, you can download the mini2440 CD files on the friendly official website. Use the command./build-all. According to my classmates, an error may occur. (no error occurs when I get it.) The solution to the error is
The first error is often the error. Generally, errors are caused by the absence of a header file. In the compilation process, errors occur due to the lack of "zlib. H. The solution is to enter the command yum.
Install zlib without ". H ". The compilation process is very long and takes more than an hour. It seems that I have used at least two hours, so I can do other things during this time.
Open QT creator, click "tools-> options" in the toolbar, and then click "qt4 --> Add". Find the qmake tool in the installation directory of qt4.6.3, that is: /opt/friendlyarm/mini2440/arm-qte-4.6.3/qt-everywhere-opensource-src-4.6.3/bin/qmake, and finally click open.
Create a project by yourself and write a simple program. I just want to create one and run it on a PC, as shown in the following figure.
Click "project" on the left, click the drop-down menu of "Edit build configuration", select qt4.6.3, and compile, in this way, the qt4.6.3 program that can be run on the mini2440 Development Board is generated in the corresponding directory. After compilation, the corresponding file is generated in the **-bulid-Desktop Folder.
Upload the files circled in red to the mini2440 folder. As for how to use them, I will not talk about them here. What Mount methods, FTP methods, and so on, for details, check the information on the Internet.
Upload the hello file to mini2440 and use the command chmod to modify the executable permissions of the hello file. Then, move the hello file to the OPT folder, as shown in.
Then go to/usr/local/trolltech/QtEmbedded-4.6.3-arm/demos/Embedded/fluidlauncher to view the config. XML. Modify the file in the following format: <example filename = "/opt/Hello" name = "hello" image = "screenshots/wigggly.png">
Add this line and save and exit.
In the last step, start mini2440 and then start qt4.6.3.
The corresponding screen is displayed.
That's the end. Wow, the foundation for my successful tutorial is that your QT can be compiled normally on the PC! Thank you!
If you can not display the image, then look at Netease blog http://guanqinchu.blog.163.com/blog/static/21265316820133110612536/