Skip to content

Instantly share code, notes, and snippets.

@kuasha
Forked from ykazakov/gstreamer-build-nox.sh
Created January 29, 2021 23:44
Show Gist options
  • Select an option

  • Save kuasha/8fe194b9794b39f3b9e1d29e2d12ebe0 to your computer and use it in GitHub Desktop.

Select an option

Save kuasha/8fe194b9794b39f3b9e1d29e2d12ebe0 to your computer and use it in GitHub Desktop.

Revisions

  1. @ykazakov ykazakov revised this gist Sep 10, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,9 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.16.2"
    LIBNICE_VERSION="0.1.16" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    VERSION="1.18.0"
    LIBNICE_VERSION="0.1.17" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.3.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
    USRSCTP_VERSION="0.9.3.0" # usrsctp required for webrtc data channels (sctp)

  2. @ykazakov ykazakov revised this gist Dec 8, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -163,7 +163,8 @@ wget https://github.com/sctplab/$PACKAGE/archive/$USRSCTP_VERSION.tar.gz -O $PAC
    tar xzf $PACKAGE-$USRSCTP_VERSION.tar.gz
    cd $PACKAGE-$USRSCTP_VERSION
    ./bootstrap
    ./configure --prefix /usr/
    ./configure --prefix /usr/ \
    CPPFLAGS='-Wno-address-of-packed-member'
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  3. @ykazakov ykazakov revised this gist Dec 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.16.1"
    VERSION="1.16.2"
    LIBNICE_VERSION="0.1.16" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
  4. @ykazakov ykazakov revised this gist Sep 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.16.0"
    VERSION="1.16.1"
    LIBNICE_VERSION="0.1.16" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
  5. @ykazakov ykazakov revised this gist May 12, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -175,7 +175,7 @@ PACKAGE=gst-plugins-bad
    wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    ./configure --prefix=/usr --disable-gtk-doc --disable-examples
    ./configure --prefix=/usr --disable-gtk-doc
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  6. @ykazakov ykazakov revised this gist May 10, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.16.0"
    LIBNICE_VERSION="0.1.15" # libnice (v>=0.1.14) needed for webrtcbin
    LIBNICE_VERSION="0.1.16" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
    USRSCTP_VERSION="0.9.3.0" # usrsctp required for webrtc data channels (sctp)
  7. @ykazakov ykazakov revised this gist May 5, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,8 @@ exec 2>&1
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y

    # Remove old versions of dependencies; these will be build
    sudo apt-get remove -y libnice-dev libsrtp2-dev libusrsctp-dev
    # use dpkg since apt-get remove fail if the package is not installed
    sudo dpkg --remove libnice-dev libsrtp2-dev libusrsctp-dev
    sudo apt autoremove -y

    # Get the required libraries without X server
  8. @ykazakov ykazakov revised this gist May 5, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,7 @@ sudo apt-get install -y build-essential autotools-dev automake autoconf checkins
    libiptcdata0-dev libkate-dev libmimic-dev libmms-dev \
    libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev \
    librtmp-dev libsndfile1-dev libsoundtouch-dev libspandsp-dev \
    libxvidcore-dev libzvbi-dev liba52-0.7.4-dev \
    libxvidcore-dev libvpx-dev libzvbi-dev liba52-0.7.4-dev \
    libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev \
    libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsidplay1-dev libtwolame-dev libx264-dev libusb-1.0 \
  9. @ykazakov ykazakov revised this gist Apr 23, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -199,6 +199,7 @@ wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    ./configure \
    PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig" \
    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' \
  10. @ykazakov ykazakov revised this gist Apr 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.15.90"
    VERSION="1.16.0"
    LIBNICE_VERSION="0.1.15" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
  11. @ykazakov ykazakov revised this gist Apr 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ exec 2>&1
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y

    # Remove old versions of dependencies; these will be build
    sudo apt-get remove -y libnice-dev libsrtp2-dev
    sudo apt-get remove -y libnice-dev libsrtp2-dev libusrsctp-dev
    sudo apt autoremove -y

    # Get the required libraries without X server
  12. @ykazakov ykazakov revised this gist Apr 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.15.2"
    VERSION="1.15.90"
    LIBNICE_VERSION="0.1.15" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
  13. @ykazakov ykazakov revised this gist Mar 10, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -17,8 +17,8 @@ exec 2>&1
    # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y

    # Remove old versions of dependencies that will be build and conflicting libraries
    sudo apt-get remove -y libnice-dev libsrtp2-dev libgles2 libegl1
    # Remove old versions of dependencies; these will be build
    sudo apt-get remove -y libnice-dev libsrtp2-dev
    sudo apt autoremove -y

    # Get the required libraries without X server
  14. @ykazakov ykazakov revised this gist Mar 10, 2019. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -15,10 +15,11 @@ exec > >(tee build_gstreamer.log)
    exec 2>&1

    # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y --force-yes
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y

    # Remove old versions of dependencies; these will be build
    sudo apt-get remove -y libnice-dev libsrtp2-dev
    # Remove old versions of dependencies that will be build and conflicting libraries
    sudo apt-get remove -y libnice-dev libsrtp2-dev libgles2 libegl1
    sudo apt autoremove -y

    # Get the required libraries without X server
    sudo apt-get install -y build-essential autotools-dev automake autoconf checkinstall \
  15. @ykazakov ykazakov revised this gist Mar 10, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ exec > >(tee build_gstreamer.log)
    exec 2>&1

    # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
    grep -q BCM270 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y --force-yes
    grep -q BCM2 /proc/cpuinfo && sudo apt-get update && sudo apt-get upgrade -y --force-yes

    # Remove old versions of dependencies; these will be build
    sudo apt-get remove -y libnice-dev libsrtp2-dev
  16. @ykazakov ykazakov revised this gist Mar 10, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -200,7 +200,7 @@ cd $PACKAGE-$VERSION
    ./configure \
    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'
    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' \
    --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples --disable-fatal-warnings
    make
    echo $PACKAGE > description-pak
  17. @ykazakov ykazakov revised this gist Mar 10, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -133,7 +133,7 @@ cd ..

    # libsrtp
    PACKAGE=libsrtp
    wget https://github.com/cisco/$PACKAGE/archive/v$LIBSRTP_VERSION.tar.gz -o $PACKAGE-$LIBSRTP_VERSION.tar.gz
    wget https://github.com/cisco/$PACKAGE/archive/v$LIBSRTP_VERSION.tar.gz -O $PACKAGE-$LIBSRTP_VERSION.tar.gz
    tar xzf $PACKAGE-$LIBSRTP_VERSION.tar.gz
    cd $PACKAGE-$LIBSRTP_VERSION
    ./configure --prefix=/usr
    @@ -157,7 +157,7 @@ cd ..

    # usrsctp
    PACKAGE=usrsctp
    wget https://github.com/sctplab/$PACKAGE/archive/$USRSCTP_VERSION.tar.gz -o $PACKAGE-$USRSCTP_VERSION.tar.gz
    wget https://github.com/sctplab/$PACKAGE/archive/$USRSCTP_VERSION.tar.gz -O $PACKAGE-$USRSCTP_VERSION.tar.gz
    tar xzf $PACKAGE-$USRSCTP_VERSION.tar.gz
    cd $PACKAGE-$USRSCTP_VERSION
    ./bootstrap
  18. @ykazakov ykazakov revised this gist Mar 9, 2019. 1 changed file with 9 additions and 7 deletions.
    16 changes: 9 additions & 7 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -67,11 +67,12 @@ ln -fs /opt/vc/lib/libbrcmEGL.so $LIBDIR/libEGL.so
    ln -fs /opt/vc/lib/libbrcmGLESv2.so $LIBDIR/libGLESv2.so
    ln -fs /opt/vc/lib/pkgconfig/brcmegl.pc $LIBDIR/pkconfig/egl.pc
    ln -fs /opt/vc/lib/pkgconfig/brcmglesv2.pc $LIBDIR/pkconfig/glesv2.pc
    export PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$LIBDIR/pkconfig" \
    ./configure \
    PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$LIBDIR/pkconfig" \
    LDFLAGS="-L/opt/vc/lib -L$LIBDIR -lbrcmEGL -lbrcmGLESv2" \
    CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/'
    ./configure --prefix=/usr \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    --prefix=/usr \
    --disable-gtk-doc --disable-examples \
    --with-gles2-module-name=libbrcmGLESv2 \
    --with-egl-module-name=libbrcmEGL \
    @@ -196,10 +197,11 @@ PACKAGE=gst-omx
    wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    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'
    ./configure --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples --disable-fatal-warnings
    ./configure \
    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'
    --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples --disable-fatal-warnings
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  19. @ykazakov ykazakov revised this gist Mar 9, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -160,7 +160,7 @@ wget https://github.com/sctplab/$PACKAGE/archive/$USRSCTP_VERSION.tar.gz -o $PAC
    tar xzf $PACKAGE-$USRSCTP_VERSION.tar.gz
    cd $PACKAGE-$USRSCTP_VERSION
    ./bootstrap
    ./configure --prefix /usr/ --libdir /usr/lib/arm-linux-gnueabihf/
    ./configure --prefix /usr/
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  20. @ykazakov ykazakov revised this gist Mar 9, 2019. 1 changed file with 16 additions and 2 deletions.
    18 changes: 16 additions & 2 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ VERSION="1.15.2"
    LIBNICE_VERSION="0.1.15" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
    USRSCTP_VERSION="0.9.3.0" # usrsctp required for webrtc data channels (sctp)

    [ -n "$1" ] && VERSION=$1

    @@ -131,8 +132,8 @@ cd ..

    # libsrtp
    PACKAGE=libsrtp
    wget https://github.com/cisco/$PACKAGE/archive/v$LIBSRTP_VERSION.tar.gz
    tar xzf v$LIBSRTP_VERSION.tar.gz
    wget https://github.com/cisco/$PACKAGE/archive/v$LIBSRTP_VERSION.tar.gz -o $PACKAGE-$LIBSRTP_VERSION.tar.gz
    tar xzf $PACKAGE-$LIBSRTP_VERSION.tar.gz
    cd $PACKAGE-$LIBSRTP_VERSION
    ./configure --prefix=/usr
    make
    @@ -153,6 +154,19 @@ sudo checkinstall -y --fstrans=no
    sudo ldconfig
    cd ..

    # usrsctp
    PACKAGE=usrsctp
    wget https://github.com/sctplab/$PACKAGE/archive/$USRSCTP_VERSION.tar.gz -o $PACKAGE-$USRSCTP_VERSION.tar.gz
    tar xzf $PACKAGE-$USRSCTP_VERSION.tar.gz
    cd $PACKAGE-$USRSCTP_VERSION
    ./bootstrap
    ./configure --prefix /usr/ --libdir /usr/lib/arm-linux-gnueabihf/
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
    sudo ldconfig
    cd ..

    # gst-plugins-bad
    PACKAGE=gst-plugins-bad
    wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
  21. @ykazakov ykazakov revised this gist Mar 9, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -73,7 +73,8 @@ export PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$LIBDIR/pkconfig" \
    ./configure --prefix=/usr \
    --disable-gtk-doc --disable-examples \
    --with-gles2-module-name=libbrcmGLESv2 \
    --with-egl-module-name=libbrcmEGL
    --with-egl-module-name=libbrcmEGL \
    --disable-fatal-warnings
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  22. @ykazakov ykazakov revised this gist Mar 9, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -67,7 +67,9 @@ ln -fs /opt/vc/lib/libbrcmGLESv2.so $LIBDIR/libGLESv2.so
    ln -fs /opt/vc/lib/pkgconfig/brcmegl.pc $LIBDIR/pkconfig/egl.pc
    ln -fs /opt/vc/lib/pkgconfig/brcmglesv2.pc $LIBDIR/pkconfig/glesv2.pc
    export PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$LIBDIR/pkconfig" \
    LDFLAGS="-L/opt/vc/lib -L$LIBDIR -lbrcmEGL -lbrcmGLESv2"
    LDFLAGS="-L/opt/vc/lib -L$LIBDIR -lbrcmEGL -lbrcmGLESv2" \
    CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/'
    ./configure --prefix=/usr \
    --disable-gtk-doc --disable-examples \
    --with-gles2-module-name=libbrcmGLESv2 \
  23. @ykazakov ykazakov revised this gist Mar 5, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.14.4"
    LIBNICE_VERSION="0.1.14" # libnice (v>=0.1.14) needed for webrtcbin
    VERSION="1.15.2"
    LIBNICE_VERSION="0.1.15" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp

    @@ -119,7 +119,7 @@ PACKAGE=libnice
    wget https://nice.freedesktop.org/releases/$PACKAGE-$LIBNICE_VERSION.tar.gz
    tar xvf $PACKAGE-$LIBNICE_VERSION.tar.gz
    cd $PACKAGE-$LIBNICE_VERSION
    ./configure --prefix=/usr
    ./configure --prefix=/usr --enable-compile-warnings=minimum
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
    @@ -182,7 +182,7 @@ cd $PACKAGE-$VERSION
    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'
    ./configure --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples
    ./configure --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples --disable-fatal-warnings
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  24. @ykazakov ykazakov revised this gist Jan 15, 2019. 1 changed file with 13 additions and 11 deletions.
    24 changes: 13 additions & 11 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -59,18 +59,20 @@ PACKAGE=gst-plugins-base
    wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    # compiled with GLES without X
    export PKG_CONFIG_PATH='/opt/vc/lib/pkgconfig' \
    LDFLAGS='-L/opt/vc/lib -lbrcmEGL -lbrcmGLESv2' \
    CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/'
    # include the renamed egl and glesv2 libraries
    LIBDIR=$(pwd)/lib
    mkdir -p $LIBDIR/pkconfig
    ln -fs /opt/vc/lib/libbrcmEGL.so $LIBDIR/libEGL.so
    ln -fs /opt/vc/lib/libbrcmGLESv2.so $LIBDIR/libGLESv2.so
    ln -fs /opt/vc/lib/pkgconfig/brcmegl.pc $LIBDIR/pkconfig/egl.pc
    ln -fs /opt/vc/lib/pkgconfig/brcmglesv2.pc $LIBDIR/pkconfig/glesv2.pc
    export PKG_CONFIG_PATH="/opt/vc/lib/pkgconfig:$LIBDIR/pkconfig" \
    LDFLAGS="-L/opt/vc/lib -L$LIBDIR -lbrcmEGL -lbrcmGLESv2"
    ./configure --prefix=/usr \
    --disable-gtk-doc --disable-examples \
    --disable-opengl --enable-gles2 --enable-egl --disable-glx \
    --disable-x11 --enable-wayland --enable-dispmanx \
    --with-gles2-module-name=libbrcmGLESv2 \
    --with-egl-module-name=libbrcmEGL
    make
    --disable-gtk-doc --disable-examples \
    --with-gles2-module-name=libbrcmGLESv2 \
    --with-egl-module-name=libbrcmEGL
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
    sudo ldconfig
  25. @ykazakov ykazakov revised this gist Jan 14, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -60,7 +60,8 @@ wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    # compiled with GLES without X
    export LDFLAGS='-L/opt/vc/lib -lbrcmEGL -lbrcmGLESv2' \
    export PKG_CONFIG_PATH='/opt/vc/lib/pkgconfig' \
    LDFLAGS='-L/opt/vc/lib -lbrcmEGL -lbrcmGLESv2' \
    CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/'
    ./configure --prefix=/usr \
  26. @ykazakov ykazakov revised this gist Jan 14, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ sudo apt-get install -y build-essential autotools-dev automake autoconf checkins
    libshout3-dev libjpeg-dev libflac-dev libdv4-dev \
    libtag1-dev libwavpack-dev libsoup2.4-dev libbz2-dev \
    libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev \
    libcurl4-gnutls-dev libdca-dev libdirac-dev libdvdnav-dev \
    libcurl4-gnutls-dev libdca-dev libdvdnav-dev \
    libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev \
    libiptcdata0-dev libkate-dev libmimic-dev libmms-dev \
    libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev \
  27. @ykazakov ykazakov revised this gist Jan 14, 2019. 1 changed file with 5 additions and 7 deletions.
    12 changes: 5 additions & 7 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -34,15 +34,13 @@ sudo apt-get install -y build-essential autotools-dev automake autoconf checkins
    libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev \
    libiptcdata0-dev libkate-dev libmimic-dev libmms-dev \
    libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev \
    librtmp-dev libschroedinger-dev libslv2-dev \
    libsndfile1-dev libsoundtouch-dev libspandsp-dev \
    librtmp-dev libsndfile1-dev libsoundtouch-dev libspandsp-dev \
    libxvidcore-dev libzvbi-dev liba52-0.7.4-dev \
    libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev \
    libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsidplay1-dev libtwolame-dev libx264-dev libusb-1.0 \
    python-gi-dev yasm python3-dev libgirepository1.0-dev \
    freeglut3 libgles2-mesa-dev libgl1-mesa-dri \
    weston wayland-protocols pulseaudio libpulse-dev libssl-dev
    freeglut3 weston wayland-protocols pulseaudio libpulse-dev libssl-dev

    # gstreamer
    PACKAGE=gstreamer
    @@ -62,15 +60,15 @@ wget https://gstreamer.freedesktop.org/src/$PACKAGE/$PACKAGE-$VERSION.tar.xz
    tar xvf $PACKAGE-$VERSION.tar.xz
    cd $PACKAGE-$VERSION
    # compiled with GLES without X
    export LDFLAGS='-L/opt/vc/lib' \
    export LDFLAGS='-L/opt/vc/lib -lbrcmEGL -lbrcmGLESv2' \
    CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/' \
    CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/'
    ./configure --prefix=/usr \
    --disable-gtk-doc --disable-examples \
    --disable-opengl --enable-gles2 --enable-egl --disable-glx \
    --disable-x11 --enable-wayland --enable-dispmanx \
    --with-gles2-module-name=/opt/vc/lib/libGLESv2.so \
    --with-egl-module-name=/opt/vc/lib/libEGL.so
    --with-gles2-module-name=libbrcmGLESv2 \
    --with-egl-module-name=libbrcmEGL
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
  28. @ykazakov ykazakov revised this gist Nov 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    export MAKEFLAGS="-j 3"
    set -e

    VERSION="1.14.3"
    VERSION="1.14.4"
    LIBNICE_VERSION="0.1.14" # libnice (v>=0.1.14) needed for webrtcbin
    LIBSRTP_VERSION="2.2.0" # libsrtp (v>=2.2.0) required for srtp plugin
    WEBRTCAUDIO_VERSION="0.3.1" # webrtc-audio-processing required for webrtcdsp
  29. @ykazakov ykazakov revised this gist Sep 21, 2018. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -182,8 +182,7 @@ 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'
    ./configure --prefix=/usr --disable-gtk-doc --with-omx-target=rpi --disable-examples
    # fix for glcontext errors and openexr redundant declarations
    make CFLAGS+="-Wno-error -Wno-redundant-decls" LDFLAGS+="-L/opt/vc/lib -lbcm_host"
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no
    sudo ldconfig
  30. @ykazakov ykazakov revised this gist Sep 20, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gstreamer-build-nox.sh
    Original file line number Diff line number Diff line change
    @@ -69,8 +69,8 @@ CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/
    --disable-gtk-doc --disable-examples \
    --disable-opengl --enable-gles2 --enable-egl --disable-glx \
    --disable-x11 --enable-wayland --enable-dispmanx \
    --with-gles2-module-name=/opt/vc/lib/libbrcmGLESv2.so \
    --with-egl-module-name=/opt/vc/lib/libbrcmEGL.so
    --with-gles2-module-name=/opt/vc/lib/libGLESv2.so \
    --with-egl-module-name=/opt/vc/lib/libEGL.so
    make
    echo $PACKAGE > description-pak
    sudo checkinstall -y --fstrans=no