Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Build for windows ? #174

Open
masgh021 opened this issue Oct 8, 2024 · 3 comments
Open

How Build for windows ? #174

masgh021 opened this issue Oct 8, 2024 · 3 comments

Comments

@masgh021
Copy link

masgh021 commented Oct 8, 2024

Hello @BreeeZe
How run onvif server in windows ?

@RogerHardiman
Copy link
Collaborator

most of this project will run fine with NodeJS on Windows.
git clone the source code
then run "npm install" and "npx gulp" and you should have a rpos.js file you can run.

The built in RTSP servers are Linux specific so you will need to use your own RTSP server on Windows like MediaMTX

I used to develop RPOS on Windows most of the time. Now I use WSL on Windows

@masgh021
Copy link
Author

Hello @RogerHardiman
i test this command npm install and got this error , can you help me ?
image

@traeu
Copy link

traeu commented Dec 21, 2024

Unfortunately I'm also unable to try this out on Windows 10.
I don't have any experience with node.js.
Installed it from nodejs.org, also installed "additional tools for node.js".
After downloading the repo and running "npm install", I get the following result:

CMD Output

C:\Users\FCS Research Lab\Downloads\rpos>npm install
npm warn skipping integrity check for git dependency ssh://[email protected]/BreeeZe/node-soap.git
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated [email protected]: this library is no longer supported
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated [email protected]: Use uuid module instead
npm warn deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm error code 1
npm error path C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm error serialport.cpp
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature" ist kein Member von "v8". [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8.h(71,11):
npm error       Siehe Deklaration von "v8"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan_callbacks.h(55,23): error C2065: "AccessorSignature": nichtdeklarierter Bezeichner [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan_callbacks.h(55,13): error C2923: „v8::Local“: „AccessorSignature“ ist kein gültiges Vorlage-Typargument für Parameter „T“. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan_callbacks.h(55,23):
npm error       Siehe Deklaration von "AccessorSignature"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local" : Für die Verwendung von Klasse Vorlage ist eine Vorlage-Argumentliste erforderlich [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(252,22):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,14): error C2955: "v8::Local" : Für die Verwendung von Klasse Vorlage ist eine Vorlage-Argumentliste erforderlich [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(252,22):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2641: Für "v8::Local" können keine Vorlagenargumente abgeleitet werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2780: „v8::Local<T> v8::Local(const v8::LocalBase<T> &)“ erwartet, dass 1 Argumente – 0 angegeben werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(401,3):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2780: „v8::Local<T> v8::Local(const v8::Local<T> &,v8::api_internal::StackAllocated<false>::no_checking_tag)“ erwartet, dass 2 Argumente – 0 angegeben werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(398,3):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2780: „v8::Local<T> v8::Local(v8::api_internal::StackAllocated<false>::no_checking_tag)“ erwartet, dass 1 Argumente – 0 angegeben werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(396,3):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2780: „v8::Local<T> v8::Local(v8::Local<S>)“ erwartet, dass 1 Argumente – 0 angegeben werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(263,3):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2783: „v8::Local<T> v8::Local(void)“: Das Vorlage-Argument für „T“ konnte nicht abgeleitet werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(260,3):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2516,34): error C2780: „v8::Local<T> v8::Local(v8::Local<T>)“ erwartet, dass 1 Argumente – 0 angegeben werden. [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-local-handle.h(252,22):
npm error       Siehe Deklaration von "v8::Local"
npm error
npm error C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2542,8): error C2665: "v8::ObjectTemplate::SetAccessor": Keine überladene Funktion konnte alle Argumenttypen konvertieren [C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings\build\bindings.vcxproj]
npm error   (Quelldatei „../src/serialport.cpp“ wird kompiliert)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-template.h(1055,8):
npm error       kann "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Local<v8::Value>,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)" sein
npm error           C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2542,8):
npm error           "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Local<v8::Value>,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)" : Konvertierung von Argument 5 von "v8::AccessControl" in "v8::PropertyAttribute" nicht möglich
npm error               C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2547,7):
npm error               Die Konvertierung in einen Enumerationstypen erfordert explizite Umwandlung (static_cast-Umwandlung, C-Stil-Umwandlung oder eine in Klammern gesetzte Umwandlung im Funktionsstil)
npm error       C:\Users\FCS Research Lab\AppData\Local\node-gyp\Cache\22.12.0\include\node\v8-template.h(1049,8):
npm error       oder "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm error           C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2542,8):
npm error           "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)" : Konvertierung von Argument 2 von "Nan::imp::NativeGetter" in "v8::AccessorGetterCallback" nicht möglich
npm error               C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2544,7):
npm error               Diese Konvertierung erfordert eine reinterpret_cast-Umwandlung, eine C-Stil-Umwandlung oder eine in Klammern gesetzte Umwandlung im Funktionsstil.
npm error       C:\Users\FCS Research Lab\Downloads\rpos\node_modules\nan\nan.h(2542,8):
npm error       bei Anpassung der Argumentliste "(v8::Local<v8::String>, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Local<v8::Object>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm error prebuild-install WARN install No prebuilt binaries found (target=22.12.0 runtime=node arch=x64 libc= platform=win32)
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info find Python using Python version 3.12.6 found at "C:\Python312\python.exe"
npm error gyp info find VS using VS2022 (17.12.35527.113) found at:
npm error gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp info spawn C:\Python312\python.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'C:\\Users\\FCS Research Lab\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'msvs',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\FCS Research Lab\\Downloads\\rpos\\node_modules\\@serialport\\bindings\\build\\config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\FCS Research Lab\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\FCS Research Lab\\AppData\\Local\\node-gyp\\Cache\\22.12.0\\include\\node\\common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=C:\\Users\\FCS Research Lab\\AppData\\Local\\node-gyp\\Cache\\22.12.0',
npm error gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\FCS Research Lab\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\FCS Research Lab\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\22.12.0\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=C:\\Users\\FCS Research Lab\\Downloads\\rpos\\node_modules\\@serialport\\bindings',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'C:\\Users\\FCS Research Lab\\Downloads\\rpos\\node_modules\\@serialport\\bindings\\build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'build\\binding.sln',
npm error gyp info spawn args '/clp:Verbosity=minimal',
npm error gyp info spawn args '/nologo',
npm error gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm error gyp info spawn args ]
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\FCS Research Lab\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:216:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm error gyp ERR! System Windows_NT 10.0.19045
npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\FCS Research Lab\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm error gyp ERR! cwd C:\Users\FCS Research Lab\Downloads\rpos\node_modules\@serialport\bindings
npm error gyp ERR! node -v v22.12.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: C:\Users\FCS Research Lab\AppData\Local\npm-cache\_logs\2024-12-21T16_32_54_733Z-debug-0.log

Is there a way to run this on Windows 10?
Or any other known projects that can wrap a RTSP-stream in ONVIF?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants