Eclipse Integrated GTK Development environment

Source: Internet
Author: User
Tags gtk

Tag:ar    file    sp   on   c   ad    r   c++   bs   

    1. Environment Introduction
      • Operating system Ubuntu 11
      • Software Eclipse
      • Class Library gtk2.0
    2. Software Installation
      • GTK Install command sudo apt-get install Libgtk2.0-dev
    3. Eclipse settings
      • Get the Include directory list and library list miscellaneous
        • Pkg-config--cflags gtk+-2.0 > Include.txt
        • Pkg-config--libs gtk+-2.0 > Libs.txt
      • Directory containing gtk2.0 header files: project->properties->c/c++ build->settings->gcc C Compiler->include->add Directories that appear in the Include.txt file (without-i)
      • Set environment variables that contain the strings in the following diagram to enable GCC to find the path to GTK when looking for header files and libraries: project->properties->c/c++ BUILD->SETTINGS->GCC C Compiler->miscellaneous->other flags-> add ' pkg-config--cflags gtk+-2.0 '
      • Set the library to be loaded by the program: project->properties->c/c++ BUILD->SETTINGS->GCC C Linker->libraries->add Files that appear in the Libs.txt file (without the-l), such as gtk-x11-2.0

Eclipse Integrated GTK Development environment

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.