Thanks, Mark! For the explanation and for such a quick response. I don't really care about my perl installation, I'm just trying to figure out the minimum steps to get people running Wx::Demo and Padre on OSX+perlbrew :)
So far I know we need -Dusethreads -Duseithreads -Duseshrplib and SDK integration. I tried removing the i386 bits and this is what I have left: perlbrew install perl-5.16.3 \ -Dcc=gcc \ -Dld=g++ \ -Dusethreads \ -Duseithreads \ -Duseshrplib \ -Accflags="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" -Accflags="-mmacosx-version-min=10.6" \ -Accflags="-DUSE_SITECUSTOMIZE -Duselargefiles -fno-merge-constants" -Aldflags="-Wl,-search_paths_first" -Aldflags="-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6" -Alddlflags="-Wl,-search_paths_first" -Alddlflags="-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6" installation went smoothly and this time "cpanm Alien::wxWidgets" also built without issues. But when I tried "cpanm Wx" I got this: http://paste.scsys.co.uk/244269 Did I miss something (again)? I'm more than happy to try and reinstall perl 5.16.3 with different flags. I even tried the alternative "minimal" perlbrew installation described on the wiki: perlbrew install perl-5.16.3 \ -Dcc=gcc \ -Dld=g++ \ -Dusethreads \ -Duseithreads \ -Duseshrplib \ -Accflags="-DUSE_SITECUSTOMIZE -Duselargefiles -fno-merge-constants" \ -Aldflags="-Wl,-search_paths_first" \ -Alddlflags="-Wl,-search_paths_first" And the same thing happened (perl installs ok, Alien::wxWidget too, but Wx fails). Here's the paste for Wx: http://paste.scsys.co.uk/244276 As usual, any helps and insights on where I screwed up will be greatly appreciated. Thanks again! Cheers, garu On Wed, Apr 24, 2013 at 8:53 PM, Mark Dootson <mark.doot...@znix.com> wrote: > Hi, > > The WiKi instructions are for forcing a 32 bit carbon build of wxWidgets > 2.8.12. They worked with XCode up to around 4.3 I think but some extras are > required for latest XCode. > > So, assuming you want to stick with your 32 bit Perl and wxWidgets 2.8.12 > you need to build Alien::wxWidgets from the command line with > > perl Build.PL \ > --wxWidgets-version=2.8.12 \ > --wxWidgets-source=tar.gz \ > --wxWidgets-build=1 \ > --wxWidgets-build-opengl=1 \ > --wxWidgets-extraflags=" CFLAGS='-arch i386' CXXFLAGS='-arch i386' > CPPFLAGS='-arch i386' LDFLAGS='-arch i386' > OBJCFLAGS='-arch i386' OBJCXXFLAGS='-arch i386' > > --with-macosx-sdk=/**Applications/Xcode.app/** > Contents/Developer/Platforms/**MacOSX.platform/Developer/**SDKs/MacOSX10.7.sdk > > --with-macosx-version-min=10.6 > > > You could also choose to build a 32 bit cocoa wxWidgets 2.9.4 > > perl Build.PL \ > --wxWidgets-version=2.9.4 \ > --wxWidgets-source=tar.bz2 \ > --wxWidgets-build=1 \ > --wxWidgets-build-opengl=1 \ > --wxWidgets-extraflags=" CFLAGS='-arch i386' CXXFLAGS='-arch i386' > CPPFLAGS='-arch i386' LDFLAGS='-arch i386' > OBJCFLAGS='-arch i386' OBJCXXFLAGS='-arch i386' > > --with-macosx-sdk=/**Applications/Xcode.app/** > Contents/Developer/Platforms/**MacOSX.platform/Developer/**SDKs/MacOSX10.7.sdk > > --with-macosx-version-min=10.6 > --with-osx_cocoa " > > > > If you had built a standard 64 bit Perl for MacOSX the Alien::wxWidgets > would have installed a 64 bit cocoa wxWidgets 2.9.4 without intervention > from yourself. This is the default. > > > Regards > > Mark > > > > > > > > On 25/04/2013 00:35, breno wrote: > >> Hi Mark, hi everyone! >> >> I know you probably sigh every time someone talks about this particular >> subject on the list, but I also know you strive to make wxPerl awesome and >> easy to install, so I had to share: >> >> I was at the wiki (thanks for putting it back online!!) looking at the >> best >> way to install WxPerl on a Mac. I have a OS X version 10.7.5, so here's >> what I did: >> >> perlbrew install perl-5.16.3 \ >> -Dcc=gcc \ >> -Dld=g++ \ >> -Dusethreads \ >> -Duseithreads \ >> -Duseshrplib \ >> -Accflags="-isysroot >> /Applications/Xcode.app/**Contents/Developer/Platforms/** >> MacOSX.platform/Developer/**SDKs/MacOSX10.7.sdk" >> \ >> -Accflags="-mmacosx-version-**min=10.6" \ >> -Accflags="-arch i386 -DUSE_SITECUSTOMIZE -Duselargefiles >> -fno-merge-constants" \ >> -Aldflags="-Wl,-search_paths_**first -arch i386" \ >> -Aldflags="-syslibroot,/**Applications/Xcode.app/** >> Contents/Developer/Platforms/**MacOSX.platform/Developer/** >> SDKs/MacOSX10.7.sdk >> -mmacosx-version-min=10.6" \ >> -Alddlflags="-Wl,-search_**paths_first -arch i386" \ >> -Alddlflags="-syslibroot,/**Applications/Xcode.app/** >> Contents/Developer/Platforms/**MacOSX.platform/Developer/** >> SDKs/MacOSX10.7.sdk >> -mmacosx-version-min=10.6" >> >> It installed ok. Just to make sure, here's the output of "perl -V": >> http://paste.scsys.co.uk/**244097 <http://paste.scsys.co.uk/244097> >> >> The path >> "/Applications/Xcode.app/**Contents/Developer/Platforms/** >> MacOSX,platform/Developer/**SDKs/MacOSX10.7.sdk" >> exists on my system (which has Xcode 4.6.2 4H1003, btw). >> >> However, when I tried installing Alien::wxWidgets, this is what I got: >> >> http://paste.scsys.co.uk/**244096 <http://paste.scsys.co.uk/244096> >> >> Any clues as to what exactly am I doing wrong? >> >> Thanks! And thanks again for all the amazing work! >> >> garu >> >> >