You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Windows\System32> cd C:\gtk-build\github\gvsbuild
PS C:\gtk-build\github\gvsbuild> .\.venv\Scripts\activate.ps1
(.venv) PS C:\gtk-build\github\gvsbuild> gvsbuild build --enable-gi gst-plugins-bad
Build type is debug-optimized
Cleaning up the build environment
Checking msys tool
Using C:\msys64 for msys installation
Checking Msvc tool
Visual Studio installation(s) found:
Visual Studio Build Tools 2022 @ C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
Using Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
Downloading packages
Building project meson (1.5.1)
Building project ninja (1.12.1)
(tar) Exporting pkgconf
Building project pkgconf (2.3.0)
[0/1] Installing files.Installing pkgconf-5.dll to C:\gtk-build\gtk\x64\release\bin
Installing pkgconf.lib to C:\gtk-build\gtk\x64\release\lib
Installing pkgconf-5.pdb to C:\gtk-build\gtk\x64\release\bin
Installing pkgconf.exe to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
1 file(s) copied.
Building project cmake (3.30.2)
(tar) Exporting win-iconv
Building project win-iconv (0.0.8)
CMake Warning (dev) at CMakeLists.txt:1 (project):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: C:/gtk-build/build/x64/release/win-iconv/_gvsbuild-cmake
ninja: no work to do.
[0/1] Running tests...Test project C:/gtk-build/build/x64/release/win-iconv/_gvsbuild-cmake
Start 1: win_iconv_test
1/1 Test #1: win_iconv_test ................... Passed 0.02 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 0.03 sec
[0/1] Install the project...-- Install configuration: "RelWithDebInfo"
-- Installing: C:/gtk-build/build/x64/release/win-iconv-rel/lib/iconv.lib
-- Installing: C:/gtk-build/build/x64/release/win-iconv-rel/bin/iconv.dll
-- Installing: C:/gtk-build/build/x64/release/win-iconv-rel/bin/win_iconv.exe
-- Installing: C:/gtk-build/build/x64/release/win-iconv-rel/include/iconv.h
(tar) Exporting gettext
Building project gettext (0.21)
(tar) Exporting libffi
Building project libffi (3.4.6)
[0/1] Installing files.Installing src\ffi-8.dll to C:\gtk-build\gtk\x64\release\bin
Installing src/ffi.lib to C:\gtk-build\gtk\x64\release\lib
Installing src\ffi-8.pdb to C:\gtk-build\gtk\x64\release\bin
Installing C:\gtk-build\build\x64\release\libffi\include\../src/x86/ffitarget.h to C:\gtk-build\gtk\x64\release\include
............Too much output, similar content omitted
(tar) Exporting zlib
Building project zlib (1.3.1)
(tar) Exporting pcre2
Building project pcre2 (10.44)
[0/1] Installing files.Installing pcre2-8-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing pcre2-8.lib to C:\gtk-build\gtk\x64\release\lib
Installing pcre2-8-0.pdb to C:\gtk-build\gtk\x64\release\bin
Installing pcre2-posix-3.dll to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
(tar) Exporting glib-base
Building project glib-base (2.80.4)
[0/1] Installing files.Installing glib\gversionmacros.h to C:/gtk-build/gtk/x64/release/include/glib-2.0/glib
Installing glib\glib-visibility.h to C:/gtk-build/gtk/x64/release/include/glib-2.0/glib
Installing glib\glib-2.0-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing glib/glib-2.0.lib to C:\gtk-build\gtk\x64\release\lib
Installing glib\glib-2.0-0.pdb to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
Building project msys2 (undefined)
(tar) Exporting gobject-introspection
Building project gobject-introspection (1.80.1)
[0/1] Installing files.Installing subdir C:\gtk-build\build\x64\release\gobject-introspection\giscanner\doctemplates to C:\gtk-build\gtk\x64\release\lib/gobject-introspection/giscanner\doctemplates
Installing C:\gtk-build\build\x64\release\gobject-introspection\giscanner\doctemplates\devdocs\meson.build to C:\gtk-build\gtk\x64\release\lib/gobject-introspection/giscanner\doctemplates\devdocs
Installing C:\gtk-build\build\x64\release\gobject-introspection\giscanner\doctemplates\devdocs\Gjs\base.tmpl to C:\gtk-build\gtk\x64\release\lib/gobject-introspection/giscanner\doctemplates\devdocs\Gjs
............Too much output, similar content omitted
(tar) Exporting glib
Building project glib (2.80.4)
[0/1] Installing files.Installing glib\gversionmacros.h to C:/gtk-build/gtk/x64/release/include/glib-2.0/glib
Installing glib\glib-visibility.h to C:/gtk-build/gtk/x64/release/include/glib-2.0/glib
Installing glib\glib-2.0-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing glib/glib-2.0.lib to C:\gtk-build\gtk\x64\release\lib
Installing glib\glib-2.0-0.pdb to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
(tar) Exporting orc
Building project orc (0.4.39)
[0/1] Installing files.Installing orc\orc-0.4-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing orc/orc-0.4.lib to C:\gtk-build\gtk\x64\release\lib
Installing orc\orc-0.4-0.pdb to C:\gtk-build\gtk\x64\release\bin
Installing orc-test\orc-test-0.4-0.dll to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
(tar) Exporting gstreamer
Building project gstreamer (1.24.6)
[0/1] Installing files.Installing gst\gstenumtypes.h to C:\gtk-build\gtk\x64\release\include/gstreamer-1.0/gst
Installing gst\gstreamer-1.0-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing gst/gstreamer-1.0.lib to C:\gtk-build\gtk\x64\release\lib
Installing gst\gstreamer-1.0-0.pdb to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
(tar) Exporting opus
Building project opus (1.5.2)
[0/1] Installing files.Installing src\opus-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing src/opus.lib to C:\gtk-build\gtk\x64\release\lib
Installing src\opus-0.pdb to C:\gtk-build\gtk\x64\release\bin
Installing C:\gtk-build\build\x64\release\opus\include\opus.h to C:\gtk-build\gtk\x64\release\include\opus
............Too much output, similar content omitted
(tar) Exporting ogg
Building project ogg (1.3.5)
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring libogg 1.3.5
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: C:/gtk-build/build/x64/release/ogg/_gvsbuild-cmake
[0/1] Install the project...-- Install configuration: "RelWithDebInfo"
-- Installing: C:/gtk-build/build/x64/release/ogg-rel/lib/ogg.lib
-- Installing: C:/gtk-build/build/x64/release/ogg-rel/include/ogg/config_types.h
-- Installing: C:/gtk-build/build/x64/release/ogg-rel/include/ogg/ogg.h
............Too much output, similar content omitted
(tar) Exporting gst-plugins-base
Building project gst-plugins-base (1.24.6)
[0/1] Installing files.Installing gst-libs\gst\tag\tag-enumtypes.h to C:\gtk-build\gtk\x64\release\include/gstreamer-1.0/gst/tag
Installing gst-libs\gst\tag\gsttag-1.0-0.dll to C:\gtk-build\gtk\x64\release\bin
Installing gst-libs/gst/tag/gsttag-1.0.lib to C:\gtk-build\gtk\x64\release\lib
Installing gst-libs\gst\tag\gsttag-1.0-0.pdb to C:\gtk-build\gtk\x64\release\bin
............Too much output, similar content omitted
(tar) Exporting gst-plugins-bad
Building project gst-plugins-bad (1.24.6)
[1/3] Compiling C++ object sys/nvcodec/gstnvcodec.dll.p/gstnvdecoder.cpp.obj
FAILED: sys/nvcodec/gstnvcodec.dll.p/gstnvdecoder.cpp.obj
"cl" "-Isys\nvcodec\gstnvcodec.dll.p" "-Isys\nvcodec" "-I..\sys\nvcodec" "-I." "-I.." "-I..\gst-libs\gst\cuda\stub" "-Igst-libs" "-I..\gst-libs" "-Igst-libs\gst\codecs" "-Igst-libs\gst\d3d11" "-Igst-libs\gst\cuda" "-IC:/gtk-build/gtk/x64/release/bin/../include/gstreamer-1.0" "-IC:/gtk-build/gtk/x64/release/bin/../include" "-IC:/gtk-build/gtk/x64/release/bin/../include/glib-2.0" "-IC:/gtk-build/gtk/x64/release/bin/../lib/glib-2.0/include" "-IC:/gtk-build/gtk/x64/release/bin/../include/orc-0.4" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W2" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Zi" "/wd4018" "/wd4146" "/wd4244" "/wd4305" "/wd5051" "/utf-8" "-DHAVE_CONFIG_H" "-DGST_USE_UNSTABLE_API" "/Fdsys\nvcodec\gstnvcodec.dll.p\gstnvdecoder.cpp.pdb" /Fosys/nvcodec/gstnvcodec.dll.p/gstnvdecoder.cpp.obj "/c" ../sys/nvcodec/gstnvdecoder.cpp
../sys/nvcodec/gstnvdecoder.cpp(1260): error C2065: 'GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1258): error C2660: 'gst_caps_set_features_simple': function does not take 1 arguments
C:\gtk-build\gtk\x64\release\include\gstreamer-1.0\gst/gstcaps.h(434): note: see declaration of 'gst_caps_set_features_simple'
../sys/nvcodec/gstnvdecoder.cpp(1258): note: while trying to match the argument list '(GstCaps *)'
../sys/nvcodec/gstnvdecoder.cpp(1441): error C2065: 'GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1440): error C2660: 'gst_caps_set_features_simple': function does not take 1 arguments
C:\gtk-build\gtk\x64\release\include\gstreamer-1.0\gst/gstcaps.h(434): note: see declaration of 'gst_caps_set_features_simple'
../sys/nvcodec/gstnvdecoder.cpp(1440): note: while trying to match the argument list '(GstCaps *)'
../sys/nvcodec/gstnvdecoder.cpp(1535): error C2065: 'GstD3D11Device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1535): error C2059: syntax error: ')'
../sys/nvcodec/gstnvdecoder.cpp(1535): error C2143: syntax error: missing ';' before '{'
../sys/nvcodec/gstnvdecoder.cpp(1559): error C2065: 'GstD3D11Device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1559): error C2059: syntax error: ')'
../sys/nvcodec/gstnvdecoder.cpp(1559): error C2143: syntax error: missing ';' before '{'
../sys/nvcodec/gstnvdecoder.cpp(1675): error C2065: 'GstD3D11Device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1675): error C2059: syntax error: ')'
../sys/nvcodec/gstnvdecoder.cpp(1675): error C2143: syntax error: missing ';' before '{'
../sys/nvcodec/gstnvdecoder.cpp(1786): error C2065: 'GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1861): error C2065: 'GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(1860): error C2660: 'gst_caps_set_features': function does not take 2 arguments
C:\gtk-build\gtk\x64\release\include\gstreamer-1.0\gst/gstcaps.h(430): note: see declaration of 'gst_caps_set_features'
../sys/nvcodec/gstnvdecoder.cpp(1860): note: while trying to match the argument list '(GstCaps *, int)'
../sys/nvcodec/gstnvdecoder.cpp(2016): error C2065: 'GstD3D11AllocationParams': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2016): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2017): error C2065: 'GstD3D11Device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2017): error C2065: 'device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2027): error C2065: 'GstD3D11Device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2027): error C2059: syntax error: ')'
../sys/nvcodec/gstnvdecoder.cpp(2027): error C2143: syntax error: missing ';' before '{'
../sys/nvcodec/gstnvdecoder.cpp(2032): error C2065: 'device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2032): error C3861: 'GST_D3D11_DEVICE': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2041): error C3861: 'GST_IS_D3D11_BUFFER_POOL': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2046): error C2065: 'GstD3D11BufferPool': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2046): error C2065: 'dpool': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2046): error C3861: 'GST_D3D11_BUFFER_POOL': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2047): error C2065: 'dpool': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2047): error C2065: 'device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2055): error C2065: 'device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2055): error C3861: 'gst_d3d11_buffer_pool_new': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2064): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2064): error C3861: 'gst_buffer_pool_config_get_d3d11_allocation_params': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2065): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2066): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2066): error C2065: 'device': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2067): error C2065: 'GST_D3D11_ALLOCATION_FLAG_DEFAULT': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2066): error C3861: 'gst_d3d11_allocation_params_new': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2070): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2070): error C3861: 'gst_buffer_pool_config_set_d3d11_allocation_params': identifier not found
../sys/nvcodec/gstnvdecoder.cpp(2071): error C2065: 'd3d11_params': undeclared identifier
../sys/nvcodec/gstnvdecoder.cpp(2071): error C3861: 'gst_d3d11_allocation_params_free': identifier not found
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\utils\builder.py", line 540, in build
if self.__build_one(p):
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\utils\builder.py", line 676, in __build_one
skip_deps = proj.build()
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\projects\gstreamer.py", line 183, in build
Meson.build(self)
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\utils\base_builders.py", line 56, in build
self.builder.exec_ninja(params="install", working_dir=ninja_build)
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\utils\builder.py", line 998, in exec_ninja
self.__execute(
File "C:\gtk-build\github\gvsbuild\.venv\lib\site-packages\gvsbuild\utils\builder.py", line 1054, in __execute
subprocess.check_call(args, cwd=working_dir, env=env, shell=True)
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'ninja install' returned non-zero exit status 1.
Error: gst-plugins-bad build failed
It's easy to spot these two problems. FAILED: sys/nvcodec/gstnvcodec.dll.p/gstnvdecoder.cpp.obj Error: gst-plugins-bad build failed
But I searched online and didn't find a definite solution.
In logical order, I called the .venv environment in my program and ran it and got an error like gi.repository.GLib.GError: gst_parse_error: no component 'x264enc' (1).
If GStreamer x264enc is missing, you need to install dependencies such as sudo apt-get install gstreamer1.0-plugins-ugly.
This command is based on the Ubuntu system, and I am currently using gvsbuild to build GTK on a Win system.
So these commands don't work for me.
So I used gvsbuild build --enable-gi to install related dependencies to try to solve the error gi.repository.GLib.GError: gst_parse_error: no component 'x264enc' (1).
But unfortunately I can't install gvsbuild build --enable-gi gst-plugins-bad.
The text was updated successfully, but these errors were encountered:
Error full display.
It's easy to spot these two problems.
FAILED: sys/nvcodec/gstnvcodec.dll.p/gstnvdecoder.cpp.obj
Error: gst-plugins-bad build failed
But I searched online and didn't find a definite solution.
According to the tutorial, I completed the steps.
And get the correct output result.
Here are my environment variables.
I installed the following via
gvsbuild build --enable-gi
.And all succeeded.
You can notice that I installed a lot of stuff related to gstreamer.
In logical order, I called the .venv environment in my program and ran it and got an error like
gi.repository.GLib.GError: gst_parse_error: no component 'x264enc' (1)
.If GStreamer x264enc is missing, you need to install dependencies such as
sudo apt-get install gstreamer1.0-plugins-ugly
.This command is based on the Ubuntu system, and I am currently using gvsbuild to build GTK on a Win system.
So these commands don't work for me.
So I used
gvsbuild build --enable-gi
to install related dependencies to try to solve the errorgi.repository.GLib.GError: gst_parse_error: no component 'x264enc' (1)
.But unfortunately I can't install
gvsbuild build --enable-gi gst-plugins-bad
.The text was updated successfully, but these errors were encountered: