I have almost find the answer throught altera website.
The following if FYI.
Problem
Why do I receive the following errors when trying to compile my Nios II project: ../app_rules.mk:152: \: No such file or directory?
Solution
You may receive the following errors when compiling a Nios® II software project if the mount point for the Cygwin toolset is not specified properly.
-------------------------------------------------------------
make -s all
"X"which cygpath.exe 2> /dev/null`" was unexpected at this time.
<Nios II install directory>/components/altera_hal/build/app_rules.mk:152: `: No such file or directory
<Nios II install directory>/components/altera_hal/build/app_rules.mk:152: "<Nios II install directory>"`: No such file or directory
<Nios II install directory>/components/altera_hal/build/app_rules.mk:152: /components/altera_hal/build/gnu_rules.mk: No such file or directory
<Nios II install directory>/components/altera_hal/build/app_rules.mk:156: ': No such file or directory
<Nios II install directory>/components/altera_hal/build/app_rules.mk:156: "<Nios II install directory>"`: No such file or directory
<Nios II install directory>/components/altera_hal/build/app_rules.mk:156: /components/altera_hal/build/gtf_rules.mk: No such file or directory
make: *** No rule to make target `/components/altera_hal/build/gtf_rules.mk'. Stop.
Build completed
-------------------------------------------------------------
If this error does occur you can specify the proper moint points by running the following three commands from a DOS prompt:
mount <Quartus® II Install directory>\bin\cygwin\ /
mount <Quartus II Install directory>\bin\cygwin\bin /usr/bin
mount <Quartus II Install directory>\bin\cygwin\lib /usr/lib
But when I run the mount command in niosII SDK, it told me that command not found...
Anyone help?
THanks a lot...