Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20680 Discussions

NIOS II BSP: Problem building the project; No such file or directory

Altera_Forum
Honored Contributor II
1,154 Views

Hi all, 

I am trying to build a project. I manually added all the required files(copied) to the project after starting that project. But after every "Build Project" operation it is reporting: xyz.h: no such file or directory.  

Please note that I personally added xyz.h file in the project and it is also visible in the Project Explorer. 

Please note that I accepted everything default while starting this project. Added .sopcinfo and started project. 

What possibly may have gone wrong. I read many similar posts, but the solution provided in then is not working for me. 

 

 

Best warm regards and Thanks 

 

Tahir
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
361 Views

hello TAHIRSENGINE. 

 

how do you write the code? 

 

if you include the file with angle bracket. 

# include <xyz.h> 

 

you should change it with double quotation. 

# include "xyz.h"
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

 

--- Quote Start ---  

hello TAHIRSENGINE. 

 

how do you write the code? 

 

if you include the file with angle bracket. 

# include <xyz.h> 

 

you should change it with double quotation. 

# include "xyz.h" 

--- Quote End ---  

 

 

I did the same. Problem persists. 

Please note that it is not my own code and I am using somebody else code.
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

Hello, 

 

did you add the path of xyz.h to the Nios II Application Paths? 

(right click the project -> properties-> NiosII application prop.-> NiosII app. path, then put the path to App. include dirs) 

 

 

Jens
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

 

--- Quote Start ---  

Hello, 

 

did you add the path of xyz.h to the Nios II Application Paths? 

(right click the project -> properties-> NiosII application prop.-> NiosII app. path, then put the path to App. include dirs) 

 

 

Jens 

--- Quote End ---  

 

 

Thank for reply.  

Do you mean in the BSP project location?
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

no in the user application project

0 Kudos
Altera_Forum
Honored Contributor II
361 Views

 

--- Quote Start ---  

no in the user application project 

--- Quote End ---  

 

 

Problem seems to be solved. I re-indexed after BSP regeneration and before rebuilding the project.  

That solved the problem. 

Thank you sir. Appreciated your help.
0 Kudos
Reply