Compile and package in Linux to generate Deb

Source: Internet
Author: User
Tags gtk
Configure the basic development environment gcc
GCC already exists in the newly installed system, but almost no GCC file can be compiled. Because some necessary header files are missing, install the build-essential software package:
Sudo apt-Get install build-essential

Install the GTK/gnome Development Environment
To install the GTK environment, you only need to install libgtk2.0-Dev. to install the gnome development environment, you need to install gnome-core-devel, which contains the GTK development kit.
But in general, we need an IDE development environment and a help file, so we install
Sudo apt-Get install gnome-devel gnome-Dev-Doc

Depending on the software package, other software packages may be dependent. Install the required software package according to the error message.
Sudo apt-Get install dpkg-dev DH-make debhelper fakeroot GnuPG pbuilder

Prepare Deb Software Package
Decompress the package and go to the source package directory.
./Configure
Make
Sudo checkinstall-d make install
Or (because the execution standards of the software package are different)
Dpkg-buildpackage-rfakeroot

After the execution is complete, the Deb software package will appear in this directory.

Appendix:
Checkinstall is a deb package. Install: sudo apt-Get install checkinstall

Usage: Generally, the program to be compiled is/. Configure; Make; make install.
Checkinstall is used in this makeinstall, instead of the actual installation, and is generated as the Deb package.

After./configure and make
Checkinstall
Then
The package documentation directory./doc-pak does not exist.
Shocould I create a default set of package docs? [Y]:
Prompt, select N, enter the Deb package description, and enter a blank line to end

Then
0-maintainer: [jarlyyn @ Home]
1-Summary: [package created with checkinstall 1.6.0]
2-Name: [syncevolution]
3-version: [0.4]
4-release: [1]
5-license: [GPL]
6-group: [checkinstall]
7-architecture: [i386]
8-source location: [syncevolution-0.4]
9-alternate source location: []
10-requires: []

Select a number as needed to edit the project you want to change. Of course, if you do not need to change anything, you can also

Enter the press enter to generate the Deb package.

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.