node-serialport icon indicating copy to clipboard operation
node-serialport copied to clipboard

cross-platform?

Open jcehle opened this issue 14 years ago • 2 comments

Apologies in advance if this is not the appropriate place for this!

I would like to run this on a single project that can run cross-platform (win/mac/linux); is there anyway to install this w/ pure javascript? or is there a way to get the native extensions compiled and living happily side-by-side?

Thanks for a stellar module!

jcehle avatar Sep 27 '12 09:09 jcehle

Perhaps related, I've been wondering if we could precompile the binaries (at least for Windows) as the requirement to have Visual C++ Express 2010 with Service Pack 1 installed just to get nodejs to talk to a serial port seems a little excessive.

I did a little looking around and the fibers library distributes precompiled binaries. Perhaps we could use a similar approach?

JayBeavers avatar Sep 27 '12 22:09 JayBeavers

There is currently no support for a non-native version of this as it requires special file descriptor handling that node.js does not provide. Moving this functionality/support to libuv is currently in discussion and should be "plus-one-d" here: https://github.com/joyent/node/issues/4092

Closing otherwise

voodootikigod avatar Oct 08 '12 09:10 voodootikigod