环境配置简要记录

../alsadevice.h:3:28: fatal error: alsa/asoundlib.h: No such file or directory
 #include <alsa/asoundlib.h>
sudo apt-get install libasound2-dev


../xvrenderer.h:11:22: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
sudo apt-get install libx11-dev


../xvrenderer.h:12:34: fatal error: X11/extensions/Xvlib.h: No such file or directory
 #include <X11/extensions/Xvlib.h>
sudo apt-get install libxv-dev


libasound.so ---->安装alsa库

g++: error: /usr/lib/x86_64-linux-gnu/libvpx.so: No such file or directory

sudo apt-get install libvpx-dev
sudo cp /usr/lib/libvpx.* /usr/lib/x86_64-linux-gnu

sudo updatedb

注意 先安装 libva-dev 再安装 media-sdk;

  SOLINK_MODULE(target) Release/obj.target/imp.node
g++: error: /usr/lib/x86_64-linux-gnu/libva.so: No such file or directory
sudo apt-get install libva-dev

node-gyp编译出错
 SOLINK_MODULE(target) Release/obj.target/imp.node
/usr/bin/ld: /usr/local/lib/libjpeg.a(jcapimin.o): relocation R_X86_64_32S against `jpeg_natural_order' can not be used when making a shared object; recompile with -fPIC

重新安装libjpeg  CFLAGS="-O3 -fPIC"64位系统需要这个标识

CFLAGS="-O3 -fPIC" ./configure && make && sudo make install

  SOLINK_MODULE(target) Release/obj.target/imp.node
/usr/bin/ld: /usr/local/lib/libfdk-aac.a(aacenc_lib.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
fdk-aac-0.1.3 64位
执行./configure
修改Makefile
添加-fPIC
CFLAGS = -g -O2 -fPIC
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -fPIC

构造libfaac出错

mpeg4ip.h 162行

需要注释//char *strcasestr(const char *haystack, const char *needle);

posted @ 2014-03-05 14:41  Essay  阅读(868)  评论(0)    收藏  举报