SAP / node-rfc

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

Problem during installition node-rfc tool windows 11 #258

Closed vinibiscolla closed 2 years ago

vinibiscolla commented 2 years ago

Describe the bug A clear and concise description of what the bug is:

R: Trying to instal the node-rfc lib but the CMake are not capable to complete the build after the npm i node-rfc, even when i got a git clone from repository.

To Reproduce Describe how the node-rfc is installed, like locally or globally and using npm install or build from source:

R: Node-rfc was installed in both ways i have two different folders and already tested the approachs in: https://github.com/SAP/node-rfc/issues/166 without success, i create a generic folder with empty files made the git clone and tryed to do the npm install getting the result:

Logs - Init Microsoft(R) Build Engine versão 17.1.0+ae57d105c para .NET Framework Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Checking Build System Building Custom Rule C:/Users/user/Desktop/node-rfc/CMakeLists.txt Client.cc C:\Users\user\Desktop\node-rfc\src\Client.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] nwrfcsdk.cc C:\Users\user\Desktop\node-rfc\node_modules\node-addon-api\napi.h(4,10): fatal error C1083: Não é possível abrir arquivo incluir: 'node_api.h': No such file or directory [C:\Users\user\Desktop\node-rfc \build\sapnwrfc.vcxproj] Pool.cc C:\Users\user\Desktop\node-rfc\src\Pool.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] Throughput.cc C:\Users\user\Desktop\node-rfc\node_modules\node-addon-api\napi.h(4,10): fatal error C1083: Não é possível abrir arquivo incluir: 'node_api.h': No such file or directory [C:\Users\user\Desktop\node-rfc \build\sapnwrfc.vcxproj] Server.cc C:\Users\user\Desktop\node-rfc\src\Server.h(8,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] addon.cc C:\Users\user\Desktop\node-rfc\src\Client.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] ERR! OMG Process terminated: 1 npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\node-rfc npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -r napi || cmake-js rebuild

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-04-26T15_38_07_765Z-debug-0.log

Logs - End

I have MinGW in my machine, i've installed the CMake tool in the visual studio code, so i'm capable to change the default gcc build system between MinGw and MVSC for example

Describe steps to reproduce the behavior, including the test script.

Npm Install node-rfc when i've tryed to donwload from npm.

Or even making a clone of the repo and running locally with npm install

The logs seens to work all script it has to complete, but when CMake try to find couple c classes are not able for the node header include and i've already declared this enviroment var in my system.

The logs are:

Logs - Init using the MSVC

user@user-computer MINGW64 ~/Desktop/node-rfc (main) $ npm i

node-rfc@2.6.1 preinstall npm install cmake-js prebuild-install prebuild node-addon-api

up to date, audited 902 packages in 3s

59 packages are looking for funding run npm fund for details

