...
#include <libavformat/avformat.h>
...int example_main(int argc, char* argv[]) {
...
av_register_all();
...EXTRA_INC_PATHS := $(NACL_SDK_ROOT)/toolchain/linux_x86_newlib/i686-nacl/usr/include
...
LDFLAGS = -L$(NACL_SDK_ROOT)/toolchain/linux_x86_newlib/i686-nacl/usr/lib -lavformat
SOURCES=Sample.cpython /home/khahn/nacl_sdk/pepper_37/tools/oshelpers.py mkdir -p newlib/Release//home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/bin/i686-nacl-g++ -o newlib/Release/using_ppapi_simple_unstripped_x86_32.nexe newlib/Release/hello_world_x86_32.o -O2 -Wl,-as-needed -pthread -Wl,-Map,./newlib/Release/using_ppapi_simple_x86_32.map -L/home/khahn/nacl_sdk/pepper_37/lib/newlib_x86_32/Release -lppapi_simple -lnacl_io -lppapi_cpp -lppapi -L/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib -lavformat/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(g723_1.o): In function `g723_1_read_packet':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/g723_1.c:62: undefined reference to `av_new_packet'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/g723_1.c:72: undefined reference to `av_free_packet'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(iss.o): In function `iss_read_header':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/iss.c:92: undefined reference to `av_log'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(mpegenc.o): In function `flush_packet':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:717: undefined reference to `av_fifo_size'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:754: undefined reference to `av_fifo_size'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:850: undefined reference to `av_fifo_size'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:851: undefined reference to `av_fifo_generic_read'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(mpegenc.o): In function `output_packet':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:940: undefined reference to `av_rescale'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:946: undefined reference to `av_fifo_size'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(mpegenc.o): In function `remove_decoded_packets':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:923: undefined reference to `av_freep'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:915: undefined reference to `av_log'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(mpegenc.o): In function `output_packet':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:992: undefined reference to `av_log'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:1006: undefined reference to `av_fifo_size'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:1025: undefined reference to `av_fifo_size'/home/khahn/nacl_sdk/pepper_37/toolchain/linux_x86_newlib/i686-nacl/usr/lib/libavformat.a(mpegenc.o): In function `remove_decoded_packets':/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:923: undefined reference to `av_freep'/home/khahn/naclports/src/out/build/ffmpeg/ffmpeg-2.1.3/libavformat/mpegenc.c:915: undefined reference to `av_log'...
> email to native-client-discuss+unsub...@googlegroups.com.
> email to native-client-discuss+unsub...@googlegroups.com.
Thank you very much Sam, that fixed the issue!
You received this message because you are subscribed to a topic in the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/native-client-discuss/a_OJRtpHy7g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to native-client-di...@googlegroups.com.