Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

command line nios2-elf-gcc query -newbie

Altera_Forum
Honored Contributor II
1,477 Views

Hi all, I've successfully compiled the source code for a video demo (written by someone else) under windows/cygwin. 

However I'm now doing identically the same except on Ubuntu Linux nios command shell. 

 

The make fails to locate simple header files 'no such file or directory' - but the files are present and correct! 

 

nios2-elf-gcc -xc -etc... -etc... -c -Isrc/alt_video_display -Isrc/alt_ etc.. etc... 

 

Surely if the -I is correct for the correct folders, then the compiler must be able to locate the include files? 

I'm a newbie - is this use of -I correct for the folder ./src/alt_video_display? (the error occurs with several folders/files (same command is fine under cygwin)) 

 

The makefile was generated by a script written by the author - I cant see why it works with cygwin but fails on linux with such a simple fault. 

 

Any help appreciated, cheers, JB.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
487 Views

Check that you've not mistyped the filenames - the linux filesystem will be case sensitive.

0 Kudos
Altera_Forum
Honored Contributor II
487 Views

 

--- Quote Start ---  

Check that you've not mistyped the filenames - the linux filesystem will be case sensitive. 

--- Quote End ---  

 

 

Thanks but no typo mistakes! - as I say there is no difference between what successfully occured under windows/cygwin, and what I am now repeating on Linux - strange.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

You were almost right - the author had used a backslash instead of a forward slash in paths to header files in some of the source code - hence it worked in cygwin, but not linux. Thanks, JB.

0 Kudos
Reply