8 vulnerabilities (1 moderate, 4 high, 3 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

node-rfc@2.6.1 install prebuild-install -r napi || cmake-js rebuild

prebuild-install WARN install No prebuilt binaries found (target=6 runtime=napi arch=ia32 libc= platform=win32) [ 'C:\Program Files (x86)\nodejs\node.exe', 'C:\Users\user\Desktop\node-rfc\node_modules\cmake-js\bin\cmake-js', 'rebuild' ] info TOOL Using Visual Studio 17 2022 generator. info CMD CLEAN info RUN [ info RUN 'cmake', info RUN '-E', info RUN 'remove_directory', info RUN 'C:\Users\user\Desktop\node-rfc\build' info RUN ] info CMD CONFIGURE info RUN [ info RUN 'cmake', info RUN 'C:\Users\user\Desktop\node-rfc', info RUN '--no-warn-unused-cli', info RUN '-G', info RUN 'Visual Studio 17 2022', info RUN '-DCMAKE_JS_VERSION=6.3.0', info RUN '-DCMAKE_BUILD_TYPE=Release', info RUN '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\user\Desktop\node-rfc\build', info RUN '-DCMAKE_JS_INC=C:\Users\user\.cmake-js\node-ia32\v16.14.2\include\node', info RUN '-DCMAKE_JS_SRC=C:/Users/user/Desktop/node-rfc/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc', info RUN '-DNODE_RUNTIME=node', info RUN '-DNODE_RUNTIMEVERSION=16.14.2', info RUN '-DNODE_ARCH=ia32', info RUN '-DCMAKE_JS_LIB=C:\Users\user\.cmake-js\node-ia32\v16.14.2\win-x86\node.lib', info RUN '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE /SAFESEH:NO' info RUN ] Not searching for unused variables given on the command line. -- The C compiler identification is MSVC 19.31.31107.0 -- The CXX compiler identification is MSVC 19.31.31107.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done N-API version: 6 C:\node-v16.14.2\include\node SAP NWRFC SDK: 750 Patch Level 9

-- Configuring done -- Generating done -- Build files have been written to: C:/Users/user/Desktop/node-rfc/build info CMD BUILD info RUN [ info RUN 'cmake', info RUN '--build', info RUN 'C:\Users\user\Desktop\node-rfc\build', info RUN '--config', info RUN 'Release' info RUN ] Microsoft(R) Build Engine versão 17.1.0+ae57d105c para .NET Framework Copyright (C) Microsoft Corporation. Todos os direitos reservados.

npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\node-rfc npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -r napi || cmake-js rebuild

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-04-26T16_23_28_776Z-debug-0.log

Logs - End using the MSVC

Logs - Init using the minGW gcc compiler

$ npm i

node-rfc@2.6.1 preinstall npm install cmake-js prebuild-install prebuild node-addon-api

up to date, audited 902 packages in 3s

59 packages are looking for funding run npm fund for details

8 vulnerabilities (1 moderate, 4 high, 3 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

node-rfc@2.6.1 install prebuild-install -r napi || cmake-js rebuild

prebuild-install WARN install No prebuilt binaries found (target=6 runtime=napi arch=ia32 libc= platform=win32) [ 'C:\Program Files (x86)\nodejs\node.exe', 'C:\Users\user\Desktop\node-rfc\node_modules\cmake-js\bin\cmake-js', 'rebuild' ] info TOOL Using Visual Studio 17 2022 generator. info CMD CLEAN info RUN [ info RUN 'cmake', info RUN '-E', info RUN 'remove_directory', info RUN 'C:\Users\user\Desktop\node-rfc\build' info RUN ] info CMD CONFIGURE info RUN [ info RUN 'cmake', info RUN 'C:\Users\user\Desktop\node-rfc', info RUN '--no-warn-unused-cli', info RUN '-G', info RUN 'Visual Studio 17 2022', info RUN '-DCMAKE_JS_VERSION=6.3.0', info RUN '-DCMAKE_BUILD_TYPE=Release', info RUN '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\user\Desktop\node-rfc\build', info RUN '-DCMAKE_JS_INC=C:\Users\user\.cmake-js\node-ia32\v16.14.2\include\node', info RUN '-DCMAKE_JS_SRC=C:/Users/user/Desktop/node-rfc/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc', info RUN '-DNODE_RUNTIME=node', info RUN '-DNODE_RUNTIMEVERSION=16.14.2', info RUN '-DNODE_ARCH=ia32', info RUN '-DCMAKE_JS_LIB=C:\Users\user\.cmake-js\node-ia32\v16.14.2\win-x86\node.lib', info RUN '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE /SAFESEH:NO' info RUN ] Not searching for unused variables given on the command line. -- The C compiler identification is MSVC 19.31.31107.0 -- The CXX compiler identification is MSVC 19.31.31107.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done N-API version: 6 C:\node-v16.14.2\include\node SAP NWRFC SDK: 750 Patch Level 9

-- Configuring done -- Generating done -- Build files have been written to: C:/Users/user/Desktop/node-rfc/build info CMD BUILD info RUN [ info RUN 'cmake', info RUN '--build', info RUN 'C:\Users\user\Desktop\node-rfc\build', info RUN '--config', info RUN 'Release' info RUN ] Microsoft(R) Build Engine versão 17.1.0+ae57d105c para .NET Framework Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Checking Build System Building Custom Rule C:/Users/user/Desktop/node-rfc/CMakeLists.txt Client.cc C:\Users\user\Desktop\node-rfc\src\Client.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] nwrfcsdk.cc C:\Users\user\Desktop\node-rfc\node_modules\node-addon-api\napi.h(4,10): fatal error C1083: Não é possível abrir arquivo incluir: 'node_api.h': No such file or directory [C:\Users\user\Desktop\node-rfc \build\sapnwrfc.vcxproj] Pool.cc C:\Users\user\Desktop\node-rfc\src\Pool.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] Throughput.cc C:\Users\user\Desktop\node-rfc\node_modules\node-addon-api\napi.h(4,10): fatal error C1083: Não é possível abrir arquivo incluir: 'node_api.h': No such file or directory [C:\Users\user\Desktop\node-rfc \build\sapnwrfc.vcxproj] Server.cc C:\Users\user\Desktop\node-rfc\src\Server.h(8,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] addon.cc C:\Users\user\Desktop\node-rfc\src\Client.h(9,10): fatal error C1083: Não é possível abrir arquivo incluir: 'uv.h': No such file or directory [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] ERR! OMG Process terminated: 1 npm ERR! code 1 npm ERR! path C:\Users\user\Desktop\node-rfc npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -r napi || cmake-js rebuild

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-04-26T16_38_11_679Z-debug-0.log

