Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
816 Views

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

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 I
23 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"
Altera_Forum
Honored Contributor I
23 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.
Altera_Forum
Honored Contributor I
23 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
Altera_Forum
Honored Contributor I
23 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?
Altera_Forum
Honored Contributor I
23 Views

no in the user application project

Altera_Forum
Honored Contributor I
23 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.
Reply