Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
build gst-plugin-bad example playout.c
#/bin/bash
rm -rf *.o playout
rm -rf "./deps/*"
mkdir -p ".deps"
system=$( uname -s )
if [[ "$system" == "Darwin" ]]; then
_libtool="glibtool"
extra="-I/usr/local/include/gstreamer-1.0"
else
_libtool="libtool"
extra=""
fi
gcc $(pkg-config --cflags --libs gstreamer-1.0) $extra -DGST_USE_UNSTABLE_API -fno-strict-aliasing -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -g -fvisibility=hidden -g -O2 -MT playout-playout.o -MD -MP -MF .deps/playout-playout.Tpo -c -o playout-playout.o ./playout.c
$_libtool --silent --tag=CC --mode=link gcc $(pkg-config --cflags --libs gstreamer-1.0) $extra -DGST_USE_UNSTABLE_API -fno-strict-aliasing -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -g -fvisibility=hidden -g -O2 -o playout playout-playout.o -lgstvideo-1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment