Hi, I am getting this error when I try to build the videoroom example, I have everything installed: c++,gcc,python, pip.
Here’s the cause:
Caused by:
process didn't exit successfully: `C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-585a3da7c7edc148\build-script-build` (exit code: 101)
--- stdout
Collecting invoke
Using cached invoke-2.2.0-py3-none-any.whl.metadata (3.3 kB)
Using cached invoke-2.2.0-py3-none-any.whl (160 kB)
Installing collected packages: invoke
Successfully installed invoke-2.2.0
"C:\Users\chinfon\AppData\Local\Programs\Python\Python312\python.exe" -m pip install --upgrade --no-user --target "C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out/out/pip_meson_ninja" pip setuptools
Collecting pip
Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Collecting setuptools
Downloading setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Downloading setuptools-74.1.2-py3-none-any.whl (1.3 MB)
---------------------------------------- 1.3/1.3 MB 9.1 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
Successfully installed pip-24.2 setuptools-74.1.2
"C:\Users\chinfon\AppData\Local\Programs\Python\Python312\python.exe" -m pip install --upgrade --no-user --target "C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out/out/pip_meson_ninja" meson==1.5.0 ninja==1.10.2.4
Collecting meson==1.5.0
Using cached meson-1.5.0-py3-none-any.whl.metadata (1.8 kB)
Collecting ninja==1.10.2.4
Using cached ninja-1.10.2.4-py2.py3-none-win_amd64.whl.metadata (5.3 kB)
Using cached meson-1.5.0-py3-none-any.whl (959 kB)
Using cached ninja-1.10.2.4-py2.py3-none-win_amd64.whl (293 kB)
Installing collected packages: ninja, meson
Successfully installed meson-1.5.0 ninja-1.10.2.4
cd "C:\Users\chinfon\.cargo\registry\src\index.crates.io-6f17d22bba15001f\mediasoup-sys-0.9.1" && "C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out/out/pip_meson_ninja/bin/meson" setup --prefix "C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out" --bindir "" --libdir "" --buildtype release -Db_ndebug=true --vsenv "C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out/build"
The Meson build system
Version: 1.5.0
Source dir: C:\Users\chinfon\.cargo\registry\src\index.crates.io-6f17d22bba15001f\mediasoup-sys-0.9.1
Build dir: C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\build
Build type: native build
Project name: mediasoup-worker
Project version: undefined
Activating VS 17.9.6
C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
C linker for the host machine: link link 14.39.33523.0
C++ compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
C++ linker for the host machine: link link 14.39.33523.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for function "strtoull_l" : NO
Downloading openssl source from https://www.openssl.org/source/openssl-3.0.8.tar.gz
Downloading openssl patch from https://wrapdb.mesonbuild.com/v2/openssl_3.0.8-3/get_patch
Executing subproject openssl
openssl| Project name: openssl
openssl| Project version: 3.0.8
openssl| C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
openssl| C linker for the host machine: link link 14.39.33523.0
openssl| Run-time dependency threads found: YES
openssl| Program as found: YES (C:\Users\chinfon\mingw64\bin\as.EXE)
openssl| subprojects\openssl-3.0.8\meson.build:151: WARNING: x86_64 + windows combo does not support ASM yet, please contribute
openssl| Message: OpenSSL is configured without ASM support
openssl| Library ws2_32 found: YES
openssl| Library gdi32 found: YES
openssl| Library advapi32 found: YES
openssl| Library crypt32 found: YES
openssl| Library user32 found: YES
openssl| Build targets in project: 3
openssl| Subproject openssl finished.
Downloading libuv source from https://dist.libuv.org/dist/v1.48.0/libuv-v1.48.0.tar.gz
Downloading libuv patch from https://wrapdb.mesonbuild.com/v2/libuv_1.48.0-1/get_patch
Executing subproject libuv
libuv| Project name: libuv
libuv| Project version: 1.48.0
libuv| C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
libuv| C linker for the host machine: link link 14.39.33523.0
libuv| Fetching value of define "__QNX__" : (undefined)
libuv| Fetching value of define "_AIX" : (undefined)
libuv| Message: System: windows
libuv| Compiler for C supports arguments -Wno-deprecated-declarations: NO
libuv| Compiler for C supports arguments /wd4100: YES
libuv| Compiler for C supports arguments /wd4127: YES
libuv| Compiler for C supports arguments /wd4201: YES
libuv| Compiler for C supports arguments /wd4206: YES
libuv| Compiler for C supports arguments /wd4210: YES
libuv| Compiler for C supports arguments /wd4232: YES
libuv| Compiler for C supports arguments /wd4456: YES
libuv| Compiler for C supports arguments /wd4457: YES
libuv| Compiler for C supports arguments /wd4459: YES
libuv| Compiler for C supports arguments /wd4706: YES
libuv| Compiler for C supports arguments /wd4496: YES
libuv| Compiler for C supports arguments -fno-strict-aliasing: NO
libuv| Dependency threads found: YES unknown (cached)
libuv| Library psapi found: YES
libuv| Library user32 found: YES
libuv| Library advapi32 found: YES
libuv| Library iphlpapi found: YES
libuv| Library userenv found: YES
libuv| Library ws2_32 found: YES
libuv| Library dbghelp found: YES
libuv| Library ole32 found: YES
libuv| Library uuid found: YES
libuv| Library shell32 found: YES
libuv| Did not find pkg-config by name 'pkg-config'
libuv| Found pkg-config: NO
libuv| Build targets in project: 4
libuv| Subproject libuv finished.
Downloading libsrtp2 source from https://github.com/versatica/libsrtp/archive/v3.0-alpha.zip
Downloading file of unknown size.
Executing subproject libsrtp2
libsrtp2| Project name: libsrtp2
libsrtp2| Project version: 3.0.0
libsrtp2| C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
libsrtp2| C linker for the host machine: link link 14.39.33523.0
libsrtp2| Library ws2_32 found: YES
libsrtp2| Has header "arpa/inet.h" : NO
libsrtp2| Has header "byteswap.h" : NO
libsrtp2| Has header "inttypes.h" : YES
libsrtp2| Has header "machine/types.h" : NO
libsrtp2| Has header "netinet/in.h" : NO
libsrtp2| Has header "stdint.h" : YES
libsrtp2| Has header "stdlib.h" : YES
libsrtp2| Has header "sys/int_types.h" : NO
libsrtp2| Has header "sys/socket.h" : NO
libsrtp2| Has header "sys/types.h" : YES
libsrtp2| Has header "sys/uio.h" : NO
libsrtp2| Has header "unistd.h" : NO
libsrtp2| Has header "windows.h" : YES
libsrtp2| Has header "winsock2.h" : YES
libsrtp2| Checking for function "sigaction" with dependency -lws2_32: NO
libsrtp2| Checking for function "inet_aton" with dependency -lws2_32: NO
libsrtp2| Checking for function "inet_pton" with dependency -lws2_32: YES
libsrtp2| Checking for function "usleep" with dependency -lws2_32: NO
libsrtp2| Checking for function "socket" with dependency -lws2_32: YES
libsrtp2| Has header "stdint.h" : YES (cached)
libsrtp2| Checking for type "size_t" : YES
libsrtp2| Checking for type "unsigned long" : YES
libsrtp2| Checking for size of "unsigned long" : 4
libsrtp2| Checking for type "unsigned long long" : YES
libsrtp2| Checking for size of "unsigned long long" : 8
libsrtp2| Checking if "inline keyword check" compiles: YES
libsrtp2| Dependency openssl from subproject subprojects/openssl-3.0.8 found: YES 3.0.8
libsrtp2| Configuring config.h using configuration
libsrtp2| Compiler for C supports arguments -Wstrict-prototypes: NO
libsrtp2| Compiler for C supports arguments -funroll-loops: NO
libsrtp2| Program doxygen found: NO
libsrtp2| Build targets in project: 5
libsrtp2| Subproject libsrtp2 finished.
Downloading usrsctp source from https://github.com/sctplab/usrsctp/archive/d45b53f5dfa79533f5c5e7aefa5d7570405afb39.zip
Downloading file of unknown size.
Executing subproject usrsctp
usrsctp| Project name: usrsctplib
usrsctp| Project version: 0.9.5.0
usrsctp| C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
usrsctp| C linker for the host machine: link link 14.39.33523.0
usrsctp| Compiler for C supports arguments /wd4100: YES (cached)
usrsctp| Compiler for C supports arguments /wd4127: YES (cached)
usrsctp| Compiler for C supports arguments /wd4200: YES
usrsctp| Compiler for C supports arguments /wd4214: YES
usrsctp| Compiler for C supports arguments /wd4706: YES (cached)
usrsctp| Compiler for C supports arguments /wd4245: YES
usrsctp| Compiler for C supports arguments /wd4389: YES
usrsctp| Compiler for C supports arguments /wd4702: YES
usrsctp| Compiler for C supports arguments /wd4701: YES
usrsctp| Compiler for C supports arguments /wd4244: YES
usrsctp| Dependency threads found: YES unknown (cached)
usrsctp| Library ws2_32 found: YES
usrsctp| Library iphlpapi found: YES
usrsctp| Has header "sys/queue.h" : NO
usrsctp| Has header "sys/socket.h" : NO (cached)
usrsctp| Has header "sys/types.h" : YES (cached)
usrsctp| Has header "netinet/in.h" : NO (cached)
usrsctp| Has header "netinet/ip.h" : NO
usrsctp| Has header "netinet/ip_icmp.h" : NO
usrsctp| Has header "net/route.h" : NO
usrsctp| Has header "stdatomic.h" : YES
usrsctp| Checking whether type "struct sockaddr" has member "sa_len" : NO
usrsctp| Checking whether type "struct sockaddr_in" has member "sin_len" : NO
usrsctp| Checking whether type "struct sockaddr_in6" has member "sin6_len" : NO
usrsctp| Checking whether type "struct sockaddr_conn" has member "sconn_len" : NO
usrsctp| Build targets in project: 6
usrsctp| Subproject usrsctp finished.
Downloading abseil-cpp source from https://github.com/abseil/abseil-cpp/archive/20230802.1.tar.gz
Downloading abseil-cpp patch from https://wrapdb.mesonbuild.com/v2/abseil-cpp_20230802.1-2/get_patch
Executing subproject abseil-cpp
abseil-cpp| Project name: abseil-cpp
abseil-cpp| Project version: 20230802.1
abseil-cpp| C++ compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
abseil-cpp| C++ linker for the host machine: link link 14.39.33523.0
abseil-cpp| Compiler for C++ supports arguments /DNOMINMAX: YES
abseil-cpp| Compiler for C++ supports arguments -Wno-sign-compare: NO
abseil-cpp| Compiler for C++ supports arguments -Wno-gcc-compat: NO
abseil-cpp| Compiler for C++ supports arguments -maes: NO
abseil-cpp| Compiler for C++ supports arguments -msse4.1: NO
abseil-cpp| Dependency threads found: YES unknown (cached)
abseil-cpp| Run-time dependency appleframeworks found: NO (tried framework)
abseil-cpp| Build targets in project: 21
abseil-cpp| Subproject abseil-cpp finished.
Downloading catch2 source from https://github.com/catchorg/Catch2/archive/v3.6.0.tar.gz
Executing subproject catch2
catch2| Project name: catch2
catch2| Project version: 3.6.0
catch2| C++ compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
catch2| C++ linker for the host machine: link link 14.39.33523.0
catch2| Configuring catch_user_config.hpp using configuration
catch2| Build targets in project: 24
catch2| Subproject catch2 finished.
Downloading flatbuffers source from https://github.com/google/flatbuffers/archive/v24.3.6.tar.gz
Downloading file of unknown size.
Downloading flatbuffers patch from https://wrapdb.mesonbuild.com/v2/flatbuffers_24.3.6-1/get_patch
Executing subproject flatbuffers
flatbuffers| Project name: flatbuffers
flatbuffers| Project version: 24.3.6
flatbuffers| C++ compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
flatbuffers| C++ linker for the host machine: link link 14.39.33523.0
flatbuffers| Checking for function "strtoull_l" : NO
flatbuffers| Compiler for C++ supports arguments -fsigned-char: NO
flatbuffers| Build targets in project: 34
flatbuffers| Subproject flatbuffers finished.
Program flatc found: YES (overridden)
Downloading wingetopt source from https://github.com/alex85k/wingetopt/archive/v1.00.zip
Downloading file of unknown size.
Executing subproject wingetopt
wingetopt| Project name: wingetopt
wingetopt| Project version: 0.95
wingetopt| C compiler for the host machine: cl (msvc 19.39.33523 "Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64")
wingetopt| C linker for the host machine: link link 14.39.33523.0
wingetopt| Build targets in project: 37
wingetopt| Subproject wingetopt finished.
Build targets in project: 44
mediasoup-worker undefined
Subprojects
abseil-cpp : YES
catch2 : YES
flatbuffers: YES
libsrtp2 : YES
libuv : YES
openssl : YES 1 warnings
usrsctp : YES
wingetopt : YES
User defined options
bindir :
buildtype : release
libdir :
prefix : C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out
vsenv : true
b_ndebug : true
Found ninja.exe-1.10.2.git.kitware.jobserver-1 at C:/Users/chinfon/Desktop/videoroom/target/debug/build/mediasoup-sys-71fc337e036c092c/out/out/pip_meson_ninja/bin\ninja.exe
Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\bin\meson compile -C C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\build
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
--- stderr
Traceback (most recent call last):
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\mesonmain.py", line 188, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\msetup.py", line 364, in run
app.generate()
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\msetup.py", line 187, in generate
return self._generate(env, capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\msetup.py", line 252, in _generate
captured_compile_args = intr.backend.generate(capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\backend\ninjabackend.py", line 674, in generate
self.generate_ending()
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\backend\ninjabackend.py", line 3741, in generate_ending
deps = self.get_regen_filelist()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\backend\backends.py", line 1351, in get_regen_filelist
self.check_clock_skew(deps)
File "C:\Users\chinfon\Desktop\videoroom\target\debug\build\mediasoup-sys-71fc337e036c092c\out\out\pip_meson_ninja\mesonbuild\backend\backends.py", line 1372, in check_clock_skew
ftime = os.path.getmtime(absf)
^^^^^^^^^^^^^^^^^^^^^^
File "<frozen genericpath>", line 67, in getmtime
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\chinfon\\Desktop\\videoroom\\target\\debug\\build\\mediasoup-sys-71fc337e036c092c\\out\\build\\..\\..\\..\\..\\..\\..\\..\\..\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\mediasoup-sys-0.9.1\\subprojects\\openssl-3.0.8\\generated-config\\archs\\VC-WIN64A\\no-asm\\meson.build'
thread 'main' panicked at C:\Users\chinfon\.cargo\registry\src\index.crates.io-6f17d22bba15001f\mediasoup-sys-0.9.1\build.rs:155:9:
Failed to build libmediasoup-worker
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace