Hi all,
I was having some problems upgrading to 0.92 on Windows yesterday; my
Strawberry install seemed broken so I reinstalled from scratch with the
.msi.
After installing Alien::wxWidgets and Wx-0.92 though, I'm not able to
install Wx::ActiveX [1].
Neither the README.txt nor a brief look over the wxWidgets class docs
for wxActiveXContainer and wxActiveXEvent indicate that I need to do
anything special to 'get' wxActiveX built on Windows. README.txt says
"If you have built your own Alien::wxWidgets ... then the standard
methods should work:" and says that Strawberry only requires a
straight-forward perl Makefile.PL, dmake, test, install. However, I get
a string of errors, attached below and also pastecoded:
http://paste.ideaslabs.com/show/cDcRYWNZU3
Any advice on what could be causing this error would be greatly appreciated.
Many thanks,
-- Ryan
[1] I want to install it to hopefully run a demo and see how it makes
the wxActiveX events available to wxPerl, so I can do the same thing for
Wx::WebKit. I've been reading the code, it's just tricky because it's
got a code generation thing going on [1], and it's a bit hard to get a
handle on what the code looks like as a whole. I've seen there's the
need for something called Wx::NewEventType, just not how to use it
exactly. It looks like there's some debugging flag I'll be able to set
to get the generated code dumped out somewhere though.
See sub activex_get_event_types and activex_get_event_code:
http://cpansearch.perl.org/src/MDOOTSON/Wx-ActiveX-0.10/lib/Wx/ActiveX.pm
g++ -fvtable-thunks -O2 -mthreads -Os -c -I.
-IC:\strawberry\perl\site\lib\Wx
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\lib
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include
-s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\" "-IC:\strawberry\perl\lib\CORE" -DWXPL_EXT
-DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA
ActiveX.c
cc1plus.exe: warning: switch "-fvtable-thunks" is no longer supported
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:49,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:395:42:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:49,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:395:
error: expected primary-expression before ';' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:398:49:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:398:
error: expected primary-expression before ';' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:401:49:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:401:
error: expected primary-expression before ';' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4306:
error: expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4306:
error: expected `)' before '(' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4324:65:
macro "PerlLIO_open" passed 3 arguments, but takes just 2
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4324:
error: expected `;' before "const"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4353:
error: expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4353:
error: expected `)' before '(' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4483,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/messages_members.h:50:18:
macro "PerlLIO_open" passed 3 arguments, but takes just 2
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4483,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/messages_members.h:49:
error: expected initializer before "const"
In file included from ./cpp/wxactivex.cpp:77,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233:64:
macro "PerlLIO_open" passed 5 arguments, but takes just 2
In file included from ./cpp/wxactivex.cpp:77,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
ISO C++ forbids initialization of member `PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
making `PerlLIO_open' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
`PerlLIO_open' declared as a `virtual' field
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:234: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:234: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335:24:
macro "PerlSock_select" requires 5 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
ISO C++ forbids initialization of member `PerlSock_select'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
making `PerlSock_select' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlSock_select'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
`PerlSock_select' declared as a `virtual' field
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:501: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:501: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508:66:
macro "PerlLIO_open" passed 5 arguments, but takes just 2
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
ISO C++ forbids initialization of member `PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
making `PerlLIO_open' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
`PerlLIO_open' declared as a `virtual' field
In file included from ActiveX.xs:22:
./cpp/wxactivex.cpp:1882:16: warning: multi-character character constant
./cpp/wxactivex.cpp:1916:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1920:16: warning: multi-character character constant
./cpp/wxactivex.cpp:1963:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1970:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1973:16: warning: multi-character character constant
In file included from ActiveX.c:82:
./cpp/PlActiveX.h:32: error: no matching function for call to
`wxPliClassInfo::wxPliClassInfo(wxChar*, wxClassInfo*, NULL, int,
wxPliSelfRef*(*)(wxObject*))'
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:670: note: candidates are:
wxPliClassInfo::wxPliClassInfo(const wxPliClassInfo&)
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:687: note:
wxPliClassInfo::wxPliClassInfo(wxChar*, const wxClassInfo*, const wxClassInfo*,
int, wxObject*(*)(), wxPliSelfRef*(*)(wxObject*))
./cpp/PlActiveX.h:55: error: no matching function for call to
`wxPliClassInfo::wxPliClassInfo(wxChar*, wxClassInfo*, NULL, int,
wxPliSelfRef*(*)(wxObject*))'
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:670: note: candidates are:
wxPliClassInfo::wxPliClassInfo(const wxPliClassInfo&)
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:687: note:
wxPliClassInfo::wxPliClassInfo(wxChar*, const wxClassInfo*, const wxClassInfo*,
int, wxObject*(*)(), wxPliSelfRef*(*)(wxObject*))
./cpp/PlActiveX.h:79: error: no matching function for call to
`wxPliClassInfo::wxPliClassInfo(wxChar*, wxClassInfo*, NULL, int,
wxPliSelfRef*(*)(wxObject*))'
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:670: note: candidates are:
wxPliClassInfo::wxPliClassInfo(const wxPliClassInfo&)
C:/strawberry/perl/site/lib/Wx/cpp/helpers.h:687: note:
wxPliClassInfo::wxPliClassInfo(wxChar*, const wxClassInfo*, const wxClassInfo*,
int, wxObject*(*)(), wxPliSelfRef*(*)(wxObject*))
dmake: Error code 129, while making 'ActiveX.o'