mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
39cc42014f
The egrep and fgrep commands have been deprecated since 2007. Beginning with GNU Grep 3.8, calling these commands will now issue a warning to the user that instead they should use grep -E and grep -F, respectively. |
||
---|---|---|
.. | ||
cmdline2xml.sh | ||
README.md |
cmdline2xml.sh
Export all command line include paths and macro definitions to an XML file suitable for import in Eclipse CDT.
Instructions
The Eclipse project must be located at "/RIOT" inside your Eclipse workspace, otherwise change cmdline2xml.sh accordingly (ECLIPSE_PROJECT_NAME=RIOT).
In the shell:
cd to application directory (e.g. examples/hello-world)
make eclipsesym
In Eclipse:
- Open the project properties, menu Project->Properties
- Select C/C++ General->Paths and Symbols
- (optional) Click Restore Defaults to delete any existing macros and include paths
- Click Import Settings...
- Select
eclipsesym.xml
in your application directory and press Finish - Rebuild C/C++ index, menu Project->C/C++ Index->Rebuild
All conditional compilation and all include paths should now resolve properly for your application.
The file eclipsesym.xml
is specific to the application being built and may
differ depending on what modules are enabled and which platform is being built.
Make sure that everything is set up properly in your shell and that regular
make all
works before running make eclipsesym