Open nooninm opened 9 years ago
I see some problems in Build.PL itself. Wherever the executable name "rustc" is used, it must be changed to "rustc.exe" if Windows. Also, whenever the variable $try is used, it must be changed to "$try" (with the double quotes) because there are spaces in the Windows path names. For example, if (-e "$try") ... There are still problems after doing that. I suspect the same sort of fixes need done in other files.
That first diagnostic is bogus, feel free to ignore it. I'm fixing that right now.
Are you using Strawberry Perl? If so can you run this:
perl -V:dlext
From memory Strawberry uses .xs.dll
as the dlext, and I didn't account for that.
Actually the code is there to use .dll
so that should be okay. Can you do a directory listing of libtest/target/release/
?
Hello Graham,
Yes, it is Strawberry Perl.
I can get to this tomorrow. I will be free most of entire week.
I have cygwin on my windows 7 machine, by the way. I have not tried it on cygwin but you may not care about that. Neither do I but if you do care and have plans for this being runnable on cygwin I can test things out on cygwin, too.
I will get to the things mentioned in your other emails, too. Anything else, now that I have some free time?
On 11/23/2015 4:25 PM, Graham Ollis wrote:
No problem, whenever you get a chance. I will be intermittent after Wednesday due to the long weekend in the US.
Cygwin is a low priority for this module since rust does not have a native port for cygwin (correct me if I am wrong). I am happy to support cygwin, if someone wants to use this module there, but it is not a priority for me.
C:\Perl\cpan\build\FFI-Platypus-Lang-Rust-0.04-Ep6MMo\libtest\target\release>tree /f ... │ platypustest.dll │ platypustest.exp │ platypustest.lib │ ├───.fingerprint │ └───platypustest-cf33d44a250b682d │ dep-lib-platypustest │ lib-platypustest │ ├───build ├───deps ├───examples └───native
Perl v5.22.0 built for MSWin32-x86-multi-thread-64int
Paste some messages: Microsoft Windows [Version 6.1.7601] FFI::Platypus is up to date (0.40)
Paste some more messages:
Paste relevant part of "echo %PATH%" at command prompt: ...C:\Program Files\Rust stable 1.4\bin;...
Paste of "dir" command in that path
Perhaps rustc.exe cannot be found because there are spaces in the path name?
Paste of an error from further down the page - undoubtedly due to the above error. It is reported as a File::Copy error, but File::Copy is a very well used module.
PLICEASE/FFI-Platypus-Lang-Rust-0.04.tar.gz C:\Perl\perl\bin\perl.exe ./Build -- OK Running Build test cargo build --release Compiling platypustest v0.1.0 (file:///C:/Perl/cpan/build/FFI-Platypus-Lang-Rust-0.04-_ClGE/libtest) Use of uninitialized value $from in string eq at C:/Perl/perl/lib/File/Copy.pm line 64. ...
Thanks