Windows下安装GTK+

2021-10-02 03:14

阅读:884

标签:Step 1:到GTK官方网站上下载安装包。有32位的和64位,64位的有这句:   Note that these 64-bit packages are experimental. Binary compatibility between versions is not guaranteed.   还是选择下载的32位的。选择all-in-one bundle,所有的依赖包都在这里。   Step 2:解压到指定目录下。   解压的路径是:I:\Program Files (x86)\GTK,其中GTK文件夹自己创建,为避免万一,尽量保证文件夹不要有空格。   step 3:添加环境变量   编辑Windows环境变量:计算机--属性--高级系统设置--环境变量。在Path后加上:I:\Program Files (x86)\GTK即可。   step 4:配置GTK+   C:\Users\Administrator>pkg-config --cflags gtk+-3.0   结果为:   -mms-bitfields -II:/Program\ Files\ (x86)/GTK/include/gtk-3.0 -II:/Program\ File s\ (x86)/GTK/include/cairo -II:/Program\ Files\ (x86)/GTK/include/pango-1.0 -II: /Program\ Files\ (x86)/GTK/include/atk-1.0 -II:/Program\ Files\ (x86)/GTK/includ e/cairo -II:/Program\ Files\ (x86)/GTK/include/pixman-1 -II:/Program\ Files\ (x8 6)/GTK/include -II:/Program\ Files\ (x86)/GTK/include/freetype2 -II:/Program\ Fi les\ (x86)/GTK/include -II:/Program\ Files\ (x86)/GTK/include/libpng15 -II:/Prog ram\ Files\ (x86)/GTK/include/gdk-pixbuf-2.0 -II:/Program\ Files\ (x86)/GTK/incl ude/libpng15 -II:/Program\ Files\ (x86)/GTK/include/glib-2.0 -II:/Program\ Files \ (x86)/GTK/lib/glib-2.0/include   step 5:验证安装   C:\Users\Administrator>gtk3-demo   若出现GTK+ Code Demos则说明安装OK。  Windows下安装GTK+标签:原文地址:http://www.cnblogs.com/jiangxiaoqiang/p/4231696.html


评论


亲,登录后才可以留言!