Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

command line nios2-elf-gcc query -newbie

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.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.