[FFmpeg-user] makefile ffmpeg nacl

Moldovean Radu-Cristian r.moldovean at yahoo.com
Fri Apr 15 18:26:56 CEST 2016


Hello,
I'm trying to use ffmepg library in a nacl project.So far I was able to build the library using NACL_ARCH=pnacl make ffmpeg and with the default configure flags:
LogExecute ${SRC_DIR}/configure \    --cross-prefix=${NACL_CROSS_PREFIX}- \    --target-os=linux \    --enable-gpl \    --enable-static \    --enable-cross-compile \
    --disable-inline-asm \    --disable-ssse3 \    --disable-mmx \    --disable-amd3dnow \    --disable-amd3dnowext \    --disable-indevs \    --enable-libmp3lame \    --enable-libvorbis \    --enable-libtheora \    --enable-libvpx \    --disable-ffplay \    --disable-ffserver \    --disable-demuxer=rtsp \    --disable-demuxer=image2 \    --prefix=${PREFIX} \    ${extra_args}}
And in my project i use the following headers:
  #include "libavcodec/avcodec.h"  #include "libavformat/avformat.h"  #include "libswscale/swscale.h"
and in my makefile I use:
LIBS = nacl_io ppapi_cpp ppapi pthread \avformat vpx vorbisenc vorbis ogg theoraenc \theoradec mp3lame m avcodec swresample avutil \avdevice avfilter swscale
But when I run my makefile I get the following errors:
/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_version'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_vp9_cx'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_get_cx_data'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_encode'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_control_'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_img_wrap'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_enc_init_ver'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_err_to_string'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_enc_config_default'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_vp8_cx'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_vp9_dx_algo'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_vp8_dx_algo'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_destroy'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_get_frame'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_error_detail'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_decode'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_error'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_dec_init_ver'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_build_config'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vpx_codec_version_str'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_dsp_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_block_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_bitrate_flushpacket'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_bitrate_addblock'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis_blockout'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis_wrote'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis_buffer'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_encode_setup_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_encode_ctl'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_encode_setup_managed'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_encode_setup_vbr'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis_headerout'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_comment_add_tag'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_analysis_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis_read'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis_pcmout'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis_blockin'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_comment_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_info_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_block_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_synthesis_headerin'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_comment_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'vorbis_info_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_free'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_ycbcr_in'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_packetout'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_comment_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_flushheader'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_comment_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_ctl'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_info_clear'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_encode_alloc'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'th_info_init'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_close'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_encode_flush'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_encode_buffer_float'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_encode_buffer_int'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_encode_buffer'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_get_framesize'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_get_encoder_delay'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_init_params'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_disable_reservoir'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_bWriteVbrTag'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_brate'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_VBR_mean_bitrate_kbps'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_VBR_quality'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_VBR'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_quality'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_out_samplerate'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_in_samplerate'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_mode'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_set_num_channels'/Volumes/Data/Work/NativeClient/nacl_sdk/pepper_49/toolchain/mac_pnacl/le32-nacl/usr/lib/libavcodec.a: error: undefined reference to 'lame_init'
I've tried everything but with no success.Can you please help me?
Thank you.


More information about the ffmpeg-user mailing list