Ahsling RiscFree IDE 25.1.1: Unresolved inclusion
Hello,
I'm making Nios V test project for Agilex 5 (Arrow AXE5000 Devkit), following instructions in AN 985 Nios V Processor Tutorial. It works basically, I can download and run Nios application on the target.
Source window is marking all include files as "unresolved" although the project compiles fine. I can manually add links to all missing includes (most from /bsp/inc folders, some from riscfree/toolchain/riscv32-unknown-elf) to the app tree to resolve the issue. But apparently there's something wrong with the import Cmake project flow. Am I missing a step in the instructions?
Regards
Frank
Hi Frank, FvM
First, As you may already know,
RiscFree is based on Eclipse C/C++ Development Toolkit (CDT), and these "unresolved inclusion" messages are from Indexer, which is a component of Eclipse. Indexer parses and analyzes your project files to help your source code exploration in GUI. So these warnings are not related the build process for your binary and the build process can be successfully completed regardless the messages.(Back to the main topic)
As you pointed out, fully automatic resolution of Indexer search path settings is not supported yet in RiscFree today, unfortunately.
However, We can resolve "unresolved inclusion" issue by manually setting the search path for Indexer.To search files in BSP project:
After you have imported both the application and BSP project:- Right-click on the application project in Project Explorer
- Select Properties
- Navigate to the Project References tab
- Check the option box for the BSP project, then click Apply and Close
To search C/C++ libraries:
(This is how I workaround...) Add the default RISC-V gcc include file search paths into project properties. To do this, import the xml explained in my next post with the following steps. The xml file is an example for 25.1.1 RiscFree running on Windows PC, so named as include_search_path_25.1.1_win.xml.- Right-click on the application project in Project Explorer
- Select Import...
- Select C/C++ -> C/C++ Project Settings, then click Next
- Click Browse..., then select the attached xml file: include_search_path_25.1.1_win.xml
- Click Finish
After these setup, there is no "unresolved inclusion" in my RiscFree.
Hope this helps,
Sho