Mosaic installer script
Bash scripts for automated Mosaic download/compile/install on Linux and windows machines.
On Linux boxes the install process is fully automated, and right now is available for those distros:
Just clone this repo
git clone https://github.com/d3cod3/Mosaic-Installer
Then launch the install script as sudo
cd Mosaic-Installer
sudo ./mosaic_installer.sh
And choose your distro from the list.
Wait some...
When the script finish, you'll have Mosaic software appearing in your programs menus!
if your distro is not on the list, and you want to contribute to this repo, you are very welcome!
In case something goes wrong, or your distro has not been tested yet, here are the basic steps of the installer explained:
cd OF/apps/ && mkdir mosaicApps && cd mosaicApps
git clone https://github.com/d3cod3/Mosaic.git
git submodule init && git submodule update
cd Mosaic/scripts/ofxAddonTool && git checkout master && git pull
./ofxAddonTool.sh --install
# for debian based distros
apt install git curl ffmpeg wget libpython3.8-dev libsnappy-dev libswresample-dev libavcodec-dev libavformat-dev libdispatch-dev
# for Arch Linux
pacman -Syu
pacman -Syu base-devel python git curl ffmpeg wget rsync snappy nano
# for Fedora
dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
dnf update
dnf install nano make git curl ffmpeg wget python3-libs python3-devel
Python
# Fedora
ln -s /usr/lib64/pkgconfig/python-3.8.pc /usr/lib64/pkgconfig/python3.pc
# Other distros
ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.8.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc
NDI
sudo cp OF/addons/ofxNDI/libs/libndi/lib/x86_64-linux-gnu/libndi.so.3.7.1 /usr/local/lib && ln -s /usr/local/lib/libndi.so.3.7.1 /usr/lib/libndi.so.3
Fftw
git clone --branch=master https://github.com/d3cod3/fftw3.3.2-source
cd fftw3.3.2-source
./configure --prefix=pwd --enable-float --enable-sse2 --with-incoming-stack-boundary=2 --with-our-malloc16 --disable-shared --enable-static
make MAKEINFO=true -j3
mkdir OF/addons/ofxAudioAnalyzer/libs/fftw3f/lib/linux64
cd .libs && cp libfftw3f.a OF/addons/ofxAudioAnalyzer/libs/fftw3f/lib/linux64/
cd ../../ && rm -rf fftw3.3.2-source
cd Mosaic/
and then make -j3 Release
thet could fail because the generated linker command can be too huge. If that's the case, compile Mosaic using qt-creator included Mosaic.qbs project. ( to install qt-creator follow this instructions here: https://openframeworks.cc/setup/qtcreator/ and be sure to download Qt Creator 4.6.1 )As usual, on windows we have some more issues, so the install script is semi-automated, it solve some stuff, but users will need to do some more things manually.
It has been tested on windows 10, but should work too on windows 7.
So, this is the resume in order:
git clone https://github.com/d3cod3/Mosaic-Installer
cd Mosaic-Installer && ./mosaic_windows_installer.sh
C:\msys64\opt\openFrameworks\apps\d3cod3\Mosaic\Mosaic.qbs
That's it, when finished compiling, you'll find the Mosaic.exe app here: C:\msys64\opt\openFrameworks\apps\d3cod3\Mosaic\bin/Mosaic.exe
Just open it and pin it to the taskbar.