Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/bash
  2. export MAKEFLAGS="-j 4"
  3. set -e
  4.  
  5. BRANCH="1.16"
  6.  
  7. [ -n "$1" ] && BRANCH=$1
  8. cd gst-omx
  9. git checkout -t origin/$BRANCH || true
  10. sudo make uninstall || true
  11. git pull
  12. export LDFLAGS='-L/opt/vc/lib'
  13. CFLAGS='-I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/IL'
  14. CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/IL'
  15. ./autogen.sh --with-omx-target=rpi --disable-{fatal-warnings,gtk-doc,debug,debugutils,tests,examples}
  16. # fix for glcontext errors and openexr redundant declarations
  17. make CFLAGS+="-Wno-error -Wno-redundant-decls" LDFLAGS+="-L/opt/vc/lib -lbcm_host"
  18. sudo make install
  19. cd ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement