Hi Mattia,

Here comes the info !

On 26 Sep 2009, at 13:44, Mattia Barbon wrote:

Erik Colson wrote:


<snip>

There is nothing obvious in perl -V/uname to detect a 64bit Mac; could you also try:

sysctl hw.optional.x86_64

Rome:~ ec$ sysctl hw.optional.x86_64
hw.optional.x86_64: 1

sysctl hw.cpu64bit_capable

Rome:~ ec$ sysctl hw.cpu64bit_capable
hw.cpu64bit_capable: 1


- added an Alien::wxWidget for that configuration
I didn't do this

 Sorry: I meant that I did

cd /path/to/Alien-wxWidgets
PATH=/opt/wx/mac-2.8-universal-unicode:$PATH
./Build clean
perl Build.PL
./Build
./Build install

I used cpan to install Alien::wxWidgets which doesn't do the PATH thing, but it found the wxWidgets installation I did ...

This is output from perl Build.PL
wxWidgets 2.8.10 seems to be installed in '/usr/local', so it should be safe to
answer 'no' to the following question:
Do you want to fetch and build wxWidgets from sources? [no ]
no
Deleting Build
Removed previous script 'Build'

Creating new 'Build' script for 'Alien-wxWidgets' version '0.44'

Then I run .Build

sh-3.2# ./Build
Subroutine version::qv redefined at inc/version.pm line 18.
Copying lib/Alien/wxWidgets/Utility.pm -> blib/lib/Alien/wxWidgets/ Utility.pm
Copying lib/Alien/wxWidgets.pm -> blib/lib/Alien/wxWidgets.pm
'gl' library not found: some functionality will be missing
'media' library not found: some functionality will be missing
Manifying blib/lib/Alien/wxWidgets/Utility.pm -> blib/libdoc/ Alien::wxWidgets::Utility.3
Manifying blib/lib/Alien/wxWidgets.pm -> blib/libdoc/Alien::wxWidgets.3

and finally .Build install

sh-3.2# ./Build install
Subroutine version::qv redefined at inc/version.pm line 18.
'gl' library not found: some functionality will be missing
'media' library not found: some functionality will be missing
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Alien/ wxWidgets/Config/mac_2_8_10_gcc_3_4.pm Skipping /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Alien/ wxWidgets.pm (unchanged) Skipping /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Alien/ wxWidgets/Utility.pm (unchanged)
Installing /usr/local/share/man/man3/Alien::wxWidgets.3
Installing /usr/local/share/man/man3/Alien::wxWidgets::Utility.3
Writing /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/auto/Alien/ wxWidgets/.packlist


- perl Makefile.PL went OK, make failed when building stc
- installed stc
- perl Makefile.PL went OK, make went ok as well

what did I do differently from you?
Also I build perl 5.10.1 from source myself, as you might have guessed from perl -V

 Should not make any difference; a couple of things to try:

1)
the output of "wx-config --libs stc" should be somthing like this:

-L/wx/install/path/lib ... -lwx_macud_stc-2.8 -lwx_base_carbonud-2.8


sh-3.2# wx-config --libs stc
-L/usr/local/lib -arch i386 -framework IOKit -framework Carbon - framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lwx_mac_stc-2.8 -lwx_base_carbon-2.8

could you check the stc library in /wx/install/path/lib is named libwx_macud_stc-2.8.dylib?

found libwx_mac_stc-2.8.dylib in /usr/local/lib.
so that should be ok



2)
the output of " perl -MAlien::wxWidgets=:dump -e 42" should be something
like this:

$VAR11 = {
          'compiler_kind' => 'gcc',
          'version' => '2.008004',
          'build' => 'mono',
          'key' => 'mac_2_8_4_dbg_uni_gcc_3_4',
'package' => 'Alien::wxWidgets::Config::mac_2_8_4_dbg_uni_gcc_3_4',
          'compiler_version' => '3.4',
          'mslu' => 0,
          'unicode' => 1,
          'toolkit' => 'mac',
          'debug' => 1
        };