Logs - End using the minGW gcc compiler

Screenshots If applicable, add screenshots to help explain your problem.

Environment

Error: Cannot find module 'node-rfc' Require stack:

The above are from clone git repo, from a npm install command line package download are:

$ node -p "require('node-rfc').environment" C:\temp\node-rfc-main\lib\wrapper\noderfc-bindings.js:46 throw err; ^

Error: Cannot find module '../binding/sapnwrfc' Require stack:

$ npm -g prefix C:\Users\user\AppData\Roaming\npm

$ npx envinfo

System: OS: Windows 10 10.0.22000 CPU: (8) ia32 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz Memory: 1.94 GB / 15.74 GB Binaries: Node: 16.14.2 - C:\Program Files (x86)\nodejs\node.EXE npm: 8.7.0 - C:\Program Files (x86)\nodejs\npm.CMD Managers: pip2: 19.2.3 - C:\Python27\Scripts\pip2.EXE pip3: 22.0.4 Utilities: CMake: 3.23.1 - C:\Program Files\CMake\bin\cmake.EXE Git: 2.34.1. - C:\Program Files\Git\mingw64\bin\git.EXE IDEs: Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8193401 VSCode: 1.66.2 - C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD Visual Studio: 15.9.28307.1927 (Visual Studio Community 2017), 17.1.32414.318 (Visual Studio Community 2022) Languages: Bash: 4.4.23 - C:\Program Files\Git\usr\bin\bash.EXE Java: 17.0.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE Perl: 5.34.0 - C:\Program Files\Git\usr\bin\perl.EXE Python: 2.7.18 - C:\Python27\python.EXE Python3: 3.9.12 Browsers: Edge: Spartan (44.22000.120.0), Chromium (100.0.1185.50) Internet Explorer: 11.0.22000.120

Additional context Add any other context about the problem here.

Did all research available in the internet, read most of the issues already reported, try to follow the most troubleshoot possible and yet not able to make the build compile process of the lib works, i've could already couple years ago made this lib works with the sapnwrfc lib, and did not have all of this problems, pretty sure that the problem is in the CMake when try to get the node include files.

I've changed my oficial machine name to "user" for privacy reasos, if the logs are hard to read just let me know and i can send or share with the responsible one via e-mail or some other source.

Thanks a lot. Regards.

bsrdjan commented 2 years ago

Hello @vinibiscolla and sorry that I could not look into this earlier.

