On 24/11/10 06.17, Jonathan Otsuka wrote:

On Nov 23, 2010, at 3:04 PM, Mattia Barbon wrote:

On 16/11/10 21.56, Jonathan Otsuka wrote:
I am trying to get Alien::wxWidgets to install manually by following installing 
_and_ upgrading wxWidgets and wxPerl steps found on 
http://padre.perlide.org/trac/wiki/DownloadMacOSX:

http://paste.scsys.co.uk/56269

  Which wxWidgets version did you install?  In the log above the wxWidgest 
version you copied in the build directory was not used (because you were 
running from the CPAN shell).

mbp:~ dj_goku$ wxPerl -MWx -le'print  "Wx Version: $Wx::VERSION " . 
Wx::wxVERSION_STRING()'
Wx Version: 0.98 wxWidgets 2.8.8

I don't think I actually installed either of these unless they came along with 
Padre or something else I have installed.

<snip>

  Could you paste the output of:

$ perl -MAlien::wxWidgets=:dump -e 42

mbp:~ dj_goku$ perl -MAlien::wxWidgets=:dump -e 42
Can't locate Alien/wxWidgets.pm in @INC (@INC contains: 
/Users/dj_goku/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin-thread-multi-2level
 /Users/dj_goku/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2 
/Users/dj_goku/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/darwin-thread-multi-2level
 /Users/dj_goku/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2 .).
BEGIN failed--compilation aborted.

After cpan Alien::wxWidgets:

mbp:build dj_goku$  perl -MAlien::wxWidgets=:dump -e 42
$VAR1 = {
           'compiler_kind' =>  'gcc',
           'version' =>  '2.008008',
           'build' =>  'mono',
           'key' =>  'mac_2_8_8_dbg_uni_gcc_3_4',
           'package' =>  'Alien::wxWidgets::Config::mac_2_8_8_dbg_uni_gcc_3_4',
           'compiler_version' =>  '3.4',
           'mslu' =>  0,
           'unicode' =>  1,
           'toolkit' =>  'mac',
           'debug' =>  1
         };


$ otool -L .../Wx-0.98-Q6o59_/blib/arch/auto/Wx/Wx.bundle

/Users/dj_goku/.cpan/build/Wx-0.98-U6c0Z2/blib/arch/auto/Wx/Wx.bundle:
        
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
 (compatibility version 1.0.0, current version 38.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.9.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 125.2.1)

This is the problem: wxPerl is not linked to wxWidgets, and the reason is:


and Wx build log?

http://paste.scsys.co.uk/56964

ld: warning: in /usr/lib/libwx_macud-2.8.dylib, missing required architecture x86_64 in file

You are likely using a 64 bit Perl with a 32 bit wxWidgets; I'll add an error message to Alien::wxWidgets/wxPerl. The way out is to recompile Perl as a 32 bit binary.

Regards,
Mattia

Reply via email to