I did add the path and it worked, but I had to figure out where it was because it doesnt install to the default location it installs to:
So all I had to do was
This is interesting, try it with the tagged release v0.5.4 and see if that fixes it, we made this change cmake: Define library suffix in case of 64 bits multilib archs in linux · ed1fc6c · intel-iot-devkit/mraa · GitHub which may have broken builds on non multilib linux but it's weird it would do that on debian...
Tips : if you want the path to be set automatically after a reboot you can add it to /etc/environment
root@ubilinux:~# cat /etc/environment
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages/ #Before v0.5.4
export PYTHONPATH=$PYTHONPATH:/usr/lib/i386-linux-gnu/python2.7/site-packages/ #After v0.5.4
You just need to install de python-dev package. This will create the variables to the python libraries.
sudo apt-get install python2.7-dev
Then you can run:
apt-get install git cmake swig ntp
cmake .. -DBUILDSWIGNODE=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr
When I run - cmake .. -DBUILDSWIGNODE=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr
I get the error
CMake Error at src/python/python2/CMakeLists.txt:10 (target_include_directories):
Unknown CMake command "target_include_directories".I get the error
Does anyone else have this problem??
Any Advice on how to fix it? Seem like the apt-get version of cmake isn't the right version