Windows 安裝 GTK+ 圖文說明


首先去官方下載:

//官方網站
http://www.gtk.org/download/index.php

//下載鏈接
http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip
http://win32builder.gnome.org/gtk+-bundle_3.6.4-20130921_win32.zip

  

解壓到c盤:。http://www.cnblogs.com/osfipin/

看懂英文的話,那個文本文檔里有安裝說明。

To use it, create some empty folder like "c:\gtk", Using either
Windows Explorer's built-in zip file management, or the command-line
unzip.exe, available for instance at
ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/WIN32/unz552xN.exe
unzip this bundle. Avoid Winzip! It is known to behave oddly.

(But you presumably already did extract the files, as you are reading
this file.)

Then add the bin folder to your PATH. Make sure you have no other
versions of GTK+ in PATH. Run:
    pkg-config --cflags gtk+-3.0
and verify that it prints out something reasonable. Prepare Pango :
    pango-querymodules > c:\gtk\etc\pango\pango.modules
Prepare GDK-Pixbuf :
    gdk-pixbuf-query-loaders > c:\gtk\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache
Prepare GTK+-IMModules :
    gtk-query-immodules-3.0 > c:\gtk\lib\gtk-3.0\3.0.0\immodules.cache
Run:
    gtk3-demo
and verify that it works.
//http://www.cnblogs.com/osfipin/

修改系統變量:

重啟電腦。運行:pkg-config --cflags gtk+-3.0

出現此界面則說明安裝成功。

運行bin/gtk3-demo.exe.或者(運行gtk3-demo)

出現界面:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM