Hi,

2017/12/5 Tue 6:20:17 UTC+9 Ni Va wrote:
> Le lundi 4 décembre 2017 22:02:21 UTC+1, Ni Va a écrit :
> > Le lundi 4 décembre 2017 21:05:39 UTC+1, Ni Va a écrit :
> > > Le lundi 4 décembre 2017 20:55:27 UTC+1, Bram Moolenaar a écrit :
> > > > Ken Takata wrote:
> > > > 
> > > > [...]
> > > > 
> > > > > > > > Thank you Ken but last error already here.
> > > > > > > > 
> > > > > > > > 
> > > > > > > > Creating Makefile.new
> > > > > > > > "type `nmake' to make ruby."
> > > > > > > > 
> > > > > > > > c:\Ruby_source\ruby>nmake .config.h.time
> > > > > > > > 
> > > > > > > > Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
> > > > > > > > Copyright (C) Microsoft Corporation. Tous droits réservés.
> > > > > > > > 
> > > > > > > > Creating config.h
> > > > > > > > .ext\include\i386-mswin32_140\ruby\config.h updated
> > > > > > > > 
> > > > > > > > c:\Ruby_source\ruby>xcopy /s .ext\include C:\Ruby24\include
> > > > > > > > Est-ce que C:\Ruby24\include désigne un nom de fichier
> > > > > > > > ou un nom de répertoire de la destination
> > > > > > > > (F = fichier, R = répertoire) ?
> > > > > > > 
> > > > > > > I don't understand this error message, but the destination seems 
> > > > > > > wrong.
> > > > > > > "Ruby24" should be replaced by "Ruby24-x64", if you use 64-bit 
> > > > > > > version.
> > > > > > > 
> > > > > > >     xcopy /s .ext\include C:\Ruby24-x64\include
> > > > > > > 
> > > > > > > 
> > > > > > > Regards,
> > > > > > > Ken Takata
> > > > > > 
> > > > > > Help installPC.txt should be modified on xcopy line :
> > > > > > 
> > > > > > xcopy /s .ext\include\x64-mswin64_140 
> > > > > > c:\Ruby24\include\ruby-2.4.0\ruby
> > > > > 
> > > > > I don't think so.
> > > > > Looking your message again, you might have done something wrong.
> > > > > 
> > > > > 
> > > > > > > > Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
> > > > > > > > Copyright (C) Microsoft Corporation. Tous droits réservés.
> > > > > > > > 
> > > > > > > > Creating config.h
> > > > > > > > .ext\include\i386-mswin32_140\ruby\config.h updated
> > > > > 
> > > > > If you use 64-bit compiler, this message should be:
> > > > > 
> > > > >     Creating config.h
> > > > >     .ext\include\x64-mswin64_140\ruby\config.h updated
> > > > > 
> > > > > After xcopy, config.h should placed at:
> > > > > 
> > > > >     C:\Ruby24-x64\include\ruby-2.4.0\x64-mswin64_140\ruby\config.h
> > > > 
> > > > Is a change to INSTALLpc.txt needed?  If so please make a patch.

INSTALLpc.txt is still correct, but it might be unclear for building 64-bit
version.  Please chech the attached patch.

(snip)

> > Ok works assuming renaming c:\ruby24-x64 into c:\ruby24 after 'git clone ' 
> > as said in installPC.txt.
> > 
> > 
> > And these VARS for Make_mvc.mak 
> > 
> > :: Enable Ruby scripting
> > set DYNAMIC_RUBY=yes
> > set RUBY=C:\Ruby24
> > set RUBY_VER=24
> > set RUBY_VER_LONG=2.4.0
> > set RUBY_PLATFORM=x64-mswin64_140
> > set RUBY_MSVCRT_NAME=msvcrt

I recommend using RUBY_API_VER_LONG=2.4.0 instead of RUBY_VER_LONG=2.4.0.
The API version of Ruby 2.4.2 is 2.4.0, and using RUBY_API_VER_LONG makes
it clear.


> Following if_ruby.txt, 
> 
> path command returns that path D:\Logiciels\Vim\vim80
> :put=&rubydll returns x64-msvcrt-ruby240.dll  which is present in 
> D:\logiciels\Vim\vim80 and gvim compiled with.
> 
> but :ruby print "hello" fails to find dll

It seems that the DLLs in C:\Ruby24-x64\bin\ruby_builtin_dlls are also needed
for if_ruby.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  036681178381a13b76802e17626fe79de3689660

diff --git a/src/INSTALLpc.txt b/src/INSTALLpc.txt
--- a/src/INSTALLpc.txt
+++ b/src/INSTALLpc.txt
@@ -684,21 +684,33 @@ config.h and Ruby's DLL name. Here are t
     There is no need to build whole Ruby, just config.h is needed.
     If you use 32-bit MSVC 2015, the config.h is generated in the
     .ext\include\i386-mswin32_140 directory.
+    If you use 64-bit MSVC 2015, the config.h is generated in the
+    .ext\include\x64-mswin64_140 directory.
 
   3) Install the generated config.h.
 
+    For 32-bit version:
+
       xcopy /s .ext\include C:\Ruby24\include\ruby-2.4.0
 
+    For 64-bit version:
+
+      xcopy /s .ext\include C:\Ruby24-x64\include\ruby-2.4.0
+
     Note that 2.4.0 is Ruby API version of Ruby 2.4.X.
     You may need to close the console and reopen it to pick up the new $PATH.
 
   4) Build Vim. Note that you need to adjust some variables (as one line):
 
+    For 32-bit version:
+
       nmake -f Make_mvc.mak
           RUBY=C:\Ruby24 DYNAMIC_RUBY=yes RUBY_VER=24 RUBY_API_VER_LONG=2.4.0
           RUBY_MSVCRT_NAME=msvcrt
           WINVER=0x501
 
+    For 64-bit version, replace RUBY=C:\Ruby24 with RUBY=C:\Ruby24-x64.
+
     If you set WINVER explicitly, it must be set to >=0x500, when building
     with Ruby 2.1 or later.  (Default is 0x501.)
     When using this trick, you also need to set RUBY_MSVCRT_NAME to msvcrt
@@ -713,6 +725,7 @@ After you install RubyInstaller, just ty
         RUBY=C:/Ruby24 DYNAMIC_RUBY=yes RUBY_VER=24 RUBY_API_VER_LONG=2.4.0
         WINVER=0x501
 
+For 64-bit version, replace RUBY=C:/Ruby24 with RUBY=C:/Ruby24-x64.
 If you set WINVER explicitly, it must be set to >=0x500, when building with
 Ruby 2.1 or later.  (Default is 0x501.)
 

Raspunde prin e-mail lui