衡玉's Blog

Happy coding

Windows下安装GTK+的最佳攻略

衡玉 posted @ 2010年3月24日 23:39 in C++ , 1041 阅读

 



本文的GTK+版本为2.16.0

前提条件:Windows上已安装Cygwin(安装方法不在本文中叙述)

在Windows平台上安装GTK+,方法很多,最简单的方法是采用一体包进行安装,步骤如下:

1)下载gtk+-bundle_2.16.0-20090317_win32.zip
地址:http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.0-20090317_win32.zip

2)解压缩到指定目录
我解压到C:\GTK

3)设置环境变量PATH
“我的电脑”--右键“属性”--“高级”--“环境变量”,编辑Path,添加:
c:\gtk\bin

4)测试
4.1)确保Windows系统内未安装其它版本的gtk+,在cmd命令行下执行:
pkg-config --cflags gtk+-2.0
显示结果:

结果图1

注:如果有其它版本的,先删除之。

4.2)验证安装是否正确(无需编写Helloworld)
在cmd命令行下执行:
gtk-demo
显示结果:
结果图2

至此,安装结束。

如果想使用微软的Windows主题引擎,在安装目录下的etc/gtk-2.0目录下,新建一文件,命名为gtkrc,内容只有一句:
gtk-theme-name = "MS-Windows"
保存并退出。

一切OK。

Avatar_small
HRMS Login 说:
2022年8月04日 00:45

HRMS is termed as Human Resource Management System which is an important department for the welfare of an Organization, and any department that might be under surveillance of Government or Private organization, and HRMS is a combination of Process and system under Human resource Management & Information technology using HR software. A workplace can be well maintained under the working hands of an HRMS login which subdivides every system into different parts. HRMS Login It is all about automating the things making them available for all employees irrespective of workload. As every employee of an organization from top-level to bottom can access the HRMS software. It makes the financial department workload to reduce for maximum percentage.

Avatar_small
UK Board Question Pa 说:
2022年9月16日 18:39

Uttarakhand Board of School Education Board and various private intuitional subject experts of the state have designed and suggested UK Board 5th Class Model Paper 2023 Pdf with Mock Test Practice Questions for all languages of the course. UK Board Question Paper Class 5 Term1 & Term 2 Exam Revision Question Bank with answers are suggested to the state board elementarily level primary school All Languages and Subjects of the Course for SCERT & NCERT Syllabus Hindi Medium, English Medium and Urdu Medium Students Studding in Government & Private Schools of the State.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter