+python/dyn does not work on Cygwin

68 views
Skip to first unread message

Ken Takata

unread,
Sep 21, 2012, 2:13:16 AM9/21/12
to vim...@googlegroups.com
Hi,

I tried to use +python/dyn on Cygwin, but it did't work.
It seems that Vim is going to load libpython2.6.dll.a instead of
libpython2.6.dll.

$ ./configure --with-feature=huge --enable-pythoninterp=dynamic
$ make
$ ./vim
:python print "hello"
E370: Could not load library libpython2.6.dll.a
E263: Sorry, this command is disabled, the Python library could not be loaded.

The filename of the shared library is taken from $(INSTSONAME) defined in
/usr/lib/pythonX.X/Makefile on Linux, but $(INSTSONAME) doesn't point the
filename of the DLL on Cygwin. I think $(DLLLIBRARY) should be used instead
of $(INSTSONAME) on Cygwin.

Attached patch fixes this problem.

Best regards,
Ken Takata

fix-python-dyn.patch

Bram Moolenaar

unread,
Sep 21, 2012, 7:04:35 AM9/21/12
to Ken Takata, vim...@googlegroups.com
Thanks! I'll try it out and include.


--
ARTHUR: Did you say shrubberies?
ROGER: Yes. Shrubberies are my trade. I am a shrubber. My name is Roger
the Shrubber. I arrange, design, and sell shrubberies.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages