On Mon, Feb 27, 2012 at 3:06 PM, Mark Dootson <mark.doot...@znix.com> wrote:
>
> I need to issue updated Wx and Alien::wxWidgets to allow building wxWidgets
> 2.9.3 on all platforms. I'll ensure that the necessary fixes for Xcode 4.3
> are in place.
>
> In the meantime, it seems your best option is a Perl built with SDK 10.6:
>
> Running the following as the configure script to the Perl 5.14.2 source
> should work. You will have to edit the
> export CUSTOMBUILDPREFIX=/User/myusername/perlpath
> appropriately.
> Also you may wish to remove -Dsiteprefix,-Dsitelib and -Dsitearch if you
> don't want a simplified layout.
>
> You could pass all the options to perlbrew instead, I suppose.
>

Hi Mark,

Thanks for the info and the script, it's been of enormous help!

Here's what I did, based on your information:

$ export 
CUSTOMBUILDSDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

$ export CUSTOMBUILDMINVERSION=10.6

$ perlbrew install 5.14.2 -Dusethreads
-Accflags="-B$CUSTOMBUILDSDK/usr/include/gcc
-B$CUSTOMBUILDSDK/usr/lib/gcc -isystem/$CUSTOMBUILDSDK/usr/include
-F$CUSTOMBUILDSDK/System/Library/Frameworks
-mmacosx-version-min=$CUSTOMBUILDMINVERSION"
-Aldflags="-Wl,-syslibroot,$CUSTOMBUILDSDK
-mmacosx-version-min=$CUSTOMBUILDMINVERSION"
-Alddlflags="-Wl,-syslibroot,$CUSTOMBUILDSDK
-mmacosx-version-min=$CUSTOMBUILDMINVERSION"

After this, Alien::wxWidgets installs correctly (I've kept my symlinks
to /Developer, btw) and Wx.pm almost does too - it dies during
t/21_locale.t . Here's the full output:

http://paste.scsys.co.uk/184481

The only failure is:

#   Failed test 'GetLanguageInfo isa Wx::LanguageInfo'
#   at t/21_locale.t line 9.
#     GetLanguageInfo isn't defined
Can't call method "GetCanonicalName" on an undefined value at
t/21_locale.t line 11.
# Looks like you planned 4 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/21_locale.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests

but I see something odd during the compile step: -mmacosx-version-min=10.5

I suspect I did something wrong and should have added more flags to
the perl build. I thought the SDK ones were enough, but tomorrow I'm
going to try with all the flags you've set in your script.

As usual, any insights would be greatly appreciated :)

Thanks again!

breno

Reply via email to