Subject: win perl bindings
From: Joaquin Cuenca Abela (cuenca@pacaterie.u-psud.fr)
Date: Sat Aug 25 2001 - 15:42:47 CDT
I've been working a while on the perl bindings for windows.
I've been able to embed the perl interpreter in a little toy app, and I'm
trying to pass this code to abiword. I've put this code in xp land. It
should work without changes in linux, and thus it superseds the code lying
at AP_UnixApp, but I've not yet tried it... I will try when the windows
version will be up & working.
After some glitches (you don't want to know all the details...) I've passed
the compile phase, but now the linker it's complaining... (I'm building
using the Makefiles).
I've got:
Linking
/cygdrive/c/abisource/abiword-0.9.2/abi/src/WIN32_1.3.2_i386_OBJ/bin/Abi
Word.exe....
LINK : fatal error LNK1104: cannot open file "\\C\Perl\lib\CORE\perl56.lib"
make[4]: ***
[/cygdrive/c/abisource/abiword-0.9.2/abi/src/WIN32_1.3.2_i386_OBJ/b
in/AbiWord.exe] Error 2
And I've added to the EXTRA_LIBS that (only if ABI_OPT_PERL is defined, of
course) :
EXTRA_LIBS += $(shell perl -MExtUtils::Embed -e ldopts | sed
's|\([a-zA-Z]\):\\|//\1/|g' | sed 's|\\|/|g')
I guess that some other sed script is changing my //C/Perl/lib... to
\\C\Perl\lib... but I don't see it, any clues?. Also I don't know how to
get on the screen the exact command line that is going to be executed (ex.:
"cl.exe /Fo ...")
If somebody replies to these two questions, I will happily give him a
beer/coca/whatever next time I meet him (next GUADEC? :), I'm too tired to
continue searching right now
Cheers,
P.S.: If somebody wants a patch with the code, just ask for it
-- Joaquin Cuenca Abela e98cuenc@yahoo.com
This archive was generated by hypermail 2b25 : Sat Aug 25 2001 - 16:05:38 CDT