In the build output log there is single line, showing the N-API version and NODE_HEADERS_INCLUDE path. In your build log it looks like this:

N-API version: 6 C:\node-v16.14.2\include\node

The C:\node-v16.14.2\include\node looks suspicious because that path shall end with /include and in that folder should be only one node folder, with include files there. Here the example from internal build system

N-API version: 6   C:\Tools\nodejs/include

and the content of C:\Tools\nodejs/include folder is like

└── node
    ├── common.gypi
    ├── config.gypi
    ├── cppgc
    ├── js_native_api.h
    ├── js_native_api_types.h
    ├── libplatform
    ├── node.h
    ├── node_api.h
    ├── node_api_types.h
    ├── node_buffer.h
    ├── node_object_wrap.h
    ├── node_version.h
    ├── openssl
    ├── uv
    ├── uv.h
    ├── v8-internal.h
    ├── v8-platform.h
    ├── v8-profiler.h
    ├── v8-version.h
    ├── v8.h
    ├── v8config.h
    ├── zconf.h
    └── zlib.h

Could you please try to set the env variable to this root of node include headers and re-try the build?

Please consider the only supported build toolchain on Windows is Microsoft Visual C++, as documented here: https://github.com/SAP/node-rfc#windows. With that toolchain and prerequisites installed, the build should work.

vinibiscolla commented 2 years ago

Hello @vinibiscolla and sorry that I could not look into this earlier.

In the build output log there is single line, showing the N-API version and NODE_HEADERS_INCLUDE path. In your build log it looks like this:

N-API version: 6 C:\node-v16.14.2\include\node

The C:\node-v16.14.2\include\node looks suspicious because that path shall end with /include and in that folder should be only one node folder, with include files there. Here the example from internal build system

N-API version: 6   C:\Tools\nodejs/include

and the content of C:\Tools\nodejs/include folder is like

└── node
    ├── common.gypi
    ├── config.gypi
    ├── cppgc
    ├── js_native_api.h
    ├── js_native_api_types.h
    ├── libplatform
    ├── node.h
    ├── node_api.h
    ├── node_api_types.h
    ├── node_buffer.h
    ├── node_object_wrap.h
    ├── node_version.h
    ├── openssl
    ├── uv
    ├── uv.h
    ├── v8-internal.h
    ├── v8-platform.h
    ├── v8-profiler.h
    ├── v8-version.h
    ├── v8.h
    ├── v8config.h
    ├── zconf.h
    └── zlib.h

Could you please try to set the env variable to this root of node include headers and re-try the build?

Please consider the only supported build toolchain on Windows is Microsoft Visual C++, as documented here: https://github.com/SAP/node-rfc#windows. With that toolchain and prerequisites installed, the build should work.

Hi @bsrdjan thanks for your message I tried to do you described, but i think i just cannot add the /include path to the folder because i'm using windows and in windows you can not insert the slash or backslash into a file path, i will check if i can do that via configuration and retry again.

Another thing which is happening in my machine is the CMakeList.txt file returning an error: image

I will try to add the /include name path into my folder.

vinibiscolla commented 2 years ago

After the changes now in my enviroment C:\Tools\nodejs\include

image

I am just strugling trying to modify the \include folder to the /include option

and in the way it is when i'm executing nmp i i'm getting:

$ npm i

> node-rfc@2.6.1 preinstall
> npm install cmake-js prebuild-install prebuild node-addon-api

up to date, audited 902 packages in 2s

59 packages are looking for funding
  run `npm fund` for details

