You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/guide/installation.md
+44-16
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,12 @@ This is the required software for generating, compiling and programming projects
4
4
with modm:
5
5
6
6
-[Python 3](http://www.python.org/)
7
-
-[Software Construct](http://www.scons.org/)
7
+
-[Software Construct][scons] or [CMake][]
8
8
-[Library Builder][lbuild]
9
9
- AVR toolchain: [avr-gcc][] and [avrdude][]
10
10
- ARM toolchain: [gcc-arm-toolchain][] and [OpenOCD][].
11
-
-[Doxygen](http://www.doxygen.nl)
11
+
- Optional: [Doxygen][] or [Doxypress][]
12
+
- Optional: [gdbgui][] for IDE-independent debugging
12
13
13
14
Note that the modm examples use the SCons build system by default, however,
14
15
you are not *required* to use it. See [the reference manual](../../reference/build-systems) for
@@ -48,11 +49,17 @@ well:
48
49
brew install arm-gcc-bin
49
50
brew install openocd --HEAD
50
51
51
-
scons now works with Python 3. Unfortunately, macOS still defaults to Python 2.
52
+
We recommend the use of a graphical frontend for GDB called [gdbgui][]:
53
+
54
+
pip3 install gdbgui
55
+
56
+
SCons now works with Python 3. Unfortunately, macOS still defaults to Python 2.
52
57
For a less intrusive way to run all scons scripts with Python 3 add this to your
53
58
`.bashrc` or `.zshrc`:
54
59
55
60
alias scons="/usr/bin/env python3 $(which scons)"
61
+
# or if your using scons elsewhere too:
62
+
alias scons3="/usr/bin/env python3 $(which scons)"
56
63
57
64
To compile modm *for macOS* (and not the embedded target) you need to install
58
65
some of these libraries as well, depending on what modm modules you use:
@@ -81,12 +88,16 @@ Install the AVR toochain:
81
88
!!! bug "avr-gcc on Ubuntu"
82
89
Ubuntu does not provide an up-to-date version of avr-gcc that supports C++17.
83
90
For our CI we've created a [precompiled version of avr-gcc for Ubuntu][avr-gcc-latest].
84
-
Use at your own risk.
91
+
Unfortunately its path is hardcoded to `/work/avr-gcc`.
85
92
86
93
Install the ARM toochain by downloading [the pre-built version][gcc-arm-toolchain]
87
94
for 64-bit Linux and adding its `/bin` directory to your path.
88
-
Even though your distribution may ship their own ARM toolchain, we *very strongly
89
-
recommend* using the official toolchain, since all of modm is tested with it.
95
+
**Even though your distribution may ship their own ARM toolchain, we very strongly
96
+
recommend using the official toolchain, since all of modm is tested with it.**
97
+
98
+
We recommend the use of a graphical frontend for GDB called [gdbgui][]:
99
+
100
+
pip3 install gdbgui
90
101
91
102
To compile modm *for Linux* (and not the embedded target) you need to install
92
103
some of these libraries as well, depending on what modm modules you use:
@@ -96,32 +107,49 @@ some of these libraries as well, depending on what modm modules you use:
96
107
97
108
## Windows
98
109
99
-
We will use [Anaconda](https://www.anaconda.com/) ([Miniconda](http://conda.pydata.org/miniconda.html)[Windows installation](https://docs.conda.io/en/latest/miniconda.html#windows-installers) is sufficient) to create a new Python 3 environment and install all
100
-
necessary packages:
110
+
We will use [Anaconda][] ([Miniconda Windows installation][miniconda] is
111
+
sufficient) to create a new Python 3 environment and install all necessary
0 commit comments