Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Eclipse configuration GTK     - Ceph distributed storage system is installed on a CentOS 7.1 (Server)

- How to use Java to read OpenOffice document (Programming)

- Linux firewall anti-hacker disguise malicious attacks (Linux)

- How to install CentOS CentOS web page (Server)

- How to make GRub instead of the default Ubuntu software center (Linux)

- Python 3.5 await / async (Programming)

- Oracle 11g upgrade PSU detailed steps (Database)

- Fedora 23 How to install LAMP server (Server)

- ORA-600 [kcbz_check_objd_typ] Error Handling (Database)

- RedHat Linux 7 build yum source server (Server)

- Introduction to thread pooling and simple implementation (Programming)

- CentOS network configuration 7, and set the host name and IP-bound problems (Linux)

- RedHat yum configuration and the prompt (Linux)

- Mumble installation source VoIP application on Ubuntu (Linux)

- How the program is executed (Programming)

- Linux command in the dialog whiptail (Linux)

- Java rewrite equals method (Programming)

- Explore Android SQLite3 multithreading (Programming)

- IntelliJ IDEA run in Mac10.9 and JDK7 environment (Linux)

- shell script: a key optimization CentOS system (Linux)

  Eclipse configuration GTK
  Add Date : 2017-04-13      
  Use of Eclipse for GTK + Programming

Eclipse Review

Eclipse is an excellent open source IDE, it has now developed into a universal development platform that supports all popular programming languages, Windows, Linux can be used

Its main feature is the code hints can be given in the encoding process, the virtual machine language but also timely error detection, is the development of Java, Python and Ruby weapon, but also rare for Web development tool

Eclipse can also be used to develop C / C ++ applications, as long as you can install a plug-CDT

The following explains the use of the Eclipse development GTK + configuration program

Tool Version

 This article assumes that you have already installed the Eclipse and CDT plug-ins, and build a good GTK + development environment (GTK + to build a development environment, please refer to "GTK + Programming Getting Started")

 Here is my version of the tool and use as controls:

OS: Windows XP

Eclipse: 3.7.0

GCC: 4.5.2 (MinGW)

GTK +: 2.16.2 (glade3-3.6.7-with-GTK +)

Step 01

 Open the Dos command line, which in turn execute the following three commands

pkg-config --cflags gtk + -2.0> include.txt

pkg-config --libs gtk + -2.0> libs.txt

 D in your root directory will generate two .txt files, regardless of for now, we will get to use them

Step 02

 Start Eclipse, create a new C Project, named GTK + (the specific name of the custom)

Step 03

 In this newly built project GTK + Right click on the pop-up option in the bottom of a man named Properties option, click to select

Step 04

Eclipse will pop up the project settings window, click the leftmost C / C ++ General, and then click the Paths and Symbols

Step 05

 Includes options on the right click on the following article GNU C, then the rightmost Add ... button to add one by GTK + include file path

 Note: Each time you add must be on the hook Add to all configurations options

 Path how to fill it? Open our generated in step 1 include.txt file, which contains all the paths we need, there are several (specific path with your GTK + installation path may be)

C: /GTK/include/gtk-2.0

C: /GTK/lib/gtk-2.0/include

C: /GTK/include/atk-1.0

C: / GTK / include / cairo

C: /GTK/include/pango-1.0

C: /GTK/include/glib-2.0

C: /GTK/lib/glib-2.0/include

C: / GTK / include / libpng12

 Well, that contains the file path setting is completed, the following settings link library path

Step 06

 Or in just Paths and Symbols window, click the Library Paths middle, then right-most point of the Add ... button to add GTK + link library path

 Also need to tick the Add to all configurations option added

 You should have guessed how to find the path information. Yes, the first step to open the generated libs.txt file, add the following on the shining path information (only one)

C: / GTK / lib

 This step is also just completed a specified link library path, but no specific link library name

Step 07

 In the Paths and Symbols window, click Libraries middle, then right-most point of the Add ... button to add individual GTK + libraries

 Also, do not forget the added hook Add to all configurations options oh

 Step 1 Open the file generated libs.txt, one by one, add the following library name















 Set to come to an end here, the following set of compiler options

Step 08

 Click the left-most C / C ++ Build Options, and then click Settings

Step 09

 The selected entry into top Configuration Debug, and then select the following options bar Tool Settings

Step 10

 GCC C Select Tool Settings option on the left side under Article Compiler, and then select Command its right to change the fill for the gcc -mms-bitfields

Step 11

 The Configuration item selected from the top into the Release, then repeat step 10 is provided, after click OK button to confirm the bottom and exit

 At this point, the entire Eclipse of GTK + development environment are done!

Configuration summary

 The whole process may seem complicated, but it is not complex, with the following simple way to repeat the next configuration steps:

 Use pkg-config command to get route information GTK +

 Open the project settings window

 Add GTK + include file path, library path, link libraries

 GCC compiler options are set for Debug and Release two different modes


 Recommended use GCC + Make + Vim way to develop GTK + application (this is my way of development)

 However, if used to the IDE, or are not accustomed to using the command line, it can be considered GCC + Eclipse

 The following provides a compile GTK + 2.x generic Makefile, 3.x simply gtk + -2.0 to replace gtk + -3.0

GTK_FLAGS = $ (shell pkg-config --cflags --libs gtk + -2.0)


gcc -Wall -std = c99 -o app * .c $ {GTK_FLAGS}

 Note, Makefile directly from a Web page may not perform normal copy, so you'd better be in his own knock out, all: the line below the top of the blank is a Tab, not spaces

span style = span style = nbsp; use
- Linux performance optimization features Tuned and ktune (Linux)
- Understanding the Linux load average on other UNIX-Like systems (Linux)
- Calling Qt libraries to implement functional processes of some summary (Programming)
- Linux / CentOS 7.0 installation and configuration under Tomcat 8.0 (Server)
- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)
- Use pg_basebackup build PostgreSQL streaming replication environment (Database)
- CentOS How quickly customize kernel binary RPM package (Linux)
- Try debugfs restore the deleted files ext3 file system (Linux)
- Simple Linux file system - df, du, ln (Linux)
- Linux can modify the maximum number of open files (Linux)
- MySQL multi-master multi-cluster deployment uses alive Galera (Database)
- Linux using RAID how to use Mdadm Tool Management Software RAID (Linux)
- JavaScript subarray Deduplication (Programming)
- Linux system security Comments (Linux)
- Sublime Text - Opens the current file in a browser (Linux)
- C ++ why we chose to use the smart pointer (Programming)
- Timing task Crontab under Linux system (Linux)
- Linux command binlog by filtering out the complete SQL statement (Database)
- Intrusion prevention network server security maintenance tips (Linux)
- Use the TC flow control test under Linux (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.