1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/eclipsesym
Kees Bakker 39cc42014f eclipsesym/cmdline2xml.sh: avoid egrep
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.
2024-03-28 22:08:26 +01:00
..
cmdline2xml.sh eclipsesym/cmdline2xml.sh: avoid egrep 2024-03-28 22:08:26 +01:00
README.md treewide: fix typos 2022-09-15 23:31:40 +02:00

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:

  1. Open the project properties, menu Project->Properties
  2. Select C/C++ General->Paths and Symbols
  3. (optional) Click Restore Defaults to delete any existing macros and include paths
  4. Click Import Settings...
  5. Select eclipsesym.xml in your application directory and press Finish
  6. 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