Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8866 - wxGTK 2.8 Build Issues

Attached to Project: Arch Linux
Opened by Cody Precord (cprecord) - Saturday, 08 December 2007, 02:49 GMT
Last edited by Eric Belanger (Snowman) - Monday, 10 December 2007, 00:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I am the author of a piece of software that runs on top of wxPython/wxWidgets and have been receiving a number of error reports from users that are using Arch Linux and the build of wxWidgets 2.8.4 that is available in your package management system. It would seem that the configuration options of the build are leaving out some parts of the library for wxGTK. Most notably the GraphicsContext.

When looking through the cvs listings I see that the wx-config file that is located here: http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/x11/wxgtk/?cvsroot=Extra&only_with_tag=CURRENT
with the 2.8 code is actually sourcing a config script for wxGTK 2.6 which does not have the GraphicsContext implemented so it would cause this code to not be built that leads to the following errors at runtime of my program.

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Editra/src/prefdlg.py", line 299,
in OnPaint
gc = wx.GraphicsContext.Create(dc)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py",
line 5372, in Create
val = _gdi_.GraphicsContext_Create(*args)
NotImplementedError: wx.GraphicsContext is not available on this platform.

I have informed some of the users that have reported this to manually rebuild wxGTK 2.8 with the '--enable-graphics_ctx' config flag and it has solved the problem. The GraphicsContext is usually a default part of the build so perhaps updating the wx-config script listed above to use the proper one for 2.8 will solve this issue.

Additional info:
* package version(s): wxgtk 2.8.4-1, http://www.archlinux.org/packages/823/
* config and/or log files etc.


Steps to reproduce:

Run Editra v0.2 or later using the wxgtk/wxpython packages from the repo and open the preferences dialog (Edit=>Preferences)

If there is anymore needed information I will be happy to help resolve this,

Thanks,

Cody Precord
http://editra.org

This task depends upon

Closed by  Eric Belanger (Snowman)
Monday, 10 December 2007, 00:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  The new wxgtk package is now built with graphics_ctx.

BTW, the wx-config file you refered to in webcvs was obsolete since wxgtk 2.8.x and wasn't used at all.
Comment by Wenzhi Liang (lang2) - Saturday, 08 December 2007, 09:19 GMT
Hi Cody,

Could you change the package to wxWidgets/wxPython? Editra is not a core or extra package (prebuilt). It can only be build by the Arch ABS system, similar to port for BSD.

Also signing up for a bug verifier.

Thanks,

Comment by Cody Precord (cprecord) - Sunday, 09 December 2007, 08:54 GMT
The suggested configuration parameters for building wxGTK for testing when installing it as a dependancy of wxPython are shown on (http://wxpython.org/BUILD.html), I believe that this is how the build is done for the official wxPython binaries. Most applications that depend on wxPython are likely to depend on the parts of the library enabled by this configuration. I know that the binaries for OS X and Windows at least enable (--enable-graphics_ctx, --enable-geometry, --enable-display, --enable-mediactrl). I would suggest something similar to whats shown below for the package config of wxGTK 2.8 and higher.

../configure --prefix=/opt/wx/2.8 \
--with-gtk \
--with-gnomeprint \
--with-opengl \
--enable-geometry \
--enable-graphics_ctx \
--enable-sound --with-sdl \
--enable-mediactrl \
--enable-display


Loading...