From: Mattia B. <mb...@ds...> - 2002-02-24 13:31:36
|
> Hi. I downloaded and compiled wxMac 2.3.2, then compiled and ran both the minimal > app and the grid app without problems. I then built wxPerl and ran > a make test, but it failed all tests. Regardless, I installed it > and ran a few samples, and none of them worked. The errors are samples work even if wxPerl is uninstalled ( use "perl run samplename" ) > provided below. > [localhost:~/Documents/Wx/Wx-0.08] matt% make test > make[1]: Nothing to be done for `all'. > make[1]: Nothing to be done for `all'. > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/1_load............ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. > Compilation failed in require at t/1_load.t line 6. As a workaround you should change in cpp/helpers.h, around line 300 class WXPLDLL wxPliClassInfo:public wxClassInfo { public: wxPliClassInfo( wxChar *cName, wxChar *baseName1, wxChar *baseName2, int sz, wxPliGetCallbackObjectFn fn ) :wxClassInfo( cName, baseName1, baseName2, sz, 0) { m_func = fn; //FIXME// m_baseInfo1 = wxClassInfo::FindClass( baseName1 ); // >>>>>>>> HERE, comment out with // the following two lines <<<<<<< //if( m_baseInfo1 == 0 ) //croak( "ClassInfo initialization failed '%s'", baseName1 ); } public: wxPliGetCallbackObjectFn m_func; }; BTW this is a workaround and it is being fixed in wxMac; please note that if you want to run wxPerl on Mac you should debug problems yourself ( you can always ask here, but since I don't have a Mac, nor I ever used one, I can't be of much help ) HTH Mattia |