Adam Witney wrote:

  Hi,

I am trying to install wxWidgets and wxPerl on OSX 10.6.

There are lots of notes online about different ways (32 bit, 64 bit, wxWidgets 
2.8.11, 2.9.1 etc) to get it running, but none have yet been successful for me. 
I was wondering which method people have found to be successful?

Installing like this, for 32bit (OSX 10.6.4, perl 5.10.0)

You are jumping through a lot of hoops... with a 32 bit Perl, just installing from CPAN is supposed to work. If it does not, it is a but and needs to be fixed. ASAP.

Have you tried a simple CPAN build? If you did, could you post the error log?

Regards,
Mattia

## wxMac

$ cd wxMac-2.8.11
$ mkdir osx-build
$ cd osx-build
$ export arch_flags="-arch i386"
$ ../configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" 
LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --disable-shared --with-opengl
$ make
$ sudo make install

wxPerl does not support linking against a static wxWidgets, so the --disable-shared is going to cause trouble down the line...

## Alien-wxWidgets

$ cd Alien-wxWidgets-0.51
$ export WX_CONFIG=/usr/local/install/wxMac-2.8.11/osx-build/wx-config

# Edit inc/My/Build/Any_wx_config_Bakefile.pm, add at line 33

    } elsif ( $^O eq 'darwin' ) {
        $libname_re = '-l((\w+)-.*)';
        $libsuffix = '.a';
    } else {

...for example here.

Regards,
Mattia

Reply via email to