Advertisement
Guest User

opencv/ffmpeg compilation on raspi

a guest
Feb 12th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. 1. libx264:
  2. ./configure --prefix=/custom/path --enable-shared
  3. make
  4. make install
  5.  
  6. 1.5 environment vars
  7. PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/custom/path/lib/pkg-config
  8. PKG_CONFIG_LIBDIR=:/custom/path/lib
  9. LD_LIBRARY_PATH=/custom/path/lib
  10. ( echo "/custom/path/lib" >> /etc/ld.so.conf" )
  11.  
  12.  
  13. 2. ffmpeg:
  14. ../ffmpeg-1.1.2/configure --enable-shared --disable-programs --disable-network --disable-indevs --disable-decoders --enable-libx264 --enable-gpl --prefix=/custom/path --extra-cflags="-I/custom/path/include" --extra-ldflags="-L/custom/path/lib"
  15. make
  16. make install
  17.  
  18.  
  19. 3. opencv:
  20. cmake ../OpenCV-2.4.3/ \
  21.    -DCMAKE_BUILD_TYPE="Release" \
  22.    -DCMAKE_INSTALL_PREFIX=/custom/path \
  23.    -DINSTALL_MAN_DIR=man \
  24.    -DBUILD_SHARED_LIBS=ON \
  25.    -DENABLE_PRECOMPILED_HEADERS=OFF \
  26.    -DLIB_INSTALL_DIR=/custom/path \
  27.    -DWITH_GSTREAMER=OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement