Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
export MAKEFLAGS="-j 3"
set -e
VERSION="1.16.0"
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
[ -n "$1" ] && VERSION=$1
@avilleret
avilleret / gist:6a97c7d07b19270182a8c04d140723f0
Created September 12, 2019 09:16
install gcc-8 on ubuntu 16.04 based docker
echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" > /etc/apt/sources.list.d/gcc.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 60C317803A41BA51845E371A1E9377A2BA9EF27F
apt update
apt install gcc-8
@avilleret
avilleret / README
Created August 29, 2019 19:49
ZED SDK on Arch Linux
ZED SDK on Archlinux on Optimus Laptop
CUDA 10.0 is needed -> AUR
optimus-manager to enable NVidia card to get CUDA running
glew2.0 -> AUR
@avilleret
avilleret / README.md
Last active June 11, 2022 16:43
How to create a sysroot for cross compiling openframeworks for Raspberry Pi from Linux

On a Raspberry Pi with Raspbian system, first cleanup apt cache with :

sudo  aptitude clean

Then download package without installing them :

sudo aptitude --download-only reinstall \
xorg-dev                  \
libgtk-3-dev \
@avilleret
avilleret / build_gstreamer_from_source.sh
Created November 27, 2018 16:09
build GStreamer from source
#!/bin/bash
# build gstreamer from source on Ubuntu 18.04
sudo apt-get install bison flex gtk-doc-tools
mkdir gstreamer
cd gstreamer
git clone --depth https://github.com/GStreamer/gstreamer.git
git clone --depth=1 https://github.com/GStreamer/gst-plugins-base.git
git clone --depth=1 https://github.com/GStreamer/gst-plugins-good.git
@avilleret
avilleret / build-tensorflow-from-source.sh
Created September 19, 2018 07:15
Building tensorflow 1.7.1 from source on Ubuntu 18.04 to get rid of 'invalid instruction' error
#How to build tensorflow 1.7.1 from source on Ubuntu 18.04
#=========================================================
# Bazel
## install bazel depencies
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python
## download Bazel 0.9 (see compatibility chart on https://www.tensorflow.org/install/install_sources)
@avilleret
avilleret / config
Last active January 1, 2024 11:36
i3 configuration for Ubuntu 16.04 & 18.04
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@avilleret
avilleret / crash.log
Created June 12, 2018 13:51
score crashes with VST plugin
Process: score [58678]
Path: /private/var/folders/*/score.app/Contents/MacOS/score
Identifier: org.score
Version: 2.0.0-a3 (2.0.0-a3)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: score [58678]
User ID: 501
Date/Time: 2018-06-12 15:50:40.942 +0200
@avilleret
avilleret / install_cmake.sh
Created June 3, 2018 10:12
Installing Cmake under Linux x86_64
# Download binary from official website
wget https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.sh
# install it under /usr/local
sudo /bin/sh ./cmake-3.11.3-Linux-x86_64.sh --skip-licence --prefix=/usr/local --exclude-subdir
# Check it
cmake --version
@avilleret
avilleret / libossia-build.log
Created May 30, 2018 07:22
libossia build fail on windows
PS C:\Users\Antoine Villeret\dev\OSSIA\build-libossia> cmake --build . --config Release
Microsoft (R) Build Engine version 15.6.85.37198 pour .NET Framework
Copyright (C) Microsoft Corporation. Tous droits réservés.
La génération a démarré 30/05/2018 09:15:19.
Projet "C:\Users\Antoine Villeret\dev\OSSIA\build-libossia\ALL_BUILD.vcxproj" sur le noud 1 (cibles par défaut).
Le projet "C:\Users\Antoine Villeret\dev\OSSIA\build-libossia\ALL_BUILD.vcxproj" (1) génère "C:\Users\Antoine Villeret\
dev\OSSIA\build-libossia\ZERO_CHECK.vcxproj" (2) sur le noud 1 (cibles par défaut).
PrepareForBuild:
Création du répertoire "x64\Release\ZERO_CHECK\".