<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body smarttemplateinserted="true">
    <div id="smartTemplate4-quoteHeader">Hello, Nicolas!<br>
      <br>
      You are right - the problem was in an incorrectly configured
      environment.<br>
      <br>
      Thanks a lot! <br>
      <br>
      On 11.02.2022, 15:56:26:<br>
      <!--<div style="border: 1px gray solid; padding: 5px; margin: 5px 0px; max-width: 850px;"> <b>From:</b> Discussion Of The Development Of And With Gstreamer <gstreamer-devel@lists.freedesktop.org> <br> <b>Sent:</b>  Пятница, Февраля 11, 2022 3:56PM <br> <b>To:</b> Discussion Of The Development Of And With Gstreamer <gstreamer-devel@lists.freedesktop.org><br>   <b>Cc:</b> Nicolas Dufresne <nicolas@ndufresne.ca>, Артем Семенов <artem.semenov@jarillolabs.com> <br><br> <b>Subject:</b> Re: gstreamer 1.20: About "Setup a mingw/wine based development environment on linux" <br></div>--></div>
    <blockquote type="cite"
      cite="mid:3726c2c6d28bb3a5ee17152bf54912706c330170.camel@ndufresne.ca">
      <pre class="moz-quote-pre" wrap="">Le vendredi 11 février 2022 à 03:43 +0300, Артем Семенов via gstreamer-devel a
écrit :
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hello!
 
 
<a class="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.20#setup-a-mingwwin">https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.20#setup-a-mingwwin</a>
e-based-development-environment-on-linux
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
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.

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap=""> 
 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               <a class="moz-txt-link-freetext" href="mailto:artem.semenov@jarillolabs.com">mailto:artem.semenov@jarillolabs.com</a>
 
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <div id="smartTemplate4-template"><span class="moz-txt-tag">-- <br>
      </span>With best regards, <br>
       Artem Semenov               <a class="moz-txt-link-freetext"
        href="mailto:artem.semenov@jarillolabs.com">mailto:artem.semenov@jarillolabs.com</a></div>
  </body>
</html>