8 vulnerabilities (5 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> node-rfc@2.6.1 install
> prebuild-install -r napi || cmake-js rebuild

prebuild-install WARN install No prebuilt binaries found (target=6 runtime=napi arch=ia32 libc= platform=win32)
[
  'C:\\Program Files\\nodejs\\node.exe',
  'C:\\Users\\user\\Desktop\\node-rfc\\node_modules\\cmake-js\\bin\\cmake-js',
  'rebuild'
]
info TOOL Using Visual Studio 17 2022 generator.
info CMD CLEAN
info RUN [
info RUN   'cmake',
info RUN   '-E',
info RUN   'remove_directory',
info RUN   'C:\\Users\\user\\Desktop\\node-rfc\\build'
info RUN ]
info CMD CONFIGURE
info RUN [
info RUN   'cmake',
info RUN   'C:\\Users\\user\\Desktop\\node-rfc',
info RUN   '--no-warn-unused-cli',
info RUN   '-G',
info RUN   'Visual Studio 17 2022',
info RUN   '-DCMAKE_JS_VERSION=6.3.0',
info RUN   '-DCMAKE_BUILD_TYPE=Release',
info RUN   '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\\Users\\user\\Desktop\\node-rfc\\build',
info RUN   '-DCMAKE_JS_INC=C:\\Users\\user\\.cmake-js\\node-ia32\\v16.14.2\\include\\node',
info RUN   '-DCMAKE_JS_SRC=C:/Users/user/Desktop/node-rfc/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc',
info RUN   '-DNODE_RUNTIME=node',
info RUN   '-DNODE_RUNTIMEVERSION=16.14.2',
info RUN   '-DNODE_ARCH=ia32',
info RUN   '-DCMAKE_JS_LIB=C:\\Users\\user\\.cmake-js\\node-ia32\\v16.14.2\\win-x86\\node.lib',
info RUN   '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE /SAFESEH:NO'
info RUN ]
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.31.31107.0
-- The CXX compiler identification is MSVC 19.31.31107.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
N-API version: 6   C:\Tools\nodejs\include
SAP NWRFC SDK: 750 Patch Level 9

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/user/Desktop/node-rfc/build
info CMD BUILD
info RUN [
info RUN   'cmake',
info RUN   '--build',
info RUN   'C:\\Users\\user\\Desktop\\node-rfc\\build',
info RUN   '--config',
info RUN   'Release'
info RUN ]
Microsoft(R) Build Engine versão 17.1.0+ae57d105c para .NET Framework 
Copyright (C) Microsoft Corporation. Todos os direitos reservados.

  Checking Build System
  Building Custom Rule C:/Users/user/Desktop/node-rfc/CMakeLists.txt
  Client.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(21712,5): error C3861: '__stosb': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24410,27): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24421,19): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9640,32): error C2065: 'InterlockedIncrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9672,32): error C2065: 'InterlockedDecrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9708,31): error C3861: 'InterlockedExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9762,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9772,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9819,31): error C3861: 'InterlockedAnd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9829,31): error C3861: 'InterlockedOr64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9839,31): error C3861: 'InterlockedXor64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\stralign.h(120,38): warning C4090: 'argumento': qualificadores '__unaligned' diferentes [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxpr
oj]
  nwrfcsdk.cc
  Pool.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(21712,5): error C3861: '__stosb': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24410,27): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24421,19): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9640,32): error C2065: 'InterlockedIncrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9672,32): error C2065: 'InterlockedDecrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9708,31): error C3861: 'InterlockedExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9762,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9772,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9819,31): error C3861: 'InterlockedAnd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9829,31): error C3861: 'InterlockedOr64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9839,31): error C3861: 'InterlockedXor64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\stralign.h(120,38): warning C4090: 'argumento': qualificadores '__unaligned' diferentes [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxpr
oj]
  Throughput.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(21712,5): error C3861: '__stosb': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24410,27): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24421,19): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9640,32): error C2065: 'InterlockedIncrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9672,32): error C2065: 'InterlockedDecrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9708,31): error C3861: 'InterlockedExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9762,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9772,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9819,31): error C3861: 'InterlockedAnd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9829,31): error C3861: 'InterlockedOr64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9839,31): error C3861: 'InterlockedXor64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\stralign.h(120,38): warning C4090: 'argumento': qualificadores '__unaligned' diferentes [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxpr
oj]
  Server.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(21712,5): error C3861: '__stosb': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24410,27): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24421,19): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9619,23): error C3861: '_InterlockedIncrement': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9628,28): error C3861: '_InterlockedIncrement': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9640,32): error C2065: 'InterlockedIncrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9651,28): error C3861: '_InterlockedDecrement': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9660,28): error C3861: '_InterlockedDecrement': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9672,32): error C2065: 'InterlockedDecrement64': identificador não declarado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9686,23): error C3861: '_InterlockedExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]    
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9696,28): error C3861: '_InterlockedExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]    
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9708,31): error C3861: 'InterlockedExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]   
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9720,23): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9730,23): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9740,28): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9750,28): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9762,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9772,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9785,23): error C3861: '_InterlockedCompareExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxp 
roj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9796,28): error C3861: '_InterlockedCompareExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxp 
roj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9809,31): error C3861: '_InterlockedCompareExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vc 
xproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9819,31): error C3861: 'InterlockedAnd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9829,31): error C3861: 'InterlockedOr64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9839,31): error C3861: 'InterlockedXor64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\stralign.h(120,38): warning C4090: 'argumento': qualificadores '__unaligned' diferentes [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxpr
oj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(151,16): warning C4477: 'printf': a cadeia de formato '%lu' requer um argumento do tipo 'unsigned long', mas um argumento variadic 1 tem o tipo 'uintptr_t' [C:\Us
ers\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(151,16): message : considere usar '%llu' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(151,16): message : considere usar '%Iu' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(151,16): message : considere usar '%I64u' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(158,24): warning C4477: 'printf': a cadeia de formato '%lu' requer um argumento do tipo 'unsigned long', mas um argumento variadic 1 tem o tipo 'uintptr_t' [C:\Us 
ers\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(158,24): message : considere usar '%llu' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(158,24): message : considere usar '%Iu' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Users\user\Desktop\node-rfc\src\Server.cc(158,24): message : considere usar '%I64u' na cadeia de formato [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
  addon.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(21712,5): error C3861: '__stosb': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(24410,27): error C3861: '__readgsqword': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9720,23): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9730,23): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9740,28): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9750,28): error C3861: '_InterlockedExchangeAdd': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj] 
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9762,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9772,31): error C3861: 'InterlockedExchangeAdd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj 
]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9785,23): error C3861: '_InterlockedCompareExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxp 
roj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9796,28): error C3861: '_InterlockedCompareExchange': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxp 
roj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9809,31): error C3861: '_InterlockedCompareExchange64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vc 
xproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9819,31): error C3861: 'InterlockedAnd64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9829,31): error C3861: 'InterlockedOr64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winbase.h(9839,31): error C3861: 'InterlockedXor64': identificador não encontrado [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxproj]        
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\stralign.h(120,38): warning C4090: 'argumento': qualificadores '__unaligned' diferentes [C:\Users\user\Desktop\node-rfc\build\sapnwrfc.vcxpr 
oj]
ERR! OMG Process terminated: 1
npm ERR! code 1
npm ERR! path C:\Users\user\Desktop\node-rfc
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -r napi || cmake-js rebuild

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Local\npm-cache\_logs\2022-04-29T14_23_26_964Z-debug-0.log
bsrdjan commented 2 years ago

