作者ltortoise (...)
看板PCman
标题Re: [问题] pcmanx-pure-gtk2 0.3.2 make 发生错误
时间Mon Nov 28 22:49:58 2005
※ 引述《ltortoise (...)》之铭言:
: 感谢 pcman 给予指导
过了一段忙碌的时间(其实是懒惰),
这星期请到某位大佬来帮忙,解决了下面的问题
: 不过又遇上两个状况
: 1.在非 root 的帐号下会有下面的错误
确定得要用 root 权限才有办法进行 make
: 2.如果改成 root 进行编译会有下面的错误
: pcmanx_pure_gtk2.cpp: In function `int main(int, char**)':
: pcmanx_pure_gtk2.cpp:57: error: 'bindtextdomain' was not declared in this scope
: pcmanx_pure_gtk2.cpp:58: error: 'bind_textdomain_codeset' was not declared in this scope
: pcmanx_pure_gtk2.cpp:59: error: 'textdomain' was not declared in this scope
: make[2]: *** [pcmanx_pure_gtk2.o] Error 1
: make[1]: *** [install-recursive] Error 1
: make: *** [install-recursive] Error 1
这个问题...
在 pcman_pure_gtk2.cpp 中加上 #include <libintl.h> 就可以了
附上 diff 的结果
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <string.h>
-#include <libintl.h>
#include "mainframe.h"
#include "appconfig.h"
但是在成功的 make; make install 之後
执行 pcmanx 却出现了下面的状况
(.:7153): Gdk-WARNING **: locale not supported by Xlib
(.:7153): Gdk-WARNING **: cannot set locale modifiers
(.:7153): Gtk-WARNING **: cannot open display:
再次请问板上的使用者有没有遇过类似的问题...
---
作业系统:Tiger
编译环境;
gtk 2.6.8
xft 似乎是 2.1.6
intltool 似乎是 0.33
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.34.240.92