Opened 18 years ago

Closed 18 years ago

#10837 closed defect (fixed)

ffmpeg won't compile with variant +x264

Reported by: jarkko.laiho@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 1.3.2
Keywords: ffmpeg x264 compile error Cc: elamaton@…, markd@…
Port:

Description

I tried installing ffmpeg with the variants +lame +faac +faad +xvid +x264 +a52, and got as far as "Building ffmpeg with target all", but that process ended with the following error:

cc -DHAVE_AV_CONFIG_H -I.. -I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_multimedia_ffmpeg/work/trunk/libavutil -I/opt/local/include -DHAVE_LRINTF -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3 -mdynamic-no-pic -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE    -c -o x264.o x264.c
x264.c: In function 'X264_init':
x264.c:146: error: 'struct <anonymous>' has no member named 'i_rc_method'
x264.c:146: error: 'X264_RC_CRF' undeclared (first use in this function)
x264.c:146: error: (Each undeclared identifier is reported only once
x264.c:146: error: for each function it appears in.)
x264.c:149: error: 'struct <anonymous>' has no member named 'i_rc_method'
x264.c:149: error: 'X264_RC_CQP' undeclared (first use in this function)
x264.c:156: error: 'struct <anonymous>' has no member named 'i_rc_method'
x264.c:156: error: 'X264_RC_ABR' undeclared (first use in this function)
make[1]: *** [x264.o] Error 1
make: *** [lib] Error 2

Error: Status 1 encountered during processing.

I've installed all the variant components, x264 included, through MacPorts.

Googling for the error message returned some similar incidents that happened due to the x264 version being too old, but I don't know if that has anything to do with this.

Change History (5)

comment:1 Changed 18 years ago by jarkko.laiho@…

Turns out that the version of x264 in MacPorts IS too old. To experiment, I uninstalled and cleaned x264 with --all, and then did the first installation steps separately (fetch, checksum, extract, patch). Then I manually replaced the source directory to contain the latest snapshot from ftp.videolan.org (x264-snapshot-20061004-2245.tar.bz2) instead of 20060625, and let the installation continue. It completed successfully.

After this, ffmpeg compiled OK with all of the aforementioned variants (I did, however, have to modify the faad2 source with a similar technique earlier, but that's for another ticket), and it seems to be working fine.

Not marking this fixed yet, as the ffmpeg compilation really should work without these sort of circus tricks :-).

comment:2 Changed 18 years ago by jarkko.laiho@…

(Not that I even COULD mark it fixed, it seems...)

comment:3 Changed 18 years ago by markd@…

Cc: markd@… added

Update to x264 to 20061005. Please try again with ffmpeg and report your findings.

comment:4 Changed 18 years ago by jarkko.laiho@…

I'm happy to confirm that it works now.

comment:5 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed

Great. Thank you. Closing.

Note: See TracTickets for help on using tickets.