Subject: | Wx-0.81 fails to build on Solaris 8 / Motif |
The latest Wx-0.81 does not compile on Solaris 8 (Sparc). This seems
to be due to the new wxStyledTextCtrl support. My wx-2.8.7 (motif
flavor) has wxUSE_DRAG_AND_DROP set to 0 in the setup.h, and hence the
wx/dnd.h does not define anything, which causes these compile errors:
$ g++ -c -I/opt/perl_5.8.8/ext/include -I. -I../.. -
I/opt/perl_5.8.8/ext/lib/wx/include/MOTIF-ansi-release-2.8 -
I/opt/perl_5.8.8/ext/include/wx-2.8 -pthreads -O2 -mcpu=v9 -
DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-
I/opt/perl_5.8.8/lib/CORE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -
D_LARGE_FILES -D__WXMOTIF__ -D_REENTRANT STC.c
STC.c: In function 'void XS_Wx__StyledTextCtrl_DoDragOver(CV*)':
STC.c:5873: error: 'wxDragResult' was not declared in this scope
STC.c:5873: error: expected `;' before 'def'
STC.c:5875: error: expected `;' before 'RETVAL'
STC.c:5878: error: 'RETVAL' was not declared in this scope
STC.c:5878: error: 'class wxStyledTextCtrl' has no member
named 'DoDragOver'
STC.c:5878: error: 'def' was not declared in this scope
STC.c: In function 'void XS_Wx__StyledTextCtrl_DoDropText(CV*)':
STC.c:5900: error: 'class wxStyledTextCtrl' has no member
named 'DoDropText'
I also have Linux, and there wxUSE_DRAG_AND_DROP is 1 and all is fine.
Seems that wx-2.8.7 does not support drag and drop on Solaris/Motif -
however I think that the Perl Wx module should work as far as possible
on this platform as well.
Wx-0.80 compiles and tests OK on wx-2.8.7/Solaris 8/Motif. But it
works much less stable with Wx::Demo than the GTK2 variant on Linux :-/
Cheers,
Marek