Okay, so Windows and I, we're not the best of friends, and I've been
fighting WxMozilla trying to get my Wx::Mozilla module working. Works
on Linux, and works on OS X (though I needed the source distribution
of firefox to get that going), but Windows... not so much, really.
After fighting the build procedure, roundly cursing the MinGW install
instructions, and hardcoding the heck out of stuff, I finally get

g++ -shared -s -o blib\arch\auto\Wx\Mozilla\Mozilla.dll
Mozilla.o C:\
Perl\lib\CORE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -ladv
api32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lve
rsion -lodbc32 -lodbccp32 -lmsvcrt Mozilla.def
Mozilla.o(.text+0x3d):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x45):Mozilla.c: undefined reference to `Perl_Tstack_sp_ptr'
Mozilla.o(.text+0x52):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x5a):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0x65):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x6d):Mozilla.c: undefined reference to
Mozilla.o(.text+0x8c):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x94):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0xd5):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0xdd):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0xea):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x11b):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x123):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0x130):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x178):Mozilla.c: undefined reference to `_imp__wxEmptyString'
Mozilla.o(.text+0x189):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x191):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0x1a5):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x1ad):Mozilla.c: undefined reference to `Perl_Tstack_base_ptr'
Mozilla.o(.text+0x1ce):Mozilla.c: undefined reference to
Mozilla.o(.text+0x1f1):Mozilla.c: undefined reference to `_imp__wxDefaultSize'
Mozilla.o(.text+0x231):Mozilla.c: undefined reference to
Mozilla.o(.text+0x23c):Mozilla.c: undefined reference to
Mozilla.o(.text+0x2a9):Mozilla.c: undefined reference to
zillaBrowser(wxWindow*, int, wxPoint const&, wxSize const&, long,
wxString const
Mozilla.o(.text+0x2b5):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x2d7):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x2df):Mozilla.c: undefined reference to `Perl_sv_newmortal'
Mozilla.o(.text+0x2ea):Mozilla.c: undefined reference to `Perl_get_context'
Mozilla.o(.text+0x2f2)NMAKE : fatal error U1058: terminated by user

Which is to say it builds (against the wxMozilla source) but
obviously the link, it's not working too well.

The two things that puzzle me here are:

1) The failure to find the perl symbols. I've got the latest
ActivePerl and I installed the fake config module as recommended.

2) How to convince the build to find the libraries it needs in the
WxMozilla install directory.

#1 is definitely odd, and sorta worrisome -- I'm thinking I screwed
something up in there somehow.

#2 is less odd and more likely just plain old ignorance. The
WxMozilla install has a mess of DLLs under the gre/ directory and,
well, I'm not sure how to link to them. The build instructions for
WxMozilla say it's a MSVC build, rather than a MinGW build, so I'm
not sure what (if anything) special needs to be done. (On the other
hand, it looks a lot like the install's actually broken, since the
demos don't even run, but I don't know enough to tell, and I'm trying
to not reubild *that* too)

If I don't get lucky, and have to rebuild WxMozilla from source I'm
going to have to go rebuild the base Wx package from source too,
which I admit worries me some. Is this likely to cause me problems
down the road in generating a PPM that's actually installable and
usable against the base WxPerl PPM install? (Since WxMozilla's MSVC

--------------------------------------it's like this-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupwxperl-users @
postedMar 19, '06 at 2:52a
activeMar 20, '06 at 2:34p

2 users in discussion

Dan Sugalski: 2 posts Mattia Barbon \: 1 post



site design / logo © 2019 Grokbase