-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling
qmake -makefile drone.pro will result in several warnings and no Makefiles at all
To solve that problem run the following instead:
qmake -spec macx-g++ drone.pro
Then to clean up the mess it generated:
find . -type d -name '*.xcodeproj' -exec rm -rf {} \;
Then:
make make install
If you have MacPorts installed you can do (untested):
sudo port install frei0r-plugins
You can also compile it yourself. Just make sure you install in /usr/local/. Checkout Frei0r homepage for instructions.
This is the default if you are using the "master" branch. If you are using the gstreamer branch please refer to the GStreamer installation tips for OSX below.
Before compiling you need to make sure to install ffmpeg otherwise you will get compilation errors.
Two ways to do this:
This is the default if you are using the "gstreamer" branch.
Download GStreamer 0.10 from here: http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X
Install these two packages. Make sure to check ALL extra packages during installation (for both installers):
- GStreamer SDK 2012.11 (Brahmaputra) for Mac OS X (Runtime)
- GStreamer SDK 2012.11 (Brahmaputra) for Mac OS X (Development files)
You don't need to install this one: GStreamer SDK 2012.11 (Brahmaputra) for Mac OS X (Deployment Packages)
I compiled the latest version of Drone under Ubuntu 12.04 precise. Here are some tips that I gathered that could be useful to others.
In order to use frei0r plugins:
sudo apt-get install frei0r-plugins ln -s /usr/lib/frei0r-1 gears/frei0r
You should run:
apt-get install libasound2-dev libxxf86vm-dev
Problem with portaudio: For now I had to remove AudioInput from gears.pro (was using portaudio which does not seem to be compatible anymore)
Follow these instructions with small changes (*) https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
For x264: ./configure --enable-pic --enable-shared --enable-static
For libvpx: ./configure --enable-pic --enable-shared
For FFMPEG:
./configure --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \ --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora \ --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree \ --enable-version3 --enable-swscale
My complete script:
# Install x264
cd
git clone --depth 1 git://git.videolan.org/x264
cd x264
./configure --enable-pic --enable-shared --enable-static
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
--fstrans=no --default
# Install fdk-aac
cd
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
autoreconf -fiv
./configure --disable-shared
make
sudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
# Install libvpx
cd
git clone --depth 1 http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --enable-pic --enable-shared
make
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
# Install FFMPEG
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora \
--enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree \
--enable-version3 --enable-swscale
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
hash -r
When running drone I had the following error:
libGear_VideoSource.so.1.0.0 ! Warning: fail to load gear libGear_VideoSource.so.1.0.0! libx264.so.129: cannot open shared object file: No such file or directory
I thus had to do:
sudo ln -s /usr/lib/x86_64-linux-gnu/libx264.so.120 /usr/lib/x86_64-linux-gnu/libx264.so.129
TODO