Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16650 Discussions

Nios II can't find included file when compiling a second save of an existing project

Devin2
Beginner
548 Views

I have an existing Quartus FPGA project that incorporates some C code written in Nios II which all compiles/builds and runs great. I am trying to create a copy of this project with the intention to expand into a new version while preserving the original, but with new file names to reflect the new application. However, when I build the new Nios project, I get a fatal error that cites a .h file in an "include" line in the code, claiming there to be "no such file or directory" by that name. Expanding the folders in the project explorer window shows this file does in fact exist and is exactly where it was in the original version. I am also able to open the declaration directly in the code and it finds it just fine.

Here is how I got here: I copied and pasted the Quartus files into a new folder in my file explorer and retitled the project. After successfully compiling the new Quartus project to get the sopc file, I opened Nios II and started a new project and BSP from the hello world template with my preferred project title. I then copied and pasted the original C code into the new C file. I then imported the rest of the necessary files into the new project. The new project now contains all the same files as the original except, obviously, the ones that are automatically generated during build and target making. I generated the new BSP and successfully built the project_bsp. I then tried building the new project and got the error described above. 

Given that everything is exactly the same as the original (content wise) I suspect I may have either skipped something important when importing the files or did the new project iteration process wrong entirely. What do I need to do to get it to properly find/use all the files I provided?

 

0 Kudos
4 Replies
hareesh
Employee
522 Views

Hi,

can you please share screen shot of error massage. and

if possible to share project files. please share it helps to identify the issue.

 

 

0 Kudos
hareesh
Employee
498 Views

Hi,

can you please share what i requested in previous comment?


0 Kudos
hareesh
Employee
476 Views

As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


0 Kudos
Devin2
Beginner
450 Views

Hi Hareesh,

 

I apologize for not updating sooner, but I was eventually able to solve the issue on my own. In case you're curious or others have a similar issue: I did this by going into the project properties > nios 2 application properties > nios 2 application paths. I then specified the directories of the include files that the error message claimed to be missing and the problem was solved.

0 Kudos
Reply