Log in

View Full Version : x264 GTK gui on Mac OSX


MySchizoBuddy
28th September 2008, 04:01
trying to compile the x264 version 20080926 with gtk gui using the following configure script

./configure --prefix=/opt/local --enable-shared --enable-gtk --enable-pic --extra-cflags="-I/opt/local/install -I/usr/X11R6/include" --extra-ldflags="-L/opt/local/lib -L/usr/X11R6/lib"


i get this error
T: fr.mo
..................... done.
msgmerge: `fr.po': No such file or directory
make[1]: *** [fr.mo] Error 1

the file is in gtk/fr.po so it does exist

Also how do i create a standalone binary for x264 and the gtk gui that i can post online.

MySchizoBuddy
28th September 2008, 04:04
can we also get build in mac support in the configure script
like this

darwin*)
SYS="MACOSX"
# Support for Fink Packages
if test -d /sw/bin ; then
prefix="/sw"
CFLAGS="-I/sw/include $CFLAGS"
LDFLAGS="-L/sw/lib $LDFLAGS"
elif
# Support for Macports
test -d /opt/local/bin ; then
prefix="/opt/local"
CFLAGS="-I/opt/local/include $CFLAGS"
LDFLAGS="-L/opt/local/lib $LDFLAGS"
fi
CFLAGS="$CFLAGS -falign-loops=16"
LDFLAGS="$LDFLAGS -lm -lmx"
# Mac OS X Leopard libGL.dylib linker interaction bug fix, see
# http://developer.apple.com/qa/qa2007/qa1567.html
MACOSX_VERSION=`uname -r | sed 's/^\(.\).*/\1/'`
if test x"$MACOSX_VERSION" = "x9" ; then
DYLIB_FILE="-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
LDFLAGS="$LDFLAGS $DYLIB_FILE"
fi
;;

MySchizoBuddy
30th September 2008, 20:05
Am I allowed to submit patches for macs or no

Dark Shikari
30th September 2008, 20:10
Am I allowed to submit patches for macs or noYes, there's a mailing list for this purpose.

ACoolie
30th September 2008, 22:32
building x264 w/o GTK support on Intel and PPC Macs works fine for me. Does this patch affect non-gtk builds?

buzzqw
1st October 2008, 12:30
on linux (debian sid 64bit) the gtk works ok

BHH

MySchizoBuddy
2nd October 2008, 03:13
this patch is for gtk as well as mp4 support. without the correct cflags it cannot find gpac/isomedia.h used to build mp4 support. it assumes you are using fink or macports

avcourse you have to have compiled gpac first to enable mp4 support.

i have to comment out the .po .mo stuff from gtk/makefile. it now compiles with a nice gtk gui on macs.