Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- export MAKEFLAGS="-j 4"
- set -e
- BRANCH="1.16"
- [ -n "$1" ] && BRANCH=$1
- cd gst-omx
- git checkout -t origin/$BRANCH || true
- sudo make uninstall || true
- git pull
- export LDFLAGS='-L/opt/vc/lib'
- 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'
- 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'
- ./autogen.sh --with-omx-target=rpi --disable-{fatal-warnings,gtk-doc,debug,debugutils,tests,examples}
- # fix for glcontext errors and openexr redundant declarations
- make CFLAGS+="-Wno-error -Wno-redundant-decls" LDFLAGS+="-L/opt/vc/lib -lbcm_host"
- sudo make install
- cd ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement