歡迎來到小豬圈!

Showing posts with label PHP:GTK. Show all posts
Showing posts with label PHP:GTK. Show all posts

2008-11-06

安裝 Glade 3.4.3 for Windows (gladewin32) 遇到的問題


  • 圖為安裝 Glade/Gtk+ for Windows 3.4.3 版遇到的錯誤訊息。
    glade-3.exe - Entry Point Not Found
    The procedure entry point g_assertion_message_expr could not be located in the dynamic link library libglib-2.0-0.dll.
  • 解決方法是將 GTK+ 的版本更新至 2.12.9 以上。為什麼我會知道?因為我電腦裡裝的是不曉得哪個程式附的 GTK+ 2.12.8 … (囧),更新(目前最新是 2.14.4)後就沒問題了。
  • 如果是遇到缺什麼 dll 的情況,先確認 GTK+ 的 bin 目錄有沒有加到環境變數 PATH 裡,不行再到 GTK+ 官網下載或網上去找吧。

2008-11-01

PHP-GTK on Windows 筆記

  • PHP-GTK : Downloads 下載 php-gtk-2.0.1 Windows binary pack
  • 到下載回來的檔案解開後的 php-gtk2 目錄裡,執行 php demos\phpgtk2-demo.php 範例測試。
  • 在利用既有的 PHP 環境執行時遇到下列錯誤訊息,應該是因為 PHP-GTK 是 Non-thread-safe 的,和我現有的版本不符的關係。
    PHP Warning:  PHP Startup: php-gtk: Unable to initialize module
    Module compiled with module API=20060613, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=1
    These options need to match
     in Unknown on line 0
  • 修改 php-cli.ini 檔案中 php-gtk.codepage 一項,修改為 CP850 用以在 Windows 上正常顯示繁體中文。參見:Code Pages

標籤分類

Labels

Google Analytics Tracking Code

About Me

My photo
Keelung, R.O.C, Taiwan
一個不學無術、混吃等死的傢伙…