Compiling contrib package 10.5.7

macOS specific usage questions
diegofn
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Mar 2008 17:34

Compiling contrib package 10.5.7

Postby diegofn » 22 Jun 2009 20:00

Hi!

Congratulations for the VLC 1.0.0. I'm compiling the contrib package in Mac OS X Leopard 10.5.7 but I have the following error compiling libtheora 1.0

Code: Select all

make all-recursive Making all in lib if /bin/sh ../libtool --tag=CC --mode=compile /Developer/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -march=prescott -mtune=generic -arch i386 -DMACOSX_DEPLOYMENT_TARGET=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DNDEBUG -isystem /Users/diegofn/Documents/vlc/vlc/extras/contrib/include -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -march=prescott -mtune=generic -arch i386 -DMACOSX_DEPLOYMENT_TARGET=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DNDEBUG -isystem /Users/diegofn/Documents/vlc/vlc/extras/contrib/include -MT dct_decode_mmx.lo -MD -MP -MF ".deps/dct_decode_mmx.Tpo" -c -o dct_decode_mmx.lo `test -f 'enc/x86_32/dct_decode_mmx.c' || echo './'`enc/x86_32/dct_decode_mmx.c; \ then mv -f ".deps/dct_decode_mmx.Tpo" ".deps/dct_decode_mmx.Plo"; else rm -f ".deps/dct_decode_mmx.Tpo"; exit 1; fi /Developer/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -march=prescott -mtune=generic -arch i386 -DMACOSX_DEPLOYMENT_TARGET=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DNDEBUG -isystem /Users/diegofn/Documents/vlc/vlc/extras/contrib/include -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -I/Users/diegofn/Documents/vlc/vlc/extras/contrib/include -march=prescott -mtune=generic -arch i386 -DMACOSX_DEPLOYMENT_TARGET=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DNDEBUG -isystem /Users/diegofn/Documents/vlc/vlc/extras/contrib/include -MT dct_decode_mmx.lo -MD -MP -MF .deps/dct_decode_mmx.Tpo -c enc/x86_32/dct_decode_mmx.c -fno-common -DPIC -o .libs/dct_decode_mmx.o enc/x86_32/dct_decode_mmx.c: In function 'loop_filter_mmx': enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:216: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:33: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:33: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:216: error: 'asm' operand has impossible constraints enc/x86_32/dct_decode_mmx.c:33: error: 'asm' operand has impossible constraints make[4]: *** [dct_decode_mmx.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [.theora] Error 2 make: *** [using-src] Error 2
To resolve this problem I add the following line in the contrilb Makefile I take this line from VLC Port from MacPots.org

Code: Select all

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile index 1d5a820..eda8726 100644 --- a/extras/contrib/src/Makefile +++ b/extras/contrib/src/Makefile @@ -803,7 +803,7 @@ ifdef HAVE_WIN32 endif (cd $@; autoconf) -THEORACONF = --disable-sdltest --disable-oggtest --disable-vorbistest --disable-examples +THEORACONF = --disable-sdltest --disable-oggtest --disable-vorbistest --disable-examples --disable-asm ifdef HAVE_WIN32 THEORACONF += --disable-docs endif
I add the --disable-asm flag.. can you check this change and add it to SourceCode.

Thanks for all

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Compiling contrib package 10.5.7

Postby The DJ » 23 Jun 2009 03:53

Disabling all ASM makes theora considerably slower than it should be of course, and is thus a workaround, not a solution. I don't know why theora is currently broken, but if you just use the precompiled binaries, then you won't be bothered by this.
Don't use PMs for support questions.

des
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2009 09:59

Re: Compiling contrib package 10.5.7

Postby des » 03 Jul 2009 10:06

in extras/contrib/src/patches/theora.patch
i have changed the line
+ EXTRAS_CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
to
+ EXTRAS_CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -fno-pic"

diegofn
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Mar 2008 17:34

Re: Compiling contrib package 10.5.7

Postby diegofn » 05 Jul 2009 20:51

Great its works

Thanks for all 'des'


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests