Programming history of my aerial Helicopter Control Base Station Software (3) -- start to read the qmk-groundstation code

Source: Internet
Author: User

There are many files under the root directory of qmk, and there is a copying file, which is information related to GNU's copyright, GNU General Public License. We don't have to worry about it.

There are also some. Pro files in the root directory, such as Debian. Pro, eeepc. Pro, Gentoo. Pro, OSX. Pro, Suse. pro, and win. Pro. We know that QT is a source-level cross-platform, and these files are engineering files that support different operating system platforms. Among them, win. Pro is the platform engineering file of windows.

Win. Pro'sCodeAs follows:

Include (../examples. PRI)

Include (qmapcontrol. PRI)

 

Qwt_root = .. /qwt-5.1.1 // here the qwt directory is set, the qwt-5.1.1 folder under the system root directory, here the qwt version is 5.1.1, this version has a lot of problems, now 5.2.0 is available. We decided to use the latter, so we need to modify it here.

 

Include ($ {qwt_root}/qwtconfig. PRI)

 

Suffix_str =$ $ {release_suffix} // This is not clear yet. It is estimated that it is related to compilation.

 

Includepath + =$ {qwt_root}/src // includepath describes the # include path to be searched by the compiler when compiling the project. The search path here is the SRC folder under the qwt root directory.

Dependpath + =$ {qwt_root}/src // dependpath describes how to create an application.ProgramPath of other dependent files

 

Qwtlib = qwt $ {suffix_str} // This is related to the qwt library. qwt must be compiled before the Lib library is available. The compilation of qwt is described in the following sections.

 

Contains (config, qwtdll) // The following lines have not been understood. Please understand and write them again.

{

Defines + = qt_dll qwt_dll

Qwtlib =$ {qwtlib }$ $ {ver_maj}

}

 

Win32-msvc: libs + =$ $ {qwt_root}/lib/$ {qwtlib}. Lib // from the following lines, this project may be compiled with

Win32-msvc.net: libs + =$ {qwt_root}/lib/$ {qwtlib}. Lib

Win32-msvc2005: libs + =$ {qwt_root}/lib/$ {qwtlib}. Lib

Win32-g ++: libs + =-L $ {qwt_root}/lib-L $ {qwtlib}

 

Template = app // create a makefile for the created Application

 

Objects_dir = build/. o_win32 // describes the storage location of intermediate files generated during application compilation and connection.

Ui_dir = build/. UI

Moc_dir = build/. MoC

Rcc_dir = build/. RCC

Destdir = build/bin // defines the path for storing executable files

 

Defines + = _ tty_win _ qwt_dll qt_dll _ Win32 _

 

Include (Global. PRI)

 

The include of the first and second rows and the last row include the ../examples. PRI, qmapcontrol. PRI, and global. PRI files in the project. But the include (.. /examples. PRI), examples is not found in the entire project directory. PRI project. This file is in the qwt directory and in the qwt examples folder. Therefore, this project also requires qwt support. Here we will first explain the code in win. pro, and in the next chapter we will talk about the installation and use of qwt. Both qmapcontrol. PRI and Global. PRI files are in the project root directory, which contains some header files and source files.

Qwt_root = ../The qwt-5.1.1 line specifies the path to qwt. The qwt version is 5.1.1.

Include ($ {qwt_root}/qwtconfig. PRI) contains the qwtconfig. PRI file under the qwt root directory.

Next, let's explain it directly after the source code above!

 

 

 

Http://qwt.sourceforge.net/qwt Resources

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.