Changes between Initial Version and Version 3 of Ticket #28182
- Timestamp:
- Jan 28, 2011, 3:52:52 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28182
- Property Port gst-ffmpeg added
-
Ticket #28182 – Description
initial v3 1 1 Hello, when trying to install the gst-ffmpeg package on Snow Leopard 64 bits, but using i386 as the build architecture and 10.5 as the deployment target, the build stage fails with this error: 2 2 3 {{{ 3 4 :info:build CC libavcodec/h264_cabac.o 4 5 :info:build libavcodec/cabac.h: In function 'get_cabac_noinline': 5 6 :info:build libavcodec/cabac.h:527: error: PIC register '%ebx' clobbered in 'asm' 6 7 ... 8 }}} 7 9 8 10 (full error log is attached) … … 10 12 I should also note that in order to generate valid 32 bits binaries for 10.5 when compiling from OSX 10.6 64 bits, I changed the default LD flags in <prefix>/share/macports/Tcl/port1.0/portconfigure.tcl as: 11 13 14 {{{ 12 15 default configure.ldflags {"-L${prefix}/lib -Xlinker -headerpad_max_install_names -mmacosx-version-min=10.5 -no_compact_linkedit"} 16 }}} 13 17 14 18 I don't know if this influencing the occurrence of the error. Anyways, a solution I found to this problem was to add the the following post-configure step in the portfile of gst-ffmpeg: 15 19 20 {{{ 16 21 post-configure { 17 22 if { $build_arch == "i386" } { … … 20 25 } 21 26 } 27 }}}