You must be familiar with the Linux system.

Source: Internet
Author: User
You must be familiar with the Linux system-general Linux technology-Linux technology and application information. The following is a detailed description. After entering the lab, I finally got some things done. The project was in cooperation with Beijing ande.com to change the numerical control operating system on the numerical control electric plane machine bed from DOS to LINUX. It is actually a very large project, and this change is an inevitable trend for all numerical control machine tools. A few days ago, I was reading the source code. It was compiled by their company. It uses TC ++ and a dozen thousand lines of programs! What's worse is that there are few comments and English spelling is still incorrect. Most functions cannot be named, which leads to the inability to understand the meaning of the function. Our task is to use the linux kernel system and QT programming in linux to get it out.

Of course, you must first familiarize yourself with the linux system. Previously, I installed Fedora 7 (I rely on Fedora 8). Later, due to the compatibility problem of QT, I switched back to RedHat 9. What makes me depressed is that I don't know a USB flash drive, and even the msn protocol in IM has problems, which makes it very troublesome for me to communicate data with others. However, the real-time dual-system orz can be achieved by running a virtual machine on WINDOWS and running linux on windows. Since the numerical control system is an embedded system, it is necessary to consider compatibility issues during transplantation. So we need to re-install a new QT-x11-3.1.2 and QT-embedded-3.1.2. It takes four or five hours to compile these two little Eastern suits ~~~ The following is a record of the QT steps for this wrench.

First find the qt-x11-free-3.1.2 and qt-embedded-3.1.2
Tar zxvf qt-embedded-free-3.1.2.tar.gz
Cd qt-embedded-free-3.1.2
Export QTEDIR = $ PWD
Install qt-x11-free-3.1.2:
Tar zxvf qt-x11-free-2.1.2.tar.gz
Export QTDIR = $ PWD
PATH = $ QTDIR/bin: $ PATH
LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
./Configure-no-xft
Make (make takes more than one hour ~~)
Then compile the unzip VB tool and copy it to the bin directory:
Make-C tools/qvfb
Mv tools/qvfb bin
Cp bin/uic $ QTEDIR/bin
Cd ..
Install qt-embedded-free-3.1.2
QTE must be installed into the host and target versions: host is the program to be compiled and run on the PC; target is the program to be compiled and run on the target board.
Cd $ QTEDIR
Export QTDIR = $ QTEDIR
Export PATH = $ QTDIR/bin: $ PATH
Export LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
./Configure-no-xft-qvfb-depths, 8, 16, 32
Make
Cd ..
Rename:
Mv-f qt-embedded-free-3.1.2 qt-embedded-free-3.1.2-host

Cd $ QTEDIR
Export QTDIR = $ QTEDIR
Export PATH = $ QTDIR/bin: $ PATH
Export LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
./Configure-no-xft-depths 4, 8, 16, 32-embedded x86-no-qvfb
Make

In this way, QT3.1.2 and QTE3.1.2 are installed. QT can be run under different environment variables (QTDIR, QTEDIR, and default system environment variables) for different purposes. You can directly simulate the interface on the board under the host.

Now I have installed the software and prepared for development. Today, I drew a basic interface with no functions in it, but it is quite successful to transplant it. The next step is the QT programming (C ++ language). Unfortunately, p doesn't understand any of them, and the time display programs found on the Internet cannot be put up. At the end of the year, the entire system should be well prepared, the difficulty is still quite large. I went back to the dormitory later in the past two days and basically went to bed. Should graduate students work hard like this? These two and a half years are for this kind of spirit or the so-called research results? If you are of the same age, how many graduate students are better than those who have been working for two years? It will not be known until I graduate.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.