[MPlayer-users] unable to cross compile?
Roger Pack
rogerdpack2 at gmail.com
Thu Dec 6 21:51:39 CET 2012
Hello.
Here is my feedback from an attempt at cross compiling today,
so...since I'm not awesome at it, take it with a grain of...sand :)
First, I had "hoped" that passing it something like
./configure --host=x86_64-w64-mingw32
would "automagically" setup the correct cc/windres settings, etc. It
appears it doesn't?
Next, I ran this script (perhaps it isn't enough?):
export PATH=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/bin/:/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin:$PATH
./configure --target=i686-w64-mingw32 --enable-static
--enable-cross-compile --windres=i686-w64-mingw32-windres
--cc=i686-w64-mingw32-gcc && make -j 5
This successfully configured it (with dependencies), then I believe I
received a few failure messages:
$ make
./version.sh `i686-w64-mingw32-gcc -dumpversion`
i686-w64-mingw32-gcc -MD -MP -Wundef -Wall -Wno-switch
-Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes
-Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99
-Werror-implicit-function-declaration -O4 -march=i686 -mtune=i686
-pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.
-Iffmpeg -I/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/include/freetype2
-I/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/include
-c -o osdep/getch2.o osdep/getch2.c
osdep/getch2.c:40:23: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
make: *** [osdep/getch2.o] Error 1
then similar failures, after removing that file:
sub/unrar_exec.c:24:22: fatal error: sys/wait.h: No such file or directory
...
osdep/shmem.c:33:21: fatal error: sys/uio.h: No such file or directory
Then finally, at link time, this:
i686-w64-mingw32-gcc: error: unrecognized command line option '-rdynamic'
So anyway feedback welcome.
Thanks!
-roger-
More information about the MPlayer-users
mailing list