Linux Application development Environment building

Source: Internet
Author: User
Tags gtk

because the author is a university student, the development direction of Linux kernel is very interested, but really can (JI) force (SHU) has (CHA) Limited (Jin), only from the development of Linux applications, easy-to-go, progressive progress, ascended the peak of life, therefore, yesterday built a development environment, Some development tools have been installed. (originally all the tools are taken by the code compiled to configure, but in the problem is too many, at that time did not do the record of the problem and the solution, then sent this article, using a more convenient way, I hope that the same novice and I have some help)


Below to get to the chase:


First, installation

1, install Gcc/g++/gdb/make and other BASIC programming tools

$sudo Apt - Get Install build - Essential

2, install Libgtk2.0-dev Libglib2.0-dev and other development-related library files

 $sudo apt  - get   install Gnome  - core  -  devel  

3, used to automatically find the header file and library file location when compiling GTK program

$sudo Apt - Get Install pkg - Config

4. Install devhelp GTK Document Viewer Program

$sudo Apt - Get Install Devhelp

5. Install Gtk/glib API Reference manuals and other help documents

 $sudo apt  - get   install Libglib2.  0  - doc libgtk2 . 0  - doc  

6. Installing GTK-based interface GTK/C + + language graphics library for developing gnome windows

$sudo Apt - Get Install glade Libglade2 - Dev
Or
$sudo apt-get Install glade-gnome Glade-common glade-doc

7, install gtk2.0 or gtk+2.0 all the required files Shitong download installation completed

$sudo Apt - Get install LIBGTK2. 0 - Dev
Or
$sudo Apt-get Install libgtk2.0*


Second, view the GTK library version

1. View 1.2.x version

$pkg -  --modversion gtk+

2. View 2.x version

$pkg -  --modversion gtk+-2.0

3. View Pkg-config version

$pkg -  --version

4. See if GTK is installed

$pkg -  --list-allgrep gtk



At this point, you can use GTK to compile the source program:

GCC base.c-o base ' pkg-config--cflags--libs gtk+-3.0 '


Linux Application development Environment building

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.