build lpmt (or lpmtX2) with openframeworks 0.9 on ubuntu
Hurrai, after years the development of lpmt is actively going on. It’s time for lpmtX2 which includes some improvements like:
*loads 3D Models *(I still have depth configuration problem).
*global grid (for multiprojection calibration)
So let’s have a look how to get the things done.
There are maybe more, but the one was missing for me is librtaudio-dev.
openFrameworks/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp|8|fatal error: RtAudio.h: File not found|
sudo apt-get install librtaudio-dev git build-essential
Get the things
Lpmt is based upon open frameworks. From wikipedia openFrameworks is an open source toolkit designed for “creative coding”. It is for “folks using computers for creative, artistic expression, and who would like low level access to the data inside of media in order manipulate, analyze or explore.” So first we have to get the openFramewoks. There are two possibilities for that. Download the stable-Version from the official homepage or use github. I am going to use github, because it gives me the possibility to update OF really fast.
The easiest way to compile the code is to use the Code::Blocks IDE because oF has its own project-generator, which includes a predefined workspace for the IDE. So I recommend to use it.
sudo apt-get install codeblocks
Then change with cd to directory you want to work with. Clone the oF repro, but this takes a while because its 1.4 gb.
git clone https://github.com/openframeworks/openFrameworks
After that we have to get the lpmtX2 in the right folder of oF. For that we change to the directory, make a new directory and clone it.
git clone https://github.com/VideoMapping/lpmtX2
We are also missing some plug-ins for oF. Change back to the main oF directory and then get the Addons.
git clone https://github.com/danomatika/ofxMidi
git clone https://github.com/hvfrancesco/ofxMostPixelsEver
git clone https://github.com/hvfrancesco/ofxMSAInteractiveObject
git clone https://github.com/obviousjim/ofxMSATimer.git
git clone https://github.com/Flightphase/ofxRange.git
git clone https://github.com/hvfrancesco/ofxSimpleGuiToo
git clone https://github.com/Flightphase/ofxTextInputField.git -b develop
git clone https://github.com/YCAMInterlab/ofxTimecode.git
git clone https://github.com/ixds/ofxTimeline.git
git clone https://github.com/hvfrancesco/ofxTLButtons
git clone https://github.com/arturoc/ofxTween.git
git clone https://github.com/DHaylock/ofxVideoBuffer.git
Open Code::Blocks IDE from the application menu. Then Open the lpmtX2.workspace file in the openFrameworks/apps/myApps/lpmtX2 folder and build it from the menu or “strg+f9”.
Fix the errors
Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
is solved with
sudo apt-get remove libgtk-3-dev
Thats it.Tags: lpmt