CVS: main configure, 1.880, 1.881 Makefile, 1.293, 1.294
CVS change done by Sascha Sommer CVS Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv3179 Modified Files: configure Makefile Log Message: mingw crosscompiling step 1 Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.880 retrieving revision 1.881 diff -u -r1.880 -r1.881 --- configure 26 Jun 2004 10:40:21 -0000 1.880 +++ configure 27 Jun 2004 17:54:30 -0000 1.881 @@ -469,6 +469,7 @@ sunos) system_name=SunOS ;; qnx) system_name=QNX ;; morphos) system_name=MorphOS ;; + mingw32msvc) system_name=MINGW32 ;; esac # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'` @@ -1883,6 +1884,17 @@ sunos && _vidix=no fi +echocheck "mplayer binary name" +if win32 ; then + _prg="mplayer.exe" + _prg_mencoder="mencoder.exe" +else + _prg="mplayer" + _prg_mencoder="mencoder" +fi +echores $_prg + + # On QNX we must link to libph - Gabucino if qnx ; then _ld_arch="$_ld_arch -lph" @@ -5961,19 +5973,10 @@ # Determine OS dependent libs if cygwin ; then - _confcygwin='TARGET_CYGWIN = yes' _def_confwin32='#define WIN32' #CFLAGS="$CFLAGS -D__CYGWIN__ -D__CYGWIN_USE_BIG_TYPES__" # stat.st_size with BIG_TYPES is broken (not set) ::atmos CFLAGS="$CFLAGS -D__CYGWIN__" -else - _confcygwin="TARGET_CYGWIN = no" -fi - -if mingw32 ; then - _confmingw32='TARGET_MINGW32 = yes' -else - _confmingw32='TARGET_MINGW32 = no' fi if win32 ; then @@ -6097,6 +6100,9 @@ OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) STRIPBINARIES = $_stripbinaries +PRG = $_prg +PRG_MENCODER = $_prg_mencoder + $_live_libs_def MPLAYER_NETWORK = $_network @@ -6221,8 +6227,6 @@ # --- Some stuff for autoconfigure ---- $_target_arch $_confwin32 -$_confcygwin -$_confmingw32 TARGET_CPU=$iproc TARGET_MMX = $_mmx TARGET_MMX2 = $_mmx2 Index: Makefile =================================================================== RCS file: /cvsroot/mplayer/main/Makefile,v retrieving revision 1.293 retrieving revision 1.294 diff -u -r1.293 -r1.294 --- Makefile 26 Jun 2004 15:35:35 -0000 1.293 +++ Makefile 27 Jun 2004 17:54:30 -0000 1.294 @@ -6,9 +6,7 @@ include config.mak -PRG = mplayer PRG_CFG = codec-cfg -PRG_MENCODER = mencoder # Do not strip the binaries at installation ifeq ($(STRIPBINARIES),yes)
On Sunday 27 June 2004 19:54, Sascha Sommer CVS wrote:
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv3179
Modified Files: configure Makefile Log Message: mingw crosscompiling step 1
Note that it does not work out of the box yet. The problem is that mplayers buildsystem is trying to compile and execute programs during configure and during the build process. This will of course fail for cross compiling Now some short HOWTO Get the script from http://www.libsdl.org/extras/win32/cross/README.txt update the build-cross script to use the latest w32api and mingw runtime packages. After executing the script replaced the directx headers in /usr/local/cross-tools/include with the ones from mplayerhq.hu/MPlayer/releases/win32-beta/contrib Then ln -s /usr/local/cross-tools/bin/i386-mingw32msvc-windres /usr/local/cross-tools/bin/windres After that download the cross-make.sh and cross-configure.sh scripts to /usr/local/bin and modified the cross-configure.sh script to only pass the --target option to configure The tree built fine with /usr/local/bin/cross-configure.sh --enable-static --enable-runtime-cpudetection /usr/local/bin/cross-make.sh However I had to copy the codec-cfg binary from a linux build. Rich said it would be better to write this tool as a script. So if you think you can do it. Go ahead. And of course: Checking for byte order ... configure: line 5677: /tmp/mplayer-conf-7560-5328.o: cannot execute binary file Little Endian Checking for word size ... configure: line 1: /tmp/mplayer-conf-7560-5328.o: cannot execute binary file Just in case someone wants to crosscompile for systems other than x86 ;) Sascha
Hello, On Sun, Jun 27, 2004 at 08:21:56PM +0200, Sascha Sommer wrote:
On Sunday 27 June 2004 19:54, Sascha Sommer CVS wrote:
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv3179
Modified Files: configure Makefile Log Message: mingw crosscompiling step 1
Note that it does not work out of the box yet. The problem is that mplayers buildsystem is trying to compile and execute programs during configure and during the build process. This will of course fail for cross compiling
Just a hack, but maybe installing wine as a handler for .exe binfmt could help this? It should ease some problems. -- With best wishes Dmitry Baryshkov
On Monday 28 June 2004 09:47, Dmitry Baryshkov wrote:
Hello,
On Sun, Jun 27, 2004 at 08:21:56PM +0200, Sascha Sommer wrote:
On Sunday 27 June 2004 19:54, Sascha Sommer CVS wrote:
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv3179
Modified Files: configure Makefile Log Message: mingw crosscompiling step 1
Note that it does not work out of the box yet. The problem is that mplayers buildsystem is trying to compile and execute programs during configure and during the build process. This will of course fail for cross compiling
Just a hack, but maybe installing wine as a handler for .exe binfmt could help this? It should ease some problems.
Well you only need to copy the codec-cfg app. Should be no problem for now Sascha
On Sun, Jun 27, 2004 at 08:21:56PM +0200, Sascha Sommer wrote:
On Sunday 27 June 2004 19:54, Sascha Sommer CVS wrote:
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv3179
Modified Files: configure Makefile Log Message: mingw crosscompiling step 1
Note that it does not work out of the box yet. The problem is that mplayers buildsystem is trying to compile and execute programs during configure and during the build process. This will of course fail for cross compiling [...]
However I had to copy the codec-cfg binary from a linux build. Rich said it would be better to write this tool as a script. So if you think you can do it. Go ahead. And of course: Checking for byte order ... configure: line 5677: /tmp/mplayer-conf-7560-5328.o: cannot execute binary file Little Endian
Checking for word size ... configure: line 1: /tmp/mplayer-conf-7560-5328.o: cannot execute binary file Just in case someone wants to crosscompile for systems other than x86 ;)
I once (about a year ago or so) did that. It requires iirc 2 steps: compile mplayer on the host system to acuire those binaries, then copy them over and tell make not to build them. It would be of course better if we would distinguish between target and host compiler and binaries. Unfortunately i neither had the time nor knowlege about configre or the buildsystem to do it then. Attila Kinali
Sascha Sommer CVS writes:
+echocheck "mplayer binary name"
I'd consider this an evil typo... Diego
participants (5)
-
attila -
Diego Biurrun -
mitya@school.ioffe.ru -
Sascha Sommer -
syncmail@mplayerhq.hu