wxWidgets
Michael Dickens
michaelld at macports.org
Thu Aug 29 08:52:17 PDT 2013
Thank you, Mojca, for your persistence and hard work in clearing up the
wx stuff. As with all significant changes, I think there will be tweaks
here and there before everything gets settled. For instance:
1* I had to add the following patch for wxPython-3.0 +stdlib to get it
to [10.8 latest, Xcode latest, using clang]. I'm not sure if this is
the correct fix, but it works for me. wxPython-3.0 installs cleanly with
all other variants, and py27-wxpython-3.0 installs cleanly as desired,
too with any of the wxPython-3.0 variants.
{{{
--- include/wx/math.h.orig 2013-08-29 11:05:41.000000000 -0400
+++ include/wx/math.h 2013-08-29 10:55:31.000000000 -0400
@@ -62,7 +62,7 @@
add more compilers with C99 support here: using C99 isfinite()
is
preferable to using BSD-ish finite()
*/
- #define wxFinite(x) isfinite(x)
+ #define wxFinite(x) std::isfinite(x)
#elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)||
\
defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
defined(__HPUX__) ) && ( !defined(wxOSX_USE_IPHONE) ||
wxOSX_USE_IPHONE == 0 )
}}}
2* "import wx" fails in python (/opt/local/bin/python2.7):
{{{
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/__init__.py",
line 45, in <module>
from wx._core import *
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/_core.py",
line 4, in <module>
import _core_
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/_core_.so,
2): Library not loaded:
/opt/local/lib/libwx_osx_cocoau_xrc-2.9.4.0.0.dylib
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/_core_.so
Reason: image not found
}}}
% otool -L
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/_core_.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa/wx/_core_.so:
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 56.0.0)
/opt/local/lib/libwx_osx_cocoau_xrc-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_osx_cocoau_webview-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_osx_cocoau_html-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_osx_cocoau_qa-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_osx_cocoau_adv-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_osx_cocoau_core-2.9.4.0.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_baseu_xml-2.9.4.0.0.dylib (compatibility
version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_baseu_net-2.9.4.0.0.dylib (compatibility
version 1.0.0, current version 1.0.0)
/opt/local/lib/libwx_baseu-2.9.4.0.0.dylib (compatibility
version 1.0.0, current version 1.0.0)
% port contents port contents wxPython-3.0 | grep /opt/local/lib
So, there's either an installation or linking issue which prevents
wx/_core_.so from working. I have not looked into this issue further
yet.
3* % sudo port select wxWidgets wxPython-3.0
Password:
Selecting 'wxPython-3.0' for 'wxWidgets' failed: could not create new
link "/opt/local/bin/wx-config": target
"/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxPython/2.9/bin/wx-config"
doesn't exist
I'll keep testing; maybe some of these are already fixed in recent
revisions? Let me know how I can be of assistance. - MLD
More information about the macports-dev
mailing list