I'm using a RPI 3B
uname -a returns:
4.14.98-v7+ #1200 armv71
gcc version is 4.9.3
I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed the first few commands:
git clone --recurse-submodules https://github.com/Wolkabout/WolkGateway.git
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
The Bash Script
then I ran a bash script (configure.sh) that contains the following:
cp tools/git/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
conan install -s compiler.libcxx=libstdc++11 --build=missing ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
The Output of the Bash Script
the terminal outputs:
line 21: conan: command not found
line 21 is the line with
Then I get a CMake error:
include could not find load file:
Maybe Conan Isn't in My
My thought was that the command
conan isn't in my
$PATH so I checked
pip show conan
this gave me the location of
I then added that path to my
This didn't work, causing the same error when re-running the aforementioned bash script (configure.sh)
Installing Conan From Source
I went here and installed
conan from source:
git clone https://github.com/conan-io/conan.git
pip install -r conans/requirements.txt
The Python Script to Add Conan to my
conan_repo_path = "/home/pi/conan"
ABSOLUTE PATH TO CONAN REPOSITORY FOLDER
from conans.client.command import main
This worked. It showed me the
conan commands help output.
What is this python script doing differently then when I execute configure.sh (bash script)?