Best practices for installing GTK + in Windows

Source: Internet
Author: User
Tags gtk

Best practices for installing GTK + in Windows

TheGTK + version: 2.16.0

 

Prerequisites: cygwin has been installed on Windows (the installation method is not described in this article)

There are many ways to install GTK + on Windows. The simplest method is to install GTK + using an integrated package. The steps are as follows:

1. Download gtk0000-bundle_0000.0-20090317_win32.zip
Address: http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.0-20090317_win32.zip

2) decompress the package to the specified directory
I decompress the package to C:/GTK.

3) set the environment variable path
"My Computer" -- Right-click "property" -- "advanced" -- "environment variable", edit path, and add:
C:/GTK/bin

4) test
4.1) ensure that GTK + of other versions is not installed in windows. Run the following command on the CMD command line:
PKG-config -- cflags GTK ++-2.0
Display result:

Note: if there are other versions, delete them first.

4.2) Verify that the installation is correct (no need to write helloworld)
Run the following command on the CMD command line:
GTK-demo
Display result:

So far, the installation is complete.

To use Microsoft's Windows theme engine, create a new file named gtkrc under the ETC/gtk-2.0 directory under the installation directory with only one sentence:
GTK-theme-name = "MS-Windows"
Save and exit.

Everything is OK.

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.