-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added compilation steps #5117
base: master
Are you sure you want to change the base?
Added compilation steps #5117
Changes from 2 commits
7bf4e64
386e919
ff7990b
cea24da
7a4ee64
1662af5
5b47685
37d3c69
82803a4
35adc25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,36 @@ Setting up the Build Environment | |
- :ref:`Setup the Build Environment on Windows <building-setup-windows>` | ||
- :ref:`Setup the Build Environment on MacOSX <building-setup-mac>` | ||
|
||
|
||
Building / Compiling | ||
-------------------- | ||
|
||
**Linux / MacOSX users:** | ||
Once the build environment is set up as above, run the following commmands prior to the initial build. (For Windows users, this is under WSL, as set up above): | ||
|
||
- Linux and MacOSX users should build with waf as described in `BUILD.md <https://github.com/ArduPilot/ardupilot/blob/master/BUILD.md>`__. | ||
- `git submodule init` | ||
- `git submodule update --recursive` | ||
David-OConnor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- `./Tools/gittools/submodule-sync.sh` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should only be used in case of emergency....its a sledge hammer....please remove it....we can add a note in the branching doc about using it in case of emergency where you cant get the modules updated correctly There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Build failed -> task in 'dronecan' failed (exit status 2): {task 140083940872752: dronecangen -> } (run with -v to display more information) The second prevents this: Build failed
-> task in 'ChibiOS_lib' failed (exit status 2):
{task 140009737052320: ChibiOS_lib hwdef.h,hw.dat,include_dirs,board.c,board.h,bouncebuffer.c,bouncebuffer.h,chconf.h,crashdump.c,ffconf.h,flash.c,flash.h,halconf.h,hrt.c,hrt.h,malloc.c,mcuconf.h,poll.h,ppm.h,spi_hook
// ... (many lines of red text) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed on fresh build |
||
- `python3 waf configure --board *BoardName*` | ||
David-OConnor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- `python3 waf clean` | ||
David-OConnor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
`*BoardName*` above is the name of the board, as labeled by its associated folder in | ||
`/ardupiot/libraries/AP_HAL_ChibiOS/hwdef`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, board name isn't restricted to Chibios boards. |
||
|
||
Run the following command, each time you wish to build: | ||
`python3 waf copter` | ||
David-OConnor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
(Substitute `plane`, `rover` etc for `copter` as required) | ||
|
||
.. youtube:: lNSvAPZOM_o | ||
|
||
**Windows users:** | ||
**Details** | ||
|
||
- Additional detailed information is available in this document: `BUILD.md <https://github.com/ArduPilot/ardupilot/blob/master/BUILD.md>`__. | ||
|
||
|
||
- This video demonstrates building on a Linux PC: | ||
|
||
.. youtube:: lNSvAPZOM_o | ||
|
||
- Windows users should fellow the directions described on :ref:`Setup Build Environment on Windows <building-setup-windows>`. | ||
|
||
**Board specific instructions:** | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required to avoid the following error message: