nareix / joy4

Golang audio/video library and streaming server
MIT License
2.66k stars 501 forks source link

run example error #71

Open programmingman opened 5 years ago

programmingman commented 5 years ago

my ffmpeg version is :

ffmpeg version 3.0.11 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration:
libavutil      55. 17.103 / 55. 17.103
libavcodec     57. 24.102 / 57. 24.102
libavformat    57. 25.100 / 57. 25.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 31.100 /  6. 31.100
libswscale      4.  0.100 /  4.  0.100
libswresample   2.  0.101 /  2.  0.101

It has error when I build example/transcode. Error is :

# github.com/nareix/joy4/cgo/ffmpeg
/usr/bin/ld: //usr/local/lib/libavcodec.a(lpc.o): undefined reference to symbol 'avpriv_solve_lls@@LIBAVUTIL_FFMPEG_54'
//usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

please help me, thx

programmingman commented 5 years ago

solved

programmingman commented 5 years ago

问题已经解决了, ffmpeg编译的时候编译选项写错了,现在是例子编译没问题了,可是运行panic