gstreamer 1.20: About "Setup a mingw/wine based development environment on linux"

Nicolas Dufresne nicolas at ndufresne.ca
Fri Feb 11 12:56:26 UTC 2022


Le vendredi 11 février 2022 à 03:43 +0300, Артем Семенов via gstreamer-devel a
écrit :
> Hello!
>  
>  
> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.20#setup-a-mingwwin
> e-based-development-environment-on-linux

Its unlikely the distro will solve your issue. The general recommendation might
be to use gstreamer/cerbero build system, it will setup the environment and pull
a known to work mingw toolchain. Make sure to read the README. Cross-compliation
is hard, cerbero helps avoid most of the common mistakes.

>  
>  Could you please tell me the which version of Fedora should I use? 
>  
>  Fedora 34:
>  
>    CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:66
> (message):
>    The C compiler
>  
>      "/usr/bin/x86_64-w64-mingw32-gcc"
>  
>    is not able to compile a simple test program.
>  
>    It fails with the following output:
>  
>      Change Dir: /home/conductor/_Work/gstreamer-
> 1.20/gstreamer/winebuild/meson-private/cmake_libpcre/CMakeFiles/CMakeTmp
>  
>      Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_eb6f3/fast &&
> /usr/bin/gmake  -f CMakeFiles/cmTC_eb6f3.dir/build.make
> CMakeFiles/cmTC_eb6f3.dir/build
>      gmake[1]: Entering directory '/home/conductor/_Work/gstreamer-
> 1.20/gstreamer/winebuild/meson-private/cmake_libpcre/CMakeFiles/CMakeTmp'
>      Building C object CMakeFiles/cmTC_eb6f3.dir/testCCompiler.c.obj
>      /usr/bin/x86_64-w64-mingw32-gcc --sysroot=/usr/x86_64-w64-mingw32/sys-
> root/mingw    -o CMakeFiles/cmTC_eb6f3.dir/testCCompiler.c.obj -c
> /home/conductor/_Work/gstreamer-1.20/gstreamer/winebuild/meson-
> private/cmake_libpcre/CMakeFiles/CMakeTmp/testCCompiler.c
>      Linking C executable cmTC_eb6f3.exe
>      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eb6f3.dir/link.txt --
> verbose=1
>      /usr/bin/cmake -E rm -f CMakeFiles/cmTC_eb6f3.dir/objects.a
>      /usr/bin/x86_64-w64-mingw32-ar cr CMakeFiles/cmTC_eb6f3.dir/objects.a
> @CMakeFiles/cmTC_eb6f3.dir/objects1.rsp
>      /usr/bin/x86_64-w64-mingw32-gcc --sysroot=/usr/x86_64-w64-mingw32/sys-
> root/mingw -Wl,--whole-archive CMakeFiles/cmTC_eb6f3.dir/objects.a -Wl,--no-
> whole-archive -o cmTC_eb6f3.exe -Wl,--out-implib,libcmTC_eb6f3.dll.a -Wl,--
> major-image-version,0,--minor-image-version,0
> @CMakeFiles/cmTC_eb6f3.dir/linklibs.rsp
>      /usr/lib/gcc/x86_64-w64-mingw32/10.3.1/../../../../x86_64-w64-
> mingw32/bin/ld: cannot find crt2.o: No such file or directory
>      collect2: error: ld returned 1 exit status
>      gmake[1]: *** [CMakeFiles/cmTC_eb6f3.dir/build.make:101: cmTC_eb6f3.exe]
> Error 1
>      gmake[1]: Leaving directory '/home/conductor/_Work/gstreamer-
> 1.20/gstreamer/winebuild/meson-private/cmake_libpcre/CMakeFiles/CMakeTmp'
>      gmake: *** [Makefile:127: cmTC_eb6f3/fast] Error 2
>  
>  ...
>  
>     Executing subproject gstreamer:glib:pcre
>  
>     Project name: pcre
>     Project version: undefined
>     C compiler for the host machine: /usr/bin/x86_64-w64-mingw32-gcc (gcc
> 10.3.1 "x86_64-w64-mingw32-gcc (GCC) 10.3.1 20210422 (Fedora MinGW 10.3.1-
> 2.fc34)")
>     C linker for the host machine: /usr/bin/x86_64-w64-mingw32-gcc ld.bfd
> 2.34-11
>     Compiler for language c for the build machine not found.
>  
>     subprojects/pcre-8.37/meson.build:4:0: ERROR: Tried to access compiler for
> language "c", not specified for build machine.
>  
> 
>  Fedora 35:
> 
>      Executing subproject gstreamer:glib:pcre
>  
>      Project name: pcre
>      Project version: undefined
>      C compiler for the host machine: /usr/bin/x86_64-w64-mingw32-gcc (gcc
> 11.2.1 "x86_64-w64-mingw32-gcc (GCC) 11.2.1 20210728 (Fedora MinGW 11.2.1-
> 3.fc35)")
>      C linker for the host machine: /usr/bin/x86_64-w64-mingw32-gcc ld.bfd
> 2.37-3
>      Compiler for language c for the build machine not found.
>  
>      subprojects/pcre-8.37/meson.build:4:0: ERROR: Tried to access compiler
> for language "c", not specified for build machine.
>  
> Thanks!
> 
>  -- 
> With best regards, 
>   Artem Semenov               mailto:artem.semenov at jarillolabs.com
>  



More information about the gstreamer-devel mailing list