On 6/15/2012 4:37 PM, matt_b...@mac.hush.com wrote:
If it is a native (doesn't require cygwin1.dll) then yes, wx won't
be able to read the Cygwin POSIX paths.
I compiled wx it under Cygwin
wx libraries are are in /usr/local/lib/
Everything works as expected, only some programs won't start because of this
issue, or throw error about missing resource file if file is located beneath
/usr/lib/
eventually you build a partially hybrid application
On cygwin
/usr/lib is a mount of /lib
so a pure cygwin program will see no difference between
/usr/lib/python2.6/site-packages/matplotlib/mpl-data/images/filesave.png
/lib/python2.6/site-packages/matplotlib/mpl-data/images/filesave.png
Please see this output from python interpreter:
========================================
$ python
Python 2.6.8 (unknown, Jun 9 2012, 11:30:32)
[GCC 4.5.3] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
import wx
wx.Image.CanRead('/usr/lib/python2.6/site-packages/matplotlib/mpl-data/images/filesave.png')
True
wximg =
wx.Image('/usr/lib/python2.6/site-packages/matplotlib/mpl-data/images/filesave.png',
wx.BITMAP_TYPE_ANY)
14:36:44: Error: Can't load image from file
'/usr/lib/python2.6/site-packages/matplotlib/mpl-data/images/filesave.png':
file does not exist.
========================================
Only wx has this issue for some reason
have you tried using Yaakov wx libraries ?
http://sourceware.org/cygwinports/
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple