SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
252 stars 74 forks source link

Compile for win32_ia32 #124

Closed Berdmanfolk closed 4 years ago

Berdmanfolk commented 4 years ago

Is it possible to compile for win32_ia32? I tryed on a Windows 7 32 bit machine with the ia32 target.

D:_node-rfc-1.0.3>node -p "process.arch" ia32

D:_node-rfc-1.0.3>node -p "process.platform" win32

D:_node-rfc-1.0.3>node -v v12.16.0

But when doing prebuild getting the errors() Attached a log. log_compile_win32_ia32.txt

bsrdjan commented 4 years ago

Reproduced and investigating

bsrdjan commented 4 years ago

After fixing compiler flags, I built the 32 bit binary and attached to 1.0.3 release:

node-rfc-v1.0.3-napi-v3-win32-ia32.tar.gz

Please feel free to test. If all works fine, the fix will be shipped with next release.

Berdmanfolk commented 4 years ago

Hello @bsrdjan! Glad to hear, I hope you fully recovered. I tested with this compilation rfc is working! What is need to fix for self compile?

bsrdjan commented 4 years ago

The build script had to be fixed, as in 4792d42

The cross-compilation to 32 bit should work on 64 bit system but I used the 32 bit system with the minimal toolchain:

Linux subsystem for Windows is not available for 32 bit Windows and Git client for Windows could be an alternative:

Screenshot 2020-03-02 at 13 16 08

The compilation works both from the standard Windows CLI and from VS x86 CLI.