Skip to content

d3cod3/Mosaic-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mosaic-Installer

Mosaic installer script

screenshot

screenshot

DESCRIPTION

Bash scripts for automated Mosaic download/compile/install on Linux and windows machines.

LINUX

On Linux boxes the install process is fully automated, and right now is available for those distros:

  1. Ubuntu ( tested on different ones starting from 16.04 to 20.04 )
  2. Linux Mint
  3. Debian ( tested from debian 9 stretch to debian 10 buster)
  4. Arch Linux
  5. Fedora ( starting from Fedora 29 )

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!

Manual Install

In case something goes wrong, or your distro has not been tested yet, here are the basic steps of the installer explained:

  1. Install of0.11.0 from the official openFrameworks page and follow the install instructions here: https://openframeworks.cc/setup/linux-install/
  2. Clone Mosaic with submodules:
cd OF/apps/ && mkdir mosaicApps && cd mosaicApps
git clone https://github.com/d3cod3/Mosaic.git
git submodule init && git submodule update
  1. Update ofxAddonTool:
cd Mosaic/scripts/ofxAddonTool && git checkout master && git pull
  1. Run ofxAddonTool:
./ofxAddonTool.sh --install
  1. Install hooks from Mosaic Installer:
# 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
  1. Time to compile, 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 )

WINDOWS

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:

  1. Download/Install (follow instructions, it's really straightforward) msys2 from here: https://www.msys2.org/
  2. Open msys2, we are going to use mingw 32 bit, so when asked ( you'll have 3 choices ) open the mingw 32 bit shell.

screenshot

  1. clone this repo: git clone https://github.com/d3cod3/Mosaic-Installer
  2. Launch the windows install script: cd Mosaic-Installer && ./mosaic_windows_installer.sh

screenshot

  1. Wait some...
  2. When the script finish, you'll have everything ready for compile Mosaic, but due to some mingw compiler limitations, you'll need to compile it with QT Creator.
  3. Download/Install QT Creator 4.6.1 from here: http://download.qt.io/official_releases/qtcreator/
  4. Follow the setting instruction from OF webpage here: https://openframeworks.cc/setup/qtcreator/
  5. Open the Mosaic.qbs project file from QT Creator, located here: C:\msys64\opt\openFrameworks\apps\d3cod3\Mosaic\Mosaic.qbs
  6. Compile the Release.

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.

About

bash Mosaic installer script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages