Opened 2 years ago

Closed 8 months ago

#5575 closed defect (fixed)

can't compile with --disable-hwaccels on osx

Reported by: ponpon Owned by: kernrj
Priority: normal Component: avcodec
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

thank you for excellent program.

i can't compile with --disable-hwaccels on osx.
How to reproduce:

./configure --cc=clang-mp-3.7 --cxx=clang++-mp-3.7 --disable-hwaccels && make -j 8 
...
LD	ffserver_g
LD	ffprobe_g
LD	ffplay_g
LD	ffmpeg_g
Undefined symbols for architecture x86_64:
  "_ff_vda_create_decoder", referenced from:
Undefined symbols for architecture x86_64:
  "_ff_vda_create_decoder", referenced from:
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
  "_ff_vda_destroy_decoder", referenced from:
  "_ff_vda_destroy_decoder", referenced from:
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
      _vdadec_close in libavcodec.a(vda_h264_dec.o)
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
      _vdadec_close in libavcodec.a(vda_h264_dec.o)
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
Undefined symbols for architecture x86_64:
  "_av_vda_default_init2", referenced from:
      _videotoolbox_init in ffmpeg_videotoolbox.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  "_ff_vda_create_decoder", referenced from:
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
Undefined symbols for architecture x86_64:
  "_ff_vda_create_decoder", referenced from:
make: *** [ffplay_g] Error 1
make: *** Waiting for unfinished jobs....
clang: error: linker command failed with exit code 1 (use -v to see invocation)
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
make: *** [ffserver_g] Error 1
  "_ff_vda_destroy_decoder", referenced from:
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
      _vdadec_close in libavcodec.a(vda_h264_dec.o)
  "_ff_vda_destroy_decoder", referenced from:
      _vdadec_init in libavcodec.a(vda_h264_dec.o)
      _vdadec_close in libavcodec.a(vda_h264_dec.o)
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffprobe_g] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffmpeg_g] Error 1

Change History (4)

comment:1 Changed 2 years ago by ponpon

additional tests

./configure --cc=clang-mp-3.7 --cxx=clang++-mp-3.7  --disable-hwaccels   --disable-decoder=h264_vda && make -j 8 
...
LD	ffmpeg_g
Undefined symbols for architecture x86_64:
  "_av_vda_default_init2", referenced from:
      _videotoolbox_init in ffmpeg_videotoolbox.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffmpeg_g] Error 1
./configure --cc=clang-mp-3.7 --cxx=clang++-mp-3.7  --disable-hwaccels   --disable-decoder=h264_vda  --disable-videotoolbox && make -j 8 
....
LD	ffmpeg_g
Undefined symbols for architecture x86_64:
  "_av_vda_default_init2", referenced from:
      _videotoolbox_init in ffmpeg_videotoolbox.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffmpeg_g] Error 1

comment:2 Changed 2 years ago by kernrj

  • Component changed from undetermined to avcodec
  • Owner set to kernrj
  • Reproduced by developer set
  • Status changed from new to open

comment:3 Changed 8 months ago by ponpon

This is fixed in the git master.
I dont know which ticket fixes this.
Please close this ticket.

comment:4 Changed 8 months ago by heleppkes

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.