Version 10 (modified by dewert, 6 years ago) (diff)

added opencv package to deps

Fawkes on Ubuntu

Ubuntu Circle Of Friends Logo Ubuntu can be used for development and deployment of Fawkes. This document describes how to install the prerequesites - mandatory and as many optional ones as known and available out-of-the-box on Ubuntu. This allows you to get up and running quickly and easily. We describe the procedure on Ubuntu 10.04 LTS (tested in a KVM virtual machine). Newer versions will most likely work just the same or very similar. We do not support older Ubuntu versions. We primarily focus on Fedora as our development platform but feedback and contributions to improve Fawkes on Ubuntu are welcome!

Getting the Dependencies

Getting all the dependencies is as easy as

sudo apt-get install git-core g++ vim asciidoc doxygen \
libmagic-dev libssl-dev libavahi-client-dev libsqlite3-dev  libxml++2.6-2 libxml++2.6-dev \
libdaemon-dev libmicrohttpd-dev  liblua5.1-0-dev libtolua++5.1-dev \
libpng12-dev libjpeg62-dev libcv-dev libcvaux-dev libdc1394-22-dev \
libbluetooth-dev librrd-dev flite1-dev libxmlrpc-c3-dev \
robot-player-dev stage libstage2-dev libplayerc2-dev libboost-dev \
graphviz libgraphviz-dev libgl1-mesa-dev freeglut3-dev libsdl1.2-dev \
libgtkmm-2.4-dev libcairomm-1.0-dev libglademm-2.4-dev libgconfmm-2.6-dev \

Ubuntu 12.04 LTS

This is an alternate script to install fawkes 0.5 on Ubuntu

export ARCH=`uname -i`
echo Install Fawkes at Ubuntu $ARCH 

export INSTALLDIR=/opt
export DOC=true

echo Installing packages from apt repositories
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install git
sudo apt-get install libsqlite3-dev
sudo apt-get install libtolua++5.1-dev
sudo apt-get install libmagic-dev 
sudo apt-get install libxml++2.6-dev
sudo apt-get install libavahi-common-dev libavahi-core-dev libavahi-client-dev
sudo apt-get install libssl-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libpng12-dev
sudo apt-get install flite flite1-dev libflite1 libasound2-dev
sudo apt-get install libdaemon0 libdaemon-dev
sudo apt-get install libmicrohttpd-dev libxmlrpc-c++4-dev
sudo apt-get install robot-player robot-player-dev
sudo apt-get install libgtkmm-3.0-dev libcairomm-1.0-dev graphviz-dev libgconfmm-2.6-dev libgconfmm-2.6-1c2
sudo apt-get install librrd-dev
sudo apt-get install libglu1-mesa-dev freeglut3-dev
sudo apt-get install libbluetooth-dev
# Full docs are not usefull for small target runtime environments
if [ "$DOC" = "true" ] ; then
	echo Install document generator
	sudo apt-get install asciidoc doxygen

echo Install missing packages for $ARCH
if [ "$ARCH" = "x86_64" ] ; then
	wget -nc -P /tmp
	wget -nc -P /tmp
	sudo dpkg -i /tmp/libyaml-cpp0.3_0.3.0-1_amd64.deb
	sudo dpkg -i /tmp/libyaml-cpp-dev_0.3.0-1_amd64.deb
	wget -nc -P /tmp
	wget -nc -P /tmp
	sudo dpkg -i /tmp/libyaml-cpp0.3_0.3.0-1_i386.deb
	sudo dpkg -i /tmp/libyaml-cpp-dev_0.3.0-1_i386.deb

sudo git clone
sudo git pull
sudo make clean

echo Patches for Ubuntu 12.04 LTS 
echo -notify support and flite libs

sudo make >/tmp/fawkes.make.log

if [ $? -eq "0" ] ; then

For Ubuntu 12.04, this patches to last git version are neccessary to build fawkes 0.5

From 022bfe7f7f136286351f2a8942cd251754fe0213 Mon Sep 17 00:00:00 2001
From: root <root@xadmin-VirtualBox.(none)>
Date: Mon, 8 Oct 2012 09:28:22 +0200
Subject: [PATCH] Ubuntu 12.04 LTS inotify includes for x64 flite libs
 flite_cmulex flite_usenglish

 src/libs/utils/    |    2 +-
 src/plugins/flite/Makefile |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libs/utils/ b/src/libs/utils/
index 0b9d66b..2aff37e 100644
--- a/src/libs/utils/
+++ b/src/libs/utils/
@@ -13,7 +13,7 @@
-ifneq ($(wildcard /usr/include/sys/inotify.h),)
+ifneq ($(wildcard /usr/include/sys/inotify.h /usr/include/x86_64-linux-gnu/sys/inotify.h),)
diff --git a/src/plugins/flite/Makefile b/src/plugins/flite/Makefile
index e121940..8a97848 100644
--- a/src/plugins/flite/Makefile
+++ b/src/plugins/flite/Makefile
@@ -22,7 +22,8 @@ ifeq ($(HAVE_FLITE)$(HAVE_ALSA),11)
   LIBS_flite = m fawkescore fawkesutils fawkesaspects fawkesblackboard \
-	       fawkesinterface SpeechSynthInterface flite flite_cmu_us_kal
+	       fawkesinterface SpeechSynthInterface flite flite_cmu_us_kal \
+		flite_cmulex flite_usenglish
   OBJS_flite = $(patsubst %.cpp,%.o,$(patsubst qa/%,,$(subst $(SRCDIR)/,,$(wildcard $(SRCDIR)/*.cpp))))

Build and running Fawkes

After the dependencies are installed you can continue with the Getting Started Guide on how to compile and run Fawkes.