Re: [Fink-devel] x86_64 build of ffmpeg failing (still)
William G. Scott wrote: In file included from h264.h:32, from h264.c:31: cabac.h: In function 'decode_significance_x86': cabac.h:693: warning: cast from pointer to integer of different size cabac.h:694: warning: cast from pointer to integer of different size cabac.h: In function 'decode_significance_8x8_x86': cabac.h:742: warning: cast from pointer to integer of different size h264.c: In function 'hl_decode_mb_internal': h264.c:2413: warning: suggest parentheses around arithmetic in operand of ^ h264.c:2419: warning: suggest parentheses around arithmetic in operand of ^ {standard input}:9509:suffix or operands invalid for `add' {standard input}:9521:suffix or operands invalid for `add' The configure script configures for x86_32 in spite of being told you want to build for x86_64. This worked for me: diff -r1.12 ffmpeg.info 21a22,23 ### Fix for selecting x86_32 in spite of --arch=x86_64 perl -pi -e '$c++ if m,arch=x86_32,; s,arch=x86_32,arch=x86_64, if $c==2' configure I also had to configure with: --cc=gcc-4.0 --arch=x86_64 --extra-cflags=-I/sw64/include -m64 --extra-ldflags=-m64 Jon -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] x86_64 build of ffmpeg failing (still)
Am 14.10.2009 um 10:34 schrieb Jon Connell: William G. Scott wrote: In file included from h264.h:32, from h264.c:31: cabac.h: In function 'decode_significance_x86': cabac.h:693: warning: cast from pointer to integer of different size cabac.h:694: warning: cast from pointer to integer of different size cabac.h: In function 'decode_significance_8x8_x86': cabac.h:742: warning: cast from pointer to integer of different size h264.c: In function 'hl_decode_mb_internal': h264.c:2413: warning: suggest parentheses around arithmetic in operand of ^ h264.c:2419: warning: suggest parentheses around arithmetic in operand of ^ {standard input}:9509:suffix or operands invalid for `add' {standard input}:9521:suffix or operands invalid for `add' The configure script configures for x86_32 in spite of being told you want to build for x86_64. This worked for me: diff -r1.12 ffmpeg.info 21a22,23 ### Fix for selecting x86_32 in spite of --arch=x86_64 perl -pi -e '$c++ if m,arch=x86_32,; s,arch=x86_32,arch=x86_64, if $c==2' configure I also had to configure with: --cc=gcc-4.0 --arch=x86_64 --extra-cflags=-I/sw64/include -m64 --extra-ldflags=-m64 I haven't tried the following, so it might not work for ffmpeg; but for other packages (e.g. my dosbox package), adding the following to the configure params solves the issue, without any patching and without needing to make multiple .info files. --build=%m-apple-darwin`uname -r|cut -f1 -d.` Cheers, Max -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] x86_64 build of ffmpeg failing (still)
Max Horn wrote: Am 14.10.2009 um 10:34 schrieb Jon Connell: William G. Scott wrote: In file included from h264.h:32, from h264.c:31: cabac.h: In function 'decode_significance_x86': cabac.h:693: warning: cast from pointer to integer of different size cabac.h:694: warning: cast from pointer to integer of different size cabac.h: In function 'decode_significance_8x8_x86': cabac.h:742: warning: cast from pointer to integer of different size [] {standard input}:9509:suffix or operands invalid for `add' {standard input}:9521:suffix or operands invalid for `add' The configure script configures for x86_32 in spite of being told you want to build for x86_64. This worked for me: diff -r1.12 ffmpeg.info 21a22,23 ### Fix for selecting x86_32 in spite of --arch=x86_64 perl -pi -e '$c++ if m,arch=x86_32,; s,arch=x86_32,arch=x86_64, if $c==2' configure I also had to configure with: --cc=gcc-4.0 --arch=x86_64 --extra-cflags=-I/sw64/include -m64 --extra-ldflags=-m64 I haven't tried the following, so it might not work for ffmpeg; but for other packages (e.g. my dosbox package), adding the following to the configure params solves the issue, without any patching and without needing to make multiple .info files. --build=%m-apple-darwin`uname -r|cut -f1 -d.` Unfortunately, ffmpeg's hand-crafted configure script does not like the --build flag. It wants --arch, but then it stupidly replaces x86_64 by x86_32. Jon's perl -pie fix does the trick here. OTOH, the -m64 doesn't seem to be necessary if compiled with the default gcc (that is, gcc-4.2 with Fink's arch trickery). For gcc-4.2 to work, the warning: cast from pointer to integer of different size has to be patched away, too. Since the maintainer seems to be busy, I have now committed a patched version of ffmpeg.info. Please test. -- Martin -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] x86_64 build of ffmpeg failing (still)
Martin Costabel wrote: Since the maintainer seems to be busy, I have now committed a patched version of ffmpeg.info. Please test. Builds cleanly on my 10.6.1 system. Tried an MP3-WAV and that much at least works. Jon -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel