Skip to content

Installing to Raspberry Pi

Vladislav Aksjonov edited this page Mar 14, 2017 · 1 revision

That guide is the result of mine tries and mistakes. Hope it will save little bit of time other happy owners of RPi :)

Upgrading everything (just in case)


sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get dist-upgrade

Installing build tools and other stuff (we need them to build Python, pogeo, etc)


sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev

sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev

sudo apt-get install libssl-dev openssl

sudo apt-get install git

sudo apt-get install tmux

Downloading and building Python 3.5.3


wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz

tar -zxvf Python-3.5.3.tgz

cd Python-3.5.3

./configure

make <== That step will take some time, so just take you time and do something else

sudo make install

cd ../

Downloading, fixing and building pogeo


git clone https://github.com/Noctem/pogeo.git

Edit pogeo/geometry/util/math/mathlimits.h

Line 135 static const Type kMax = kPosMax; replace with static const Type kMax = SIGNED_INT_MAX(Type);

Line 137 static const Type kNegMax = kMin; replace with static const Type kNegMax = SIGNED_INT_MIN(Type);

Line 155 static const Type kMax = kPosMax; replace with static const Type kMax = UNSIGNED_INT_MAX(Type);

Those lines preventing pogeo from build on RPi. Hope Noctem will fix it soon ;)


sudo pip3 install pogeo/

After that you can proceed with default installing guide

Additional suggestions


Good idea: use tmux to launch scanner

tmux

cd Monocle

python3 scan.py

Now you can press ctr+b,d to disconnect from tmux session and close your RPi ssh session. To reconnect to that session type tmux a

Have fun, guys!