From: Robin B. <rob...@ex...> - 2003-11-14 18:46:49
|
Hi, I'm not exactly good with C++, and I've only now rejoined the list after quite a number of months away. Sorry if I'm missing something obvious :) I've been trying to build wxPerl on OS X (latest and greatest). I have succesfully built wxMac, though it was missing stc.h which I moved to the right location by hand. I think it went ok overall. However wxPerl doesn't seem to want to build. It fails thusly: c++ -c -I. -I../.. -I/usr/local/lib/wx/include/mac-2.4 -Os -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" -DWXPL_EXT -D__WXMAC__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES STC.c STC.c: In function `void XS_Wx__StyledTextCtrl_GetCursor(PerlInterpreter*, CV*) ': STC.c:3441: error: cannot convert `wxCursor' to `int' in assignment make[2]: *** [STC.o] Error 1 make[1]: *** [subdirs] Error 2 make: *** [subdirs] Error 2 The line in question is: RETVAL = THIS->GetCursor(); XSprePUSH; PUSHi((IV)RETVAL); I monkeyed around, and indeed GetCursor() does return a wxCursor, which looks like it's not an int. Fooling around with the source and the docs didn't get me far. This looks like a bug, am I right? Thanks for any input, -- Robin |
From: Mattia B. <mat...@li...> - 2003-11-15 18:26:36
|
Il Fri, 14 Nov 2003 19:46:34 +0100 Robin Berjon <rob...@ex...> ha scritto: Hello, > I've been trying to build wxPerl on OS X (latest and greatest). I > have > succesfully built wxMac, though it was missing stc.h which I moved > to > the right location by hand. I think it went ok overall. Do you mean that after doing $ cd contrib/src/stc $ make $ make install stc.h wasn't installed? Which wxWindows version are you using? > However wxPerl doesn't seem to want to build. It fails thusly: > > c++ -c -I. -I../.. -I/usr/local/lib/wx/include/mac-2.4 -Os > -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" > "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" > -DWXPL_EXT -D__WXMAC__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 > -D_LARGE_FILES STC.c > STC.c: In function `void > XS_Wx__StyledTextCtrl_GetCursor(PerlInterpreter*, CV*) > ': > STC.c:3441: error: cannot convert `wxCursor' to `int' in assignment > make[2]: *** [STC.o] Error 1 > make[1]: *** [subdirs] Error 2 > make: *** [subdirs] Error 2 > > The line in question is: > > RETVAL = THIS->GetCursor(); > XSprePUSH; PUSHi((IV)RETVAL); > > I monkeyed around, and indeed GetCursor() does return a wxCursor, > which > looks like it's not an int. Fooling around with the source and the > docs > didn't get me far. This looks like a bug, am I right? Yes: reported and fixed in wxPerl 0.18-to-be. For now just comment out the whole body of GetCursor in STC (open ext/stc/XS/StyledTextCtrl.xs and remove the lines int Wx_StyledTextCtrl::GetCursor() HTH Mattia |
From: Robin B. <rob...@ex...> - 2003-11-18 00:52:25
|
Hi, Mattia Barbon wrote: > Il Fri, 14 Nov 2003 19:46:34 +0100 Robin Berjon <rob...@ex...> ha scritto: >>I've been trying to build wxPerl on OS X (latest and greatest). I >>have >>succesfully built wxMac, though it was missing stc.h which I moved >>to >>the right location by hand. I think it went ok overall. > > Do you mean that after doing > > $ cd contrib/src/stc > $ make > $ make install > > stc.h wasn't installed? Which wxWindows version are you using? That doesn't do anything, there's no makefile. If I understand the way the build works, these should get installed by the root make and not on their own. But I could be missing something :) I'm using wxMac-2.4.2. >>I monkeyed around, and indeed GetCursor() does return a wxCursor, >>which >>looks like it's not an int. Fooling around with the source and the >>docs >>didn't get me far. This looks like a bug, am I right? > > Yes: reported and fixed in wxPerl 0.18-to-be. For now just comment out > the whole body of GetCursor in STC (open ext/stc/XS/StyledTextCtrl.xs > and remove the lines > > int > Wx_StyledTextCtrl::GetCursor() Thanks a lot that (almost) did it :) I also had to comment out the newXS()ing of that method and all went well. I get some failed subtests from t/10_oor but they don't look like they'll prevent me from using wxPerl. Just so you know in case it hasn't been reported: t/10_oor..............ok 34/58# Failed test (t/10_oor.t at line 66) # got: 'Wx::SpinButton=SCALAR(0x92dd18)' # expected: 'Wx::SpinCtrl=HASH(0x940d80)' # Failed test (t/10_oor.t at line 78) # got: 'Wx::SpinButton=SCALAR(0x9496e4)' # expected: 'Wx::SpinCtrl=HASH(0x940f3c)' t/10_oor..............ok 58/58# Looks like you failed 2 tests of 58. t/10_oor..............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 35-36 I see that there's some SVG related stuff in the contrib directory as well, has anyone here played with it? -- Robin Berjon |
From: Mattia B. <mat...@li...> - 2003-11-21 23:08:37
|
Il Tue, 18 Nov 2003 09:31:32 +0900 Robin Berjon <rob...@ex...> ha scritto: > Hi, > > Mattia Barbon wrote: > > Il Fri, 14 Nov 2003 19:46:34 +0100 Robin Berjon > <rob...@ex...> ha scritto: > >>I've been trying to build wxPerl on OS X (latest and greatest). I > >>have > >>succesfully built wxMac, though it was missing stc.h which I moved > >>to > >>the right location by hand. I think it went ok overall. > > > > Do you mean that after doing > > > > $ cd contrib/src/stc > > $ make > > $ make install > > > > stc.h wasn't installed? Which wxWindows version are you using? > > That doesn't do anything, there's no makefile. If I understand the > way > the build works, these should get installed by the root make and > not on > their own. But I could be missing something :) I'm using > wxMac-2.4.2. Well. I did give directives above. Did you follow them or not? > >>I monkeyed around, and indeed GetCursor() does return a wxCursor, > >>which > >>looks like it's not an int. Fooling around with the source and the > >>docs > >>didn't get me far. This looks like a bug, am I right? > > > > Yes: reported and fixed in wxPerl 0.18-to-be. For now just > comment out > > the whole body of GetCursor in STC (open > ext/stc/XS/StyledTextCtrl.xs > > and remove the lines > > > > int > > Wx_StyledTextCtrl::GetCursor() > > Thanks a lot that (almost) did it :) I also had to comment out the > newXS()ing of that method and all went well. I get some failed > subtests > from t/10_oor but they don't look like they'll prevent me from using > wxPerl. Just so you know in case it hasn't been reported: > > t/10_oor..............ok 34/58# Failed test (t/10_oor.t at line > 66) > > # got: 'Wx::SpinButton=SCALAR(0x92dd18)' > # expected: 'Wx::SpinCtrl=HASH(0x940d80)' > # Failed test (t/10_oor.t at line 78) > # got: 'Wx::SpinButton=SCALAR(0x9496e4)' > # expected: 'Wx::SpinCtrl=HASH(0x940f3c)' > t/10_oor..............ok 58/58# Looks like you failed 2 tests of 58. > > t/10_oor..............dubious > > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 35-36 > > > I see that there's some SVG related stuff in the contrib directory > as > well, has anyone here played with it? I di not. Regards Mattia |
From: Robin B. <rob...@ex...> - 2003-11-24 11:05:14
|
Mattia Barbon wrote: >>Mattia Barbon wrote: >>>Il Fri, 14 Nov 2003 19:46:34 +0100 Robin Berjon >>> Do you mean that after doing >>> >>>$ cd contrib/src/stc >>>$ make >>>$ make install >>> >>> stc.h wasn't installed? Which wxWindows version are you using? >> >>That doesn't do anything, there's no makefile. If I understand the >>way >>the build works, these should get installed by the root make and >>not on >>their own. But I could be missing something :) I'm using >>wxMac-2.4.2. > > Well. I did give directives above. Did you follow them or not? Yes, I folowed them to the letter. And make just complains that there is no available makefile to run. But don't worry about it, I copied the files over by hand and everything went perfectly well :) Thanks. -- Robin Berjon |
From: Mattia B. <mat...@li...> - 2003-12-06 21:49:36
|
Il Mon, 24 Nov 2003 12:05:13 +0100 Robin Berjon <rob...@ex...> ha scritto: > Mattia Barbon wrote: > >>Mattia Barbon wrote: > >>>Il Fri, 14 Nov 2003 19:46:34 +0100 Robin Berjon > >>> Do you mean that after doing > >>> > >>>$ cd contrib/src/stc > >>>$ make > >>>$ make install > >>> > >>> stc.h wasn't installed? Which wxWindows version are you using? > >> > >>That doesn't do anything, there's no makefile. If I understand the > >>way > >>the build works, these should get installed by the root make and > >>not on > >>their own. But I could be missing something :) I'm using > >>wxMac-2.4.2. > > > > Well. I did give directives above. Did you follow them or not? > > Yes, I folowed them to the letter. :-) > And make just complains that > there is > no available makefile to run. You mean that (assuming you ran wxWindows' configure in /foo/bar) there is /foo/bar/Makefile which you used to build wxWindows but there isn't a /foo/bar/contrib/src/stc/Makefile? This is weird. > But don't worry about it, I copied > the > files over by hand and everything went perfectly well :) This is good (for you at least :-), but I'd like to understand why wxWindows build failed (for contrib). Regards Mattia |