LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1307|回复: 3

如何编译wxWidgets

[复制链接]
发表于 2010-1-14 13:06:33 | 显示全部楼层 |阅读模式
在安装完blfs后,想安装wxWidgets,在安装2.9的时候,可以很容易的安装好,但是在安装2.8.10的时候,总是处错误,不知该怎么搞了,网上的也介绍的很简单,好像就是configure,make,make install,但在我的机子上总是不行,那位兄弟给点指点啊
发表于 2010-1-14 13:37:55 | 显示全部楼层
Post by qdog988;2064136
安装完blfs

过分,需要什么装什么.
全装比较搞笑。

wxWidgets 安装确实和文档中描述一样简单。

您遇到问题,首先要考虑:
是否依赖关系未解决;
是否编译器版本,引入兼容性问题,特别是对 c++ 软件包;
是否工具链受损,特别要注意是否升级内核头文件,如果升级内核头文件,请同步升级 libc。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-14 16:26:35 | 显示全部楼层
这是我遇到的错误,不知该怎么解决,是不是要先安装wxBase

In file included from ./src/gtk/gsockgtk.cpp:21:
./include/wx/gsocket.h:40: error: using typedef-name 'GSocket' after 'class'
/usr/include/glib-2.0/gio/giotypes.h:120: error: 'GSocket' has a previous declaration here
In file included from ./include/wx/gsocket.h:179,
                 from ./src/gtk/gsockgtk.cpp:21:
./include/wx/unix/gsockunx.h:40: error: using typedef-name 'GSocket' after 'class'
/usr/include/glib-2.0/gio/giotypes.h:120: error: 'GSocket' has a previous declaration here
./src/gtk/gsockgtk.cpp: In function 'void _GSocket_GDK_Input(void*, gint, GdkInputCondition)':
./src/gtk/gsockgtk.cpp:34: error: 'struct _GSocket' has no member named 'Detected_Read'
./src/gtk/gsockgtk.cpp:36: error: 'struct _GSocket' has no member named 'Detected_Write'
./src/gtk/gsockgtk.cpp: In member function 'virtual bool GSocketGUIFunctionsTableConcrete::Init_Socket(GSocket*)':
./src/gtk/gsockgtk.cpp:56: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:57: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete:estroy_Socket(GSocket*)':
./src/gtk/gsockgtk.cpp:67: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete::Install_Callback(GSocket*, GSocketEvent)':
./src/gtk/gsockgtk.cpp:72: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:75: error: 'struct _GSocket' has no member named 'm_fd'
./src/gtk/gsockgtk.cpp:83: error: 'struct _GSocket' has no member named 'm_server'
./src/gtk/gsockgtk.cpp:90: error: 'struct _GSocket' has no member named 'm_fd'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket*, GSocketEvent)':
./src/gtk/gsockgtk.cpp:98: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:108: error: 'struct _GSocket' has no member named 'm_server'
make: *** [coredll_gtk_gsockgtk.o] Error 1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-14 18:06:35 | 显示全部楼层
哈哈,搞定了,到wxWidgets论坛上找到了问题的答案,原来是gtk与wxWidgets有冲突,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表