Adam Witney wrote:
Hi Mattia,

here are the outputs:

$ file /Users/adam/<snip>/arch/auto/Wx/Wx.bundle
$ otool -L /Users/adam/<snip>/arch/auto/Wx/Wx.bundle

$ file /Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle
/Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle: Mach-O 
universal binary with 3 architectures
/Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle (for 
architecture x86_64): Mach-O 64-bit bundle x86_64
/Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle (for 
architecture i386):   Mach-O bundle i386
/Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle (for 
architecture ppc7400):        Mach-O bundle ppc

$ otool -L  /Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle
/Users/adam/.cpan/build/Wx-0.9702-JGOpZU/blib/arch/auto/Wx/Wx.bundle:
        /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 
7.2.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.3)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 125.2.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 
7.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.9.0)

This is wrong on many levels... first Wx.bundle should link to the dynamic wxWidgets libs; since it does not, either you are linking to the static libs (unsupported) or the not linking at all to the wxWidgets libraries (which can't work).

If you have the static wxWidgets still installed, could you please remove them and the associated Alien::wxWidgets installation and start from scratch?

$ file <one of wxWidgets' dylib files>

$ file /usr/lib/libexpat.1.dylib
/usr/lib/libexpat.1.dylib: Mach-O universal binary with 3 architectures
/usr/lib/libexpat.1.dylib (for architecture x86_64):    Mach-O 64-bit 
dynamically linked shared library x86_64
/usr/lib/libexpat.1.dylib (for architecture i386):      Mach-O dynamically 
linked shared library i386
/usr/lib/libexpat.1.dylib (for architecture ppc7400):   Mach-O dynamically 
linked shared library ppc

Err... this is expat, not wxWidgets... the wxWidgets libraries are called libwx_*.dylib.

Separately, I did also manage to compile wxWidgets 2.9.1, but I couldn't get 
Wx-0.9702 to 'make' against that.

I have some uncommitted fixes for that that will be in the next wxPerl release.

Regards,
Mattia

Reply via email to