hello everybody
when i try to run the targets with eclipse it seem that i should fixe the run configuration before run , but i was confused i dont know what application should i use exactly
the picture below will explain better
@sahar_slimani and I talked separately and I suggested for now trying WSL.
However, for completeness here is some info. on the WAF build process in general and how to use that via Eclipse. To get made for the wiki soon.
You shouldn’t need to set anything in there for our basic eclipse setup.
Create the different targets under, “Build Targets” on the right side of the window. Described here
Here is how the waf build process works at a high-level:
Configure
Build
Run the binary or upload the binary to your board
Clean: the project when needed
First you configure your project by running the configure for your board type and options. Configure WAF for the correct board type
--board=sitl
Add relevant options such as --debug
List options with ./waf --help
Eclipse: double click the target configure --board=sitl --debug
Command line in ardupilot root folder: ./waf configure --board=sitl --debug
Once configured correctly then build for the appropriate target for say Arducopter,
Eclipse: double click the target copter
Command line: ./waf copter
Note you can upload the compiled binary to a plugged in board by using
`./waf copter --upload’ (doesn’t work in WSL2 currently)
If you are building for sitl you can run the binary directly “not recommended” unless you have specific need such as debugging startup tasks like object construction
Using simvehicle.py is far easier as it can combine all of the above steps: See here
Clean the project this removes all of the objects files under ardupilot/build/*
Eclipse: double click the target clean
Command line: ./waf clean
To remove all of the build folders and data if ./waf clean didn’t work
Eclipse: double click target distclean
Command line: ./waf distcelan
Help for using waf on command line can be accessed via ./waf --help