yep,
sh-3.2# perl -MAlien::wxWidgets=:dump -e 42
$VAR1 = {
          'compiler_kind' => 'gcc',
          'version' => '2.008010',
          'build' => 'multi',
          'key' => 'mac_2_8_10_gcc_3_4',
          'package' => 'Alien::wxWidgets::Config::mac_2_8_10_gcc_3_4',
          'compiler_version' => '3.4',
          'mslu' => 0,
          'unicode' => 0,
          'toolkit' => 'mac',
          'debug' => 0
        };


sould you find the Alien::wxWidgets::Config::mac_2_8_4_dbg_uni_gcc_3_4 module and post it here?

and the file is here:
Rome:Config ec$ cat mac_2_8_10_gcc_3_4.pm
package Alien::wxWidgets::Config::mac_2_8_10_gcc_3_4;

use strict;

our %VALUES;

{
    no strict 'vars';
    %VALUES = %{
$VAR1 = {
'defines' => '-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES - D__WXMAC__ ', 'include_path' => '-I/usr/local/lib/wx/include/mac-ansi- release-2.8 -I/usr/local/include/wx-2.8 ', 'alien_package' => 'Alien::wxWidgets::Config::mac_2_8_10_gcc_3_4',
          'version' => '2.008010',
          'alien_base' => 'mac_2_8_10_gcc_3_4',
          'c_flags' => '-arch i386 -UWX_PRECOMP ',
          '_libraries' => {
                            'base' => {
'link' => '- lwx_base_carbon-2.8', 'dll' => 'libwx_base_carbon-2.8.dylib'
                                      },
                            'richtext' => {
'link' => '- lwx_mac_richtext-2.8', 'dll' => 'libwx_mac_richtext-2.8.dylib'
                                          },
                            'core' => {
                                        'link' => '-lwx_mac_core-2.8',
'dll' => 'libwx_mac_core-2.8.dylib'
                                      },
                            'stc' => {
                                       'link' => '-lwx_mac_stc-2.8',
'dll' => 'libwx_mac_stc-2.8.dylib'
                                     },
                            'fl' => {
                                      'link' => '-lwx_mac_fl-2.8',
                                      'dll' => 'libwx_mac_fl-2.8.dylib'
                                    },
                            'aui' => {
                                       'link' => '-lwx_mac_aui-2.8',
'dll' => 'libwx_mac_aui-2.8.dylib'
                                     },
                            'net' => {
'link' => '- lwx_base_carbon_net-2.8', 'dll' => 'libwx_base_carbon_net-2.8.dylib'
                                     },
                            'html' => {
                                        'link' => '-lwx_mac_html-2.8',
'dll' => 'libwx_mac_html-2.8.dylib'
                                      },
                            'gizmos' => {
'link' => '- lwx_mac_gizmos-2.8', 'dll' => 'libwx_mac_gizmos-2.8.dylib'
                                        },
                            'qa' => {
                                      'link' => '-lwx_mac_qa-2.8',
                                      'dll' => 'libwx_mac_qa-2.8.dylib'
                                    },
                            'xml' => {
'link' => '- lwx_base_carbon_xml-2.8', 'dll' => 'libwx_base_carbon_xml-2.8.dylib'
                                     },
                            'xrc' => {
                                       'link' => '-lwx_mac_xrc-2.8',
'dll' => 'libwx_mac_xrc-2.8.dylib'
                                     },
                            'adv' => {
                                       'link' => '-lwx_mac_adv-2.8',
'dll' => 'libwx_mac_adv-2.8.dylib'
                                     }
                          },
          'compiler' => 'g++-4.0',
          'link_flags' => ' -arch i386 ',
          'linker' => 'g++-4.0',
          'config' => {
                        'compiler_version' => '3.4',
                        'compiler_kind' => 'gcc',
                        'mslu' => 0,
                        'toolkit' => 'mac',
                        'unicode' => 0,
                        'debug' => 0,
                        'build' => 'multi'
                      },
          'prefix' => '/usr/local'
        };
    };
}

my $key = substr __PACKAGE__, 1 + rindex __PACKAGE__, ':';

sub values { %VALUES, key => $key }

sub config {
   +{ %{$VALUES{config}},
      package       => __PACKAGE__,
      key           => $key,
      version       => $VALUES{version},
      }
}

1;


--
Erik

Reply via email to