...
install
Microsoft Visual Studio toolchain: https://visualstudio.microsoft.com/vs/features/cplusplus/
“Community 2019” known to work
why?
needed because since Python 3.4, Python extension needs to be compiled with MSVC compiler
MinGW
why?
MinGW generates the right
Makefile
s when running from command linewe can also run
cmake
from an IDE (then the IDE will provide the generator).
download from https://sourceforge.net/projects/mingw/
install only
mingw32-base
cmake
cmake-3.20.0-windows-x86_64.msi
known to workhave install add CMake to the
PATH
Python
python-3.9.2-amd64.exe
known to workadd Python interpreter to
PATH
environment variableto be able to run OpenWSN Python extension in
gdb
, select the following from the advanced installation options
build
type
python setup.py install --user
build process ends with line
Finished processing dependencies for openmote==1.0
library ends up in
C:\Users\twatteyn\AppData\Roaming\Python\Python39\site-packages
openmote-1.0-py3.9-win-amd64.egg/
easy-install.pth
import library
verify the following doesn’t fail
python -c "import openmote"
MAC OS Specifics
Use homebrew python (
brew install python
orbrew upgrade python
) since MAC OSX system Python seems to lead to unstable results (depending on OS version).Python 3.9.1 known to work
To build (and configure)
python3 setup.py install --user --prefix=
python3 setup.py install --user --configure --prefix=
When running into issue where
Issue David:
127.0.0.1 - - [14/Apr/2021 08:57:49] code 400, message Bad request syntax ('\x05\x01\x00')
Installing OpenVisualizer
...
Info |
---|
temporary scratchpad during session, to be deleted after |
Open Questions
use of
.github
directory and GitHub actionscross compilation and toolchains used
OpenMote B and nRF52840-DK support (including toolchain)