Changes between Initial Version and Version 3 of Ticket #28182


Ignore:
Timestamp:
Jan 28, 2011, 3:52:52 AM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28182

    • Property Port gst-ffmpeg added
  • Ticket #28182 – Description

    initial v3  
    11Hello, 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:
    22
     3{{{
    34:info:build CC  libavcodec/h264_cabac.o
    45:info:build libavcodec/cabac.h: In function 'get_cabac_noinline':
    56:info:build libavcodec/cabac.h:527: error: PIC register '%ebx' clobbered in 'asm'
    67...
     8}}}
    79
    810(full error log is attached)
     
    1012I 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:
    1113
     14{{{
    1215default configure.ldflags   {"-L${prefix}/lib -Xlinker -headerpad_max_install_names -mmacosx-version-min=10.5 -no_compact_linkedit"}
     16}}}
    1317
    1418I 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:
    1519
     20{{{
    1621post-configure {
    1722    if { $build_arch == "i386" } {
     
    2025    }
    2126}
     27}}}