参考 http://blog.youkuaiyun.com/commshare/article/details/8813061
我的ffmpeg没有安装到一个标准路径下,而是我自己的路径。
运行的时候,只需要制定LD_LIBRARY_PATH到ffmpeg的我安装的lib目录下就行。
但是编译的时候,如果要依赖于ffmpeg的库,必须用LIBRARY_PATH 才行。
root@Ubuntu32:/home/zhangbin/streaming# cd http/
root@Ubuntu32:/home/zhangbin/streaming/http# lssegmenter
root@Ubuntu32:/home/zhangbin/streaming/http# cd segmenter/
root@Ubuntu32:/home/zhangbin/streaming/http/segmenter# ls
Makefile.txt segmenter.c setFFmpegEnv.sh setFFmpegEnv.sh~
root@Ubuntu32:/home/zhangbin/streaming/http/segmenter# source setFFmpegEnv.sh
root@Ubuntu32:/home/zhangbin/streaming/http/segmenter# gcc -W