[nodejs] Re: build a node addon on windows for linux

2019-02-19 Thread Krishield Santoyo
> Note that having a module that will hapilly 'npm install' on all three > OSes does NOT require pre-building them. The Gyp scripting you saw does > exactly that: it detects which OS it's building on and follows different > instructions for each. Testing all three, on the other hand...I second

[nodejs] Re: build a node addon on windows for linux

2012-11-02 Thread NodeNinja
NodeNinja: > > Note that having a module that will hapilly 'npm install' on all three > OSes does NOT require pre-building them. The Gyp scripting you saw does > exactly that: it detects which OS it's building on and follows different > instructions for each. Testing all three, on the other han

[nodejs] Re: build a node addon on windows for linux

2012-11-01 Thread Jonathan Kunkee
> > You might be able to get away with using a cross-compiler under >> cygwin, but just mentioning that makes me cringe. >> > > Your advice is sound mscdex... > I couldn't find much info on the net for cross compiling on windows > possibly install linux on a vm is a good way to start! > >

[nodejs] Re: build a node addon on windows for linux

2012-10-31 Thread NodeNinja
> I recommend setting up and using a local Linux virtual machine if you > do not have access to a Linux system elsewhere. > > You might be able to get away with using a cross-compiler under > cygwin, but just mentioning that makes me cringe. > Your advice is sound mscdex... I couldn't find

[nodejs] Re: build a node addon on windows for linux

2012-10-29 Thread mscdex
On Oct 29, 11:47 pm, NodeNinja wrote: > Since I am doing this on a Windows system What cross compiler would you > recommend to target Unix/Linux,  gcc or MinGW? I recommend setting up and using a local Linux virtual machine if you do not have access to a Linux system elsewhere. You might be able

Re: [nodejs] Re: build a node addon on windows for linux

2012-10-29 Thread NodeNinja
> No. You need to run the node-gyp configure/build cycle once for each > platform that you target. Here is how you approximately would script > that on a UNIX system: > > That was great news Ben, Since I am doing this on a Windows system What cross compiler would you recommend to target

Re: [nodejs] Re: build a node addon on windows for linux

2012-10-29 Thread Ben Noordhuis
On Mon, Oct 29, 2012 at 4:30 AM, NodeNinja wrote: > > On Sunday, October 28, 2012 11:07:48 PM UTC+5:30, mscdex wrote: >> >> On Oct 28, 1:15 pm, NodeNinja wrote: >> > and was wondering if there was anyway to target multiple platforms? >> >> Sure, you can target multiple platforms in your binding.g

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread NodeNinja
On Sunday, October 28, 2012 11:07:48 PM UTC+5:30, mscdex wrote: > > On Oct 28, 1:15 pm, NodeNinja wrote: > > and was wondering if there was anyway to target multiple platforms? > > Sure, you can target multiple platforms in your binding.gyp easily > using conditionals like that. However I tho

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread mscdex
On Oct 28, 1:15 pm, NodeNinja wrote: > and was wondering if there was anyway to target multiple platforms? Sure, you can target multiple platforms in your binding.gyp easily using conditionals like that. However I thought you were originally asking how to compile a Linux executable on Windows. -

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread NodeNinja
> > > It's probably going to be easier to just create a linux VM for > compiling/testing purposes. > I had seen a few binding.gyp scripts with lines like these 'conditions': [ ['OS=="linux"', ['OS=="mac"', ['OS=="win"', ] and was wondering if there was anyway to target multiple platform

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread mscdex
On Oct 28, 9:31 am, NodeNinja wrote: > I successfully built a node add-on on windows using Visual Studio. > Now I want to build the same add-on on windows but targeting Linux. It's probably going to be easier to just create a linux VM for compiling/testing purposes. -- Job Board: http://jobs.no