How to enable the X Render extension?

zhouzy zhouzy at fjyxd.com
Tue Oct 18 20:52:23 PDT 2011


I want to install aMule,it depends wxwidgets,gtk2.
My os is rhel5.1,too old.so I need reinstalled the X11R6.9.0-src.tar.bz2.It works now.
But when I built wxwidgets,I got two errors:

[amule at localhost buildgtk]$ make
/home/amule/src/wxWidgets/wxWidgets-2.8.12/buildgtk/bk-deps g++ -c -o coredll_gtk_cursor.o -I./.pch/wxprec_coredll -D__WXGTK__     -DWXBUILDING        -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/amule/src/wxWidgets/wxWidgets-2.8.12/buildgtk/lib/wx/include/gtk2-ansi-release-2.8 -I../include -pthread -I/home/amule/include/gtk-2.0 -I/home/amule/lib/gtk-2.0/include -I/home/amule/include/atk-1.0 -I/home/amule/include/pango-1.0 -I/home/amule/include/glib-2.0 -I/home/amule/lib/glib-2.0/include -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ../src/gtk/cursor.cpp
../src/gtk/cursor.cpp: In constructor ‘wxCursor::wxCursor(const wxImage&)’:
../src/gtk/cursor.cpp:184: error: ‘gdk_display_supports_cursor_color’ was not declared in this scope
../src/gtk/cursor.cpp:198: error: ‘gdk_cursor_new_from_pixbuf’ was not declared in this scope
make: *** [coredll_gtk_cursor.o] Error 1

I search the Internet,
http://www.gtk.org/api/2.6/gdk/gdk-Cursors.html
the URL says:

gdk_cursor_new_from_pixbuf()
Creates a new cursor from a pixbuf. 
Not all GDK backends support RGBA cursors. If they are not supported, a monochrome approximation will be displayed. The functions gdk_display_supports_cursor_alpha() and gdk_display_supports_cursor_color() can be used to determine whether RGBA cursors are supported; gdk_display_get_default_cursor_size() and gdk_display_get_maximal_cursor_size() give information about cursor sizes. 
On the X backend, support for RGBA cursors requires a sufficently new version of the X Render extension.

It means my X11R6 does not enable the X Render extension.

[amule at localhost X11R6]$ ls lib/modules/extensions
libdbe.so  libextmod.so  libglx.so     libxtrap.so
libdri.so  libGLcore.so  librecord.so

How to enable the X Render extension?



公司/部门:福建亿信达网络科技有限公司/集成部        
姓名:周遵义
电话:0591-88520213-801
手机:15080042787      
Email:zhouzy at fjyxd.com
地址:福州市软件大道89号福州软件园D区38号B栋
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20111019/e3824c1d/attachment.html>


More information about the xorg mailing list