<div dir="ltr">Greetings!<div><br></div><div style>I tried to follow instructions on </div><div style><br></div><div style><a href="http://gstreamer.freedesktop.org/wiki/Win32_Cross_Compiling_With_Mingw">http://gstreamer.freedesktop.org/wiki/Win32_Cross_Compiling_With_Mingw</a><br>
</div><div style><br></div><div style>to cross compile GStreamer for Windows.</div><div style><br></div><div style>The scripts suggested in the very end of the web page above:</div><div style><br></div><div style><div>3. Latest version of build scripts:</div>
<div>cross-env.sh allows adjusting settings to particular situation</div><div>build_win32_sdk.sh</div><div><br></div><div style>FAIL on several accounts:</div><div style><br></div><div style>1. In build_win_sdk.sh the line</div>
<div style><br></div><div style>wget <a href="http://www7.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.2.tar.gz">http://www7.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.2.tar.gz</a><br></div><div style><br></div>
<div style>should read (web directory has changed)</div><div style><br></div><div style><div>wget <a href="http://www7.mplayerhq.hu/MPlayer/releases/dvdnav-old/libdvdnav-4.1.2.tar.gz">http://www7.mplayerhq.hu/MPlayer/releases/dvdnav-old/libdvdnav-4.1.2.tar.gz</a></div>
<div><br></div><div>2. In build_win_sdk.sh the line</div><div><br></div><div>modules=${modules/deps/core base good ugly bad}<br></div><div><br></div><div style>should read</div><div style><br></div><div style>modules=${modules/gst/core base good ugly bad ffmpeg}<br>
</div><div style><br></div><div style>Recall that the script is called as</div><div style><br></div><div style>./build_win_sdk.sh preqs deps gst</div><div style><br></div><div style>where gst (rather than deps) is intended to build gstreamer.</div>
<div style><br></div><div style>4. Most importantly. building ffmpeg with the last part of the script:</div><div style><br></div><div style><div>########################## ffmpeg #######################</div><div><br></div>
<div>if [[ $modules == *ffmpeg* ]] ; then</div><div><br></div><div>test -f gst-ffmpeg-${ffmpeg_version}.tar.bz2 ||</div><div> wget <a href="http://gstreamer.freedesktop.org/src/gst-ffmpeg/$(checkpre">http://gstreamer.freedesktop.org/src/gst-ffmpeg/$(checkpre</a> ${ffmpeg_version})gst-ffmpeg-${ffmpeg_version}.tar.bz2</div>
<div>tar -xjvf gst-ffmpeg-${ffmpeg_version}.tar.bz2</div><div>cd gst-ffmpeg-${ffmpeg_version}</div><div># NOCONFIGURE=1 ./autogen.sh</div><div>export_plugin_desc</div><div>lt_cv_deplibs_check_method=pass_all \</div><div>./configure \</div>
<div> --host=${host} \</div><div> --build=${build} \</div><div> --prefix=$prefix</div><div>make</div><div>make install</div><div>cd ..</div><div><br></div><div>fi</div><div>##################</div><div><br></div><div style>
is plagued with warnings and errors (and no help is available on the web):</div><div style><br></div><div style><div>configure: WARNING: using cross tools not prefixed with host triplet</div><div>configure: WARNING: libbz2 not found, matroska demuxer will not be able to read bz2 tracks</div>
<div>libavdevice/alldevices.c:1: warning: -fPIC ignored for target (all code is position independent)</div><div>In file included from ./libavformat/avformat.h:55,</div><div> from libavdevice/alldevices.c:22:</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:372: error: no previous prototype for ‘getc’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:379: error: no previous prototype for ‘putc’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:386: error: no previous prototype for ‘getchar’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:393: error: no previous prototype for ‘putchar’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:606: error: no previous prototype for ‘vsnwprintf’</div><div>In file included from ./libavutil/common.h:31,</div><div> from ./libavutil/avutil.h:81,</div>
<div> from ./libavcodec/avcodec.h:30,</div><div> from ./libavformat/avformat.h:56,</div><div> from libavdevice/alldevices.c:22:</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/inttypes.h:259: error: no previous prototype for ‘imaxabs’</div>
<div>In file included from ./libavutil/common.h:33,</div><div> from ./libavutil/avutil.h:81,</div><div> from ./libavcodec/avcodec.h:30,</div><div> from ./libavformat/avformat.h:56,</div>
<div> from libavdevice/alldevices.c:22:</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:357: error: no previous prototype for ‘__fpclassifyl’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:378: error: no previous prototype for ‘__isnan’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:387: error: no previous prototype for ‘__isnanf’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:396: error: no previous prototype for ‘__isnanl’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:413: error: no previous prototype for ‘__signbit’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:419: error: no previous prototype for ‘__signbitf’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:425: error: no previous prototype for ‘__signbitl’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:459: error: no previous prototype for ‘sinhf’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:463: error: no previous prototype for ‘coshf’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:467: error: no previous prototype for ‘tanhf’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:489: error: no previous prototype for ‘expf’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:505: error: no previous prototype for ‘frexpf’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:517: error: no previous prototype for ‘ldexpf’</div><div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:597: error: no previous prototype for ‘hypotf’</div>
<div>/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:602: error: no previous prototype for ‘powf’</div><div>make[5]: *** [libavdevice/alldevices.o] Error 1</div><div>make[4]: *** [all-local] Error 2</div>
<div>make[3]: *** [all-recursive] Error 1</div><div>make[2]: *** [all-recursive] Error 1</div><div>make[1]: *** [all-recursive] Error 1</div><div>make: *** [all] Error 2</div><div><br></div></div><div style>Could please someone help to fix this script or give some pointers how to do it?</div>
<div style><br></div><div style>The alternative scripts on the page either do not build ffmpeg, or download code from </div><div style><br></div><div style>http:///home/tshalif</div><div style><br></div><div style>which obviously does not make sense.</div>
<div style><br></div><div style>Many thanks!</div><div><br></div></div></div></div></div>