wxwidgets 2.8.12 (and Alien::wxWidgets) on OSX Lion

I can finally make this a short post!

I was able to combine the advice found in this post http://wiki.wxwidgets.org/Development:_wxMac  and some messages from the gurus on the wxPerl mailing list to other Lion builders.

To build Alien::wxWidgets 2.8.12, as well as (and this was the crux) Wx::Scintilla, on OSX 10.7 (Lion), I’m using:

CFLAGS='-arch i386' CXXFLAGS='-arch i386' CPPFLAGS='-arch i386' LDFLAGS='-arch i386' OBJCFLAGS='-arch i386' OBJCXXFLAGS='-arch i386' perl Build* --wxWidgets-extraflags=" --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 " --wxWidgets-build='yes' --wxWidgets-source='tar.bz2' --wxWidgets-version=2.8.12

*For simplicity I use the same environment and arguments for the ./Build.PL and ./Build step

Note a few things:

  1. I am using a 32 bit perl (info below) because I am using wx 2.8.12
  2. Thus I must include all those -arch prefixes when building (see link above)
  3. I set the Min version to 10.6, though I have only been able to test on 10.7
  4. The same flags must be used for wx-things like Wx::Scintilla – in my semi-automated build I drop into a cpanm –look to build these right now, but I hope to include them into my padre-brew.pl script shortly.

 

Post to Twitter Post to Digg Post to Facebook Send Gmail Post to LinkedIn Post to Reddit Post to StumbleUpon

About Tom
I work in a healthcare technology startup. These days, I attempt to code in Perl, and this blog is about the Wild Perl we write, startup life, and many other things.

2 Responses to wxwidgets 2.8.12 (and Alien::wxWidgets) on OSX Lion

  1. Erik Colson says:

    Hello.

    I installed Perl 5.14 with wxwidgets 2.9.2 with some help of Marc (wxperl users list). Everything in 64bit.

    Best

  2. Tom says:

    Hi Erik,

    Thanks for your reply. I think I saw your post here: http://www.nntp.perl.org/group/perl.wxperl.users/2011/07/msg8172.html

    I’m hoping to figure it out if I can, but I may ultimately post to the wxPerl list and see if Mark has more sage advice for me as well.

    Unfortunately, I’m doing this in the context of building Padre, and I’ve been trying to get it to work with the stable branch of wx which is 2.8.12.

    So building using the flags I saw there results in an error covered by the second link in my post (erro In static member function ‘static int wxLocale::GetSystemLanguage()’).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>