Forum Discussion
Hi
Did you managed to try out the suggestion in the previous comment?
Regards
Jingyang, Teh
- BrendenB8 months ago
New Contributor
Sorry for the delay.
The suggested approach of linking the projects provides a workaround for linking the headers to the BSP project. However, it does not solve the problem of linking to the compiler headers.
Still not linked.
Additionally, it also triggers a build of the BSP before the APP. This is not necessary. The CMake scripts in the APP will build the BSP automatically when the APP is compiled. But now under this configuration we have:
- BSP compiled in bsp/build.
- BSP compiled in app/build/bsp.
- APP compiled in app/build and linked against app/build/bsp.
Step 1 is not necessary. Note that in the version where 23 where this works we don't have to link the projects. In version 23 only steps 2 and 3 are performed as the projects are not linked.
As I mentioned in a previous post (https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/RiscFree-v25-1-1-no-longer-finds-BSP-and-compiler-headers-files/m-p/1676845#M53544) this all seems to stem from the fact that the CMake plugin gets an exception when trying to parse JSON output from CMake. The way this used to work cleanly is that:
- CMake is used to build the project.
- CMake is told to dump all the compile commands it used in a JSON file in the build directory. These compile commands contain the location of the headers etc used to perform the build.
- The CMake plugin in Eclipse parses out the JSON file and works out where all the headers are located.
- The CMake plugin tells Eclipse about these include paths via CMAKE_EXPORT_COMPILE_COMMANDS parser pre-processor option in the project configuration.
The problem is that the CMake plugin is getting an exception while trying to parse the JSON file and as such is unable to find the include headers. I noted the cause of the exception is some bad OSGi configuration.
Has this bug been reported? I have been using https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/RiscFree-v25-1-1-no-longer-finds-BSP-and-compiler-headers-files/m-p/1676846#M53545 as a workaround to get the compiler headers. It would be good if this could be fixed.
Also, note this is currently a problem in the professional version of Quartus as well.