From: Mattia B. <mat...@li...> - 2006-07-20 18:31:41
|
On Sun, 16 Jul 2006 17:50:45 -0700 Eric Wilhelm <scr...@gm...> wrote: > (sorry, that earlier message was actually on 0.27, but it appears to > have the same problem.) > > I'm seeing the same problem on 10.4.6, wx2.6.3, wxperl0.27, and xcode > 2.3_8mumble. But on 0.53 I'm getting: > > Wx.c: In function 'void XS_Wx__Sound_newDefault(... > Wx.c:10133: error: 'wxSound' was not declared in this scope > > (because my wxwidgets build started complaining about movies so I > disabled wxsound -- hey, I've got enough problems as it is :-) Apparently you created another one :-) wxPerl 0.54 works for me with wxWidgets 2.6.3. > Anyway, this patch gets me past the build issues on 0.27 and all tests > successful. > > http://scratchcomputing.com/tmp/MacOSX_GCC.pm.patch > > It applies cleanly on 0.53. Maybe someone without my sound problem can > verify that it works? I'm guessing it needs to be conditional on > `xcodebuild -version` ? Alternate tentative patch below. Regards Mattia Index: build/Wx/build/MakeMaker/MacOSX_GCC.pm =================================================================== RCS file: /cvsroot/wxperl/wxPerl/build/Wx/build/MakeMaker/MacOSX_GCC.pm,v retrieving revision 1.11 diff -u -2 -r1.11 MacOSX_GCC.pm --- build/Wx/build/MakeMaker/MacOSX_GCC.pm 29 May 2006 19:05:40 -0000 1.11 +++ build/Wx/build/MakeMaker/MacOSX_GCC.pm 20 Jul 2006 18:29:36 -0000 @@ -70,7 +70,7 @@ wxPerl : Makefile %s cd cpp/wxPerl.osx && xcodebuild -project wxPerl.xcode - cp -p $(PERL) cpp/wxPerl.osx/build/wxPerl.app/Contents/MacOS/wxPerl + cp -p $(PERL) `find cpp -name wxPerl.app`/Contents/MacOS/wxPerl mkdir -p $(INST_ARCHLIB)/auto/Wx - cp -rp cpp/wxPerl.osx/build/wxPerl.app $(INST_ARCHLIB)/auto/Wx + cp -rp `find cpp -name wxPerl.app` $(INST_ARCHLIB)/auto/Wx $(CC) cpp/wxPerl.osx/wxPerl.c -o wxPerl |