[FFmpeg-user] Does libcdio indev AVOptions works with macOS?

桃源老師 xanadu6291 at dream.jp
Sat Sep 16 15:07:44 EEST 2017


Hello ffmpeg experts!!

> 2017/09/16 午後7:27、桃源老師 <xanadu6291 at dream.jp>のメール:
> 
> But this time I got linker error like the following when configuring ffmpeg with --enable-libcdio option.
> 
> check_lib libcdio cdio/paranoia/cdda.h cdio/paranoia/paranoia.h cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio
> check_func_headers cdio/paranoia/cdda.h cdio/paranoia/paranoia.h cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio
> check_ld cc -lcdio_paranoia -lcdio_cdda -lcdio
> check_cc
> BEGIN /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test.c
>    1	#include <cdio/paranoia/cdda.h>
>    2	#include <cdio/paranoia/paranoia.h>
>    3	#include <stdint.h>
>    4	long check_cdio_cddap_open(void) { return (long) cdio_cddap_open; }
>    5	int main(void) { int ret = 0;
>    6	 ret |= ((intptr_t)check_cdio_cddap_open) & 0xFFFF;
>    7	return ret; }
> END /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test.c
> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -I/Volumes/ffmpeg_compile/include -std=c11 -fomit-frame-pointer -fPIC -pthread -D_THREAD_SAFE -I/Volumes/ffmpeg_compile/include/SDL2 -c -o /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test.o /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test.c
> gcc -Wl,-dynamic,-search_paths_first -o /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test /var/folders/wv/3_2g0k7n6p3ff9tbz6hqh67w0000gn/T//ffconf.R3a4cgop/test.o -lcdio_paranoia -lcdio_cdda -lcdio -Wl,-framework,CoreFoundation -Wl,-framework,Security -L/Volumes/ffmpeg_compile/lib -lSDL2 -lm -liconv -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,ForceFeedback -lobjc -Wl,-framework,CoreVideo -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,IOKit -lm -lbz2 -lz -pthread -pthread -framework CoreServices -framework CoreGraphics -framework VideoToolbox -framework CoreImage -framework AVFoundation -framework AudioToolbox -framework AppKit
> clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
> clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
> Undefined symbols for architecture x86_64:
>  "_DADiskCopyDescription", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_DADiskCreateFromBSDName", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_DADiskEject", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>      _media_unmount_callback in libcdio.a(osx.o)
>  "_DADiskUnmount", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_DADissenterGetStatusString", referenced from:
>      _media_eject_callback in libcdio.a(osx.o)
>  "_DASessionCreate", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_DASessionScheduleWithRunLoop", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_DASessionUnscheduleFromRunLoop", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
>  "_kDADiskDescriptionVolumePathKey", referenced from:
>      __eject_media_osx in libcdio.a(osx.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ERROR: No usable libcdio/cdparanoia found

libcdio develop team told me that the above linker error is because "-Wl,-framework,DiskArbitration"  is missing in the ffmpeg link command. 

He said that when you see the configure message "checking for DiskArbitration framework... yes" those linker options are added.

Could you please fix this for the people who want to use libcdio function on ffmpeg for macOS?


Best Regards,


// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3860 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170916/8de1c51f/attachment.bin>


More information about the ffmpeg-user mailing list