Message from discussion
+python/dyn does not work on Cygwin
Received: by 10.66.89.162 with SMTP id bp2mr913935pab.4.1348225483900;
Fri, 21 Sep 2012 04:04:43 -0700 (PDT)
X-BeenThere: vim_dev@googlegroups.com
Received: by 10.68.242.38 with SMTP id wn6ls11228058pbc.8.gmail; Fri, 21 Sep
2012 04:04:40 -0700 (PDT)
Received: by 10.68.212.168 with SMTP id nl8mr1040257pbc.5.1348225480704;
Fri, 21 Sep 2012 04:04:40 -0700 (PDT)
Received: by 10.68.212.168 with SMTP id nl8mr1040256pbc.5.1348225480695;
Fri, 21 Sep 2012 04:04:40 -0700 (PDT)
Return-Path: <b...@moolenaar.net>
Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net. [62.179.121.35])
by gmr-mx.google.com with ESMTP id j3si1465821paz.2.2012.09.21.04.04.39;
Fri, 21 Sep 2012 04:04:40 -0700 (PDT)
Received-SPF: neutral (google.com: 62.179.121.35 is neither permitted nor denied by best guess record for domain of b...@moolenaar.net) client-ip=62.179.121.35;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 62.179.121.35 is neither permitted nor denied by best guess record for domain of b...@moolenaar.net) smtp.mail=b...@moolenaar.net
Received: from edge01.upcmail.net ([192.168.13.236])
by viefep15-int.chello.at
(InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP
id <20120921110439.FYMJ22081.viefep15-int.chello...@edge01.upcmail.net>;
Fri, 21 Sep 2012 13:04:39 +0200
Received: from moolenaar.net ([84.75.9.99])
by edge01.upcmail.net with edge
id 1n4e1k00Z28CNeC01n4erG; Fri, 21 Sep 2012 13:04:39 +0200
X-SourceIP: 84.75.9.99
X-Authenticated-Sender: b...@hispeed.ch
Received: from masaka.moolenaar.net (localhost.localdomain [127.0.0.1])
by moolenaar.net (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id q8LB4axG018752;
Fri, 21 Sep 2012 13:04:36 +0200
Received: from masaka.moolenaar.net (B...@Moolenaar.net)
by masaka.moolenaar.net (8.14.4/8.14.4/Submit) with ESMTP id q8LB4ZJN018748;
Fri, 21 Sep 2012 13:04:36 +0200
Message-Id: <201209211104.q8LB4ZJN018748@masaka.moolenaar.net>
To: Ken Takata <ken...@csc.jp>
Cc: vim_dev@googlegroups.com
In-Reply-To: <c36b9f2d-bea5-48bf-8056-37ee2c454798@googlegroups.com>
Subject: Re: +python/dyn does not work on Cygwin
From: Bram Moolenaar <B...@Moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Date: Fri, 21 Sep 2012 13:04:35 +0200
Sender: B...@Moolenaar.net
Ken Takata wrote:
> 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.
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 -- B...@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 ///