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)
## 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
## 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 {
$ perl Build.PL
$ perl Build
$ perl Build test
$ sudo perl Build install
## Wx
$ cd Wx-0.9702
# Edit
/usr/local/lib/perl5/site_perl//5.10.1/darwin-2level/Alien/wxWidgets/Config/mac_2_8_11_gcc_3_4.pm
line 18
'_libraries' => { 'core' => { 'link' => '-lwx_mac_core-2.8', 'dll' =>
'libwx_mac_core-2.8.dylib' }, 'xrc' => { 'link' => '-lwx_mac_xrc-2.8', 'dll' =>
'libwx_mac_xrc-2.8.dylib' }, 'base' => { 'link' => '-lwx_base_carbon-2.8',
'dll' => 'libwx_base_carbon-2.8.dylib' }, 'qa' => { 'link' =>
'-lwx_mac_qa-2.8', 'dll' => 'libwx_mac_qa-2.8.dylib' }, 'adv' => { 'link' =>
'-lwx_mac_adv-2.8', 'dll' => 'libwx_mac_adv-2.8.dylib' }, 'aui' => { 'link' =>
'-lwx_mac_aui-2.8', 'dll' => 'libwx_mac_aui-2.8.dylib' }, 'richtext' => {
'link' => '- lwx_mac_richtext-2.8', 'dll' => 'libwx_mac_richtext-2.8.dylib' },
'html' => { 'link' => '-lwx_mac_html-2.8', 'dll' => 'libwx_mac_html-2.8.dylib'
}, 'net' => { 'link' => '- lwx_base_carbon_net-2.8', 'dll' =>
'libwx_base_carbon_net-2.8.dylib' }, 'xml' => { 'link' => '-
lwx_base_carbon_xml-2.8', 'dll' => 'libwx_base_carbon_xml-2.8.dylib' }, 'stc'
=> { 'link' => '-lwx_mac_stc-2.8', 'dll' => 'libwx_mac_stc-2.8.dylib' }},
$ perl Makefile.PL
$ make
$ make test
Then all the tests fail with:
Compilation failed in require at t/01_load.t line 8.
BEGIN failed--compilation aborted at t/01_load.t line 8.
t/01_load.............NOK 1/6# Looks like you planned 6 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/01_load.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/02_inheritance......Can't load
'/usr/local/install/Wx-0.9702/blib/arch/auto/Wx/Wx.bundle' for module Wx:
dlopen(/usr/local/install/Wx-0.9702/blib/arch/auto/Wx/Wx.bundle, 2): Symbol not
found: __ZN10wxFontBase18ms_encodingDefaultE
Referenced from: /usr/local/install/Wx-0.9702/blib/arch/auto/Wx/Wx.bundle
Expected in: flat namespace
in /usr/local/install/Wx-0.9702/blib/arch/auto/Wx/Wx.bundle at
/System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207.
at t/02_inheritance.t line 4
Does anyone have a proven method of installing wxPerl?
thanks for any help
adam