Hi Mark,

I'm using Linux not Mac, but when I do 2.9.2, I get an error message saying
only 2.8.10, 2.8.11 or 2.9.0 allowed. 

It doesn't show the fabled 2.9.1 or indeed 2.9.2, where I get the message.

Interesting that Erik managed to get so far with 2.9.1.  Is it platform
dependent?

Hi Erik, congrats on your new Mac.

Regards

Steve




-----Original Message-----
From: Mark Dootson [mailto:mark.doot...@znix.com] 
Sent: 23 July 2011 13:48
To: wxperl-users@perl.org
Subject: Re: wxPerl on Macosx Lion

Hi,

To build all current wxWidgets, either stable or development, you need 
to use SDK 10.6 or below I think.

The code pasted below is untested but should probably work using 
Alien::wxWidgets from SVN to get you a 2.9.2 build

perl Build.PL --wxWidgets-extraflags=" 
--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk 
--with-macosx-version-min=10.5" --wxWidgets-build='yes' 
--wxWidgets-source='tar.bz2' --wxWidgets-version=2.9.2

Regards

Mark


On 22/07/2011 20:54, Erik Colson wrote:
> Ehlo,
>
> So I got a brand new Macbook Air today and launched
>     cpan install Alien::wxWidgets
>
> wxWidgets 2.9.1 failed to build with this error:
>
>
/private/var/root/.cpan/build/Alien-wxWidgets-0.52-4MCRKr/wxWidgets-2.9.1/bl
d/bk-deps g++ -mmacosx-version-min=10.5 -c -o coredll_utils_osx.o
-I./.pch/wxprec_coredll -D__WXOSX_COCOA__      -DWXBUILDING
-I/private/var/root/.cpan/build/Alien-wxWidgets-0.52-4MCRKr/wxWidgets-2.9.1/
bld/src/tiff/libtiff -I../src/tiff/libtiff -I../src/jpeg -I../src/png
-I../src/regex  -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic
-fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -Wno-deprecated-declarations -D_FILE_OFFSET_BITS=64
-I/private/var/root/.cpan/build/Alien-wxWidgets-0.52-4MCRKr/wxWidgets-2.9.1/
bld/lib/wx/include/osx_cocoa-unicode-2.9 -I../include -DWX_PRECOMP -O2
-fno-strict-aliasing -fno-common -fvisibility=hidden
-fvisibility-inlines-hidden ../src/osx/utils_osx.cpp
> ../src/osx/utils_osx.cpp: In function 'int wxDisplayDepth()':
> ../src/osx/utils_osx.cpp:71: error: 'CGDisplayBitsPerPixel' was not
declared in this scope
> make: *** [coredll_utils_osx.o] Error 1
> system: make all: 512 at ./Build line 60
>    MDOOTSON/Alien-wxWidgets-0.52.tar.gz
>    ./Build -- NOT OK
>
> any idea ? or maybe wxWidgets does not support Lion (yet) ?
> --
> erik

Reply via email to