[x264-devel] x86_64 build command

Edward Richards edward at edwardandalison.com
Tue Mar 27 06:30:03 CEST 2012


Never mind.
A: it was XMM0 so SSE not MMX.
B: the pointer at that line is 0x0 so it was an access violation not an
illegal instruction.

...........................


Hi all,
I'm embarrassed to have to ask but what it the command line to build x264 as
64 bit on windows?

I configured using the commands below but it makes MMX instructions. From
what I can tell you can't have MMX in a 64bit program (well that's what the
MSDN help says anyhow). When I run it I crash on a XMM0 related opcode.

Currently I build using this configuration but it causes the above MMX
problem.

#!/bin/sh
./configure \
	--cross-prefix=/mingw/bin/x86_64-w64-mingw32- \
	--sysroot=/mingw/x86_64-w64-mingw32 \
	--host=x86_64-pc-mingw32 \
	--extra-cflags=-m64 \
	--enable-debug \
	--enable-win32thread \
	--enable-static \
	--extra-cflags=-I../static64/include \
	--extra-ldflags=-L../static64/lib \
	--prefix=../static64

I added -mno-mmx but then I get 

$ make
In file included from
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/include/xmmintrin.h:36:0,
...snip...
                 from ./common/mc.c:27:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/include/mmintrin.h:32:3:
error: #error "MMX instruction set not enabled"





More information about the x264-devel mailing list