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

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

Any clues as to what exactly am I doing wrong?

Thanks! And thanks again for all the amazing work!

garu


Reply via email to