Skip to content

Building ossia with Phidgets support from scratch

Jean-Michaël Celerier edited this page Apr 13, 2020 · 1 revision
choco install visualstudio2019buildtools visualstudio2019-workload-vctools ninja cmake git
  • Reboot your computer
  • Clone libossia
git clone --recursive -j16 https://github.com/OSSIA/libossia

If there are submodule errors (as that can happen with some mirrors sometimes) go into the libossia folder and run :

git submodule foreach "git reset"
git submodule foreach "git checkout ."
git status

And check that the git status does not have too many red lines.

Then, assuming that the phidgets library was extracted for instance into c:\dev, launch a build :

mkdir build
cd build

cmake .. ^
  -DCMAKE_BUILD_TYPE=Release ^
  -DOSSIA_STATIC=1 ^
  -DOSSIA_MAX=1 ^
  -DOSSIA_PROTOCOL_PHIDGETS=1 ^
  -DCMAKE_INSTALL_PREFIX=ossia-max ^
  -DCMAKE_PREFIX_PATH=c:\dev\phidget22-windevel ^
  -DOSSIA_EDITOR=0 -DOSSIA_DATAFLOW=0 ^
  -DOSSIA_PROTOCOL_AUDIO=0 ^
  -DOSSIA_PROTOCOL_WIIMOTE=0

cmake --build . --config Release
cmake --build . --config Release --target install

If everything builds correctly, you should have a Max package in the ossia-max folder. For instance, c:\dev\build-libossia\ossia-max\ossia-max-package\ossia is the folder to copy into Documents\Max 8\Packages

Clone this wiki locally