i'm using windows and in windows you can not insert the slash or backslash into a file path

try with double backslash \\, it helps in some tools

According to logs you are using 32 bit Windows platform - why not 64 bit? Which Windows release do you use?

The latest log shows errors related to Windows include files, like the build toolchain not configured properly. I would suggest using fresh new Windows installation, like free Windows 10 version with new installed prerequisites.

Regarding CmakeList.txt error, when it occurs? It looks like editor warning to me?

vinibiscolla commented 2 years ago

Unfortunately in windows platforms is not possible to add a forward slash / or a back slash \

image

File and folder names cannot contain any of the following characters.

About the windows version i'm using the 64 arch but do not have an idea why is the lib trying to compile in 32.

The CMake error appears when the CMake tool of visual studio code open and try to load all the files.

Thanks a lot for the support.

bsrdjan commented 2 years ago

About the windows version i'm using the 64 arch but do not have an idea why is the lib trying to compile in 32.

How the nodejs is installed, using nvm-windows or some other method? Could it be that 32-bit node version is installed, forcing the 32-bit build?

But before investigating further, could you please create new project folder (npm init -y), run the the npm install node-rfc in that folder and post the installation log?

The build from source is normally not triggered on Windows and the standard install should work. The pre-built Windows binary is fetched from GitHub (attached to release). Unless you want to modify the node-rfc addon, you don't have to worry about CMake and build toolchain configuration on your local machine, just add SAP NWRFC SDK to path and npm install node-rfc.

VSCode CMake extension is not used in our test systems and I am not sure about the error because the build is done from console.

vinibiscolla commented 2 years ago

Hi @bsrdjan thanks a lot for the reply and the tips, finally i could check what was wrong and was the node version, even i was downloading from the nodejs.org site the version of x64 for some reason the wizard has installed the arch ia32 so i've downloaded the right version:

C:\Users\user>node -p "process.arch" ia32

image

Installed and finally get the right version, after that the native node.js wizard tools has asked me to download extra files, like chocolately something like that, which opened the power tools and automatically updated all need additional and extra files needed and then i run npm install node-rfc and the lib compilled successfully !!

C:\Users\user>node -p "process.arch" x64

Thanks a lot for the support and help.

Right now i'm trying to connect with my SAP Instance and i'm getting connection timeout error my SAP ECC instance uses SAPRouter so i would like to now in my sapnwrfc.ini file how can i provide the right values, making a comparison today my sapnwrfc.ini file is:

DEST=EH6 USER=myUser PASSWD=myPass ASHOST=SAP Server IP Address SYSNR=40 CLIENT=100 LANG=EN

So i would imagine how this .ini file was supposed to be to cover the SAP Router connection.

I was taking a look in the programming guideline:

image

Which was mentionning to do: -"For example, instead of providing ASHOST and SYSNR, you provide the parameters WSHOST and WSPORT." but i'm not sure of that, so can you please tell me if is possible to connect to a ECC with SAP Router ?

Thanks a lot.

vinibiscolla commented 2 years ago

Hi @bsrdjan thanks a lot for the tips and help !! the Git issue: https://github.com/SAP/node-rfc/issues/228#issuecomment-899532958 could help me to complete my sapnwrfc.ini file !!

I could discover that to make the SAP NW RFC SDK works properly in my machine i need also to get the content from the folder C:\nwrfcsdk\lib files inside my C:\Windows\System32 file path for x64 which was my case, only after copy the files there the lib worked, maybe it's a tip for others,

I could already call the RFC: STFC_STRUCTURE and follow your other blog post: https://blogs.sap.com/2020/10/22/calling-abap-from-nodejs-even-easier/ and could return the data successfully: BAPI_USER_GET_DETAIL and BAPI_COSTCENTER_GETDETAIL1

Thanks a lot @bsrdjan for all the support, tips and help !!! and as i'm having good tips and updates i've also keeping posted here, next steps are also try the node-red rfc and pyrfc, i was checking in your scn blog profile the possibility to upload this project in SAP BTP using cloud foundry and is looking that is still not possible, but we had already a same situation deploying a nodejs application using open cv with cmake and all the libs associated which we could successfuly via command line to create in heroku so maybe when i have a time we can try to reproduce this in SAP BTP as well.

Thanks a lot. Kind Regards.

bsrdjan commented 2 years ago

Glad to hear the installation works now. The 32-bit SAP NWRFC SDK version can be in collision with SAP NWRFC SDK version installed by SAPGUI (32-bit) and 64-bit is recommended also because of that: https://github.com/SAP/node-rfc/issues/226#issuecomment-936149151 Let close this issue and open new one in case of follow-up questions or issues.