wxWidgets

Mojca Miklavec mojca at macports.org
Fri Aug 30 13:34:39 PDT 2013


On Thu, Aug 29, 2013 at 7:19 PM, Michael Dickens wrote:
> On Thu, Aug 29, 2013, at 12:34 PM, Mojca Miklavec wrote:
>
>> Ad 2: Please try to uninstall or deactivate all *wx* and reinstall
>> wxPython. I suspect it's wrong linking (bug that you see only if wx gets
>> compiled while one in $prefix is active).
>
> Done.  Linking might be correct, but compiling still fails, I think because:
> {{{
> % ls -lAF
> /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxPython/2.9/bin/
> total 696
> lrwxr-xr-x  1 root      wheel     213 Aug 29 12:55 wx-config@ ->
> /opt/local/var/macports/build/_opt_MacPorts_trunk_dports_graphics_wxWidgets-3.0/wxPython-3.0/work/destroot/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxPython/2.9/lib/wx/config/osx_cocoa-unicode-2.9
> lrwxr-xr-x  1 root      wheel       8 Aug 29 12:55 wxrc@ -> wxrc-2.9
> -rwxr-xr-x@ 1 macports  admin  344092 Aug 29 12:55 wxrc-2.9*
> }}}
> wx-config's symlink is not correct.  I'm looking into this issue right now.

I just looked now. It seems that wxWidgets 2.8.12 does it properly
(but now I'm afraid to change that in the Portfile) by creating the
proper absolute link. wxWidgets 2.9.5 also does it properly by
creating a relative link (but it would make sense to test how this
works when non-standard paths are being used - I suspect it doesn't),
only wxWidgets 2.9.4 fails to work - it's creating a symlink pointing
to the build dir.

The version 2.9.5 uses:

(cd /build_path/destroot/final_path/bin && rm -f wx-config && ln -s
../`basename /final_path/lib`/wx/config/osx_cocoa-unicode-2.9
wx-config)

The version 2.9.4 uses:

(cd /build_path/destroot/final_path/bin && rm -f wx-config && ln -s
/build_path/destroot/final_path/lib/wx/config/osx_cocoa-unicode-2.9
wx-config)

I suggest testing with the two attached patches (the patch should be
applied against 2.9.4).

Mojca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wx-config.1.patch
Type: application/octet-stream
Size: 556 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130830/4dc917ed/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wx-config.2.patch
Type: application/octet-stream
Size: 542 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130830/4dc917ed/attachment-0001.obj>


More information about the macports-dev mailing list