Dev-CPP/mingw32 Environment Introduction (8)

Source: Internet
Author: User

Review above:
In the above section, we mainly introduce how to create a custom project in Dev. The structure of the package is briefly introduced later. Next I will complete the preparation of the package.

Chapter 2 Dev-CPP package preparation

First, let's take a look at the dev-CPP package. The Dev-CPP package has the following features: Of course, I am structured.

The file name is package name. devpak.
This is a package file, which can be directly released to Dev-CPP for installation. packagemanager can be well installed. Fast, secure, and green. In fact, in terms of structure, it is a Bzip2 compressed file. We can use WinRAR or other compression software that supports Bzip2 to open it, we can see that there is a file with the same package name, but there is no suffix. In fact, this is a tar compressed file. We are opening it. After opening the layers of directories, we will see the most basic files.

Package name. devpackage
This is the package configuration file, which contains a lot of package information, such as the file location, whether to restart after installation, content in the Start Menu, license location, and so on.

License.txt
We usually have this license, because this is the license. If we use GPL (we think this is a good one), then we can copy the license content to the GNU website. This can also be done with other licenses.

Readme.txt
This is the instruction document. There is a description of the package. Here you can give full play to your literary talents. If it was Mr. Lu Xun, he would definitely write "a straight-forward-to-Qifu" here ".

The above three main files will not appear in any directory after installation unless you set them like this.

Now that we know the structure of the package, let's talk about how to make the package.

It is found that Bzip2 and tar are not easy to use in Win32. for your consideration, I used a Dev-CPP tool to create them. I hope you will understand.

First, we can download a packagemaker. devpak file from the dev-CPP website. By name, we can see that this is the creation of the package.Program.
Http://www.freewebs.com/gstudio/DOWNLOAD/PackMaker.zip
After downloading the package, you can directly run the files in the package. Let's create a package file now.

First, create a package folder on your computer as our production environment. This is my personal habit and is easy to manage later.
Then run packagemaker. A dialog box is displayed. Where
The create a new package option is used to create a new package.
The open an existing package option is to open an existing package file. Of course, this package file is suffixed with. devpackage, that is, it is not packaged.

We choose to create a new one because it has not been created.
Then we will see an interface. If there are too many windows, we suggest you look for them. Yes.

Okay. Now we can write some parameters to the package file. I will not explain those parameters here. You should understand the meaning of these parameters.
Description is what you saw at the beginning of the installation program.
Reboot system after install is to ask if you want to restart the system after installation.
I will not discuss other things one by one.

Next, I will show you how to make the package contain files.
First, create a file folder in the folder. Then we will create some folders in this folder, such as include and Lib. Add the files you want to add to these folders. Now, click Add directory to add a directory. Select the file directory we created above, and select <app>/below /. <App>/is in the dev-CPP directory, and <sys>/is in the system directory.

After setting, save the settings. Click File> build to generate a package file in the package directory.

I will introduce it here this time. In fact, it can be successful after several attempts.
Good luck

VOICEOVER:
I am sorry for this because I have used special software to generate a package. Originally, I wanted to teach you how to use Bzip2 and tar to build your own packages. But this time I am looking for Bzip2, and it is very hard to find it, let alone tar. There is no relevant information for the operation. Therefore, packagemaker is used this time. In addition, the wxwidget that promised you in the previous period is provided here. Therefore, it will be available below.

Studio software development group (SDT)
Studio development team
Dipper (Huang yaokui)

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.