关键问题
如果已使用版本创建应用程序或库项目 9.1 SP2 或更早(使用 GCC 3 工具链),您导入它 至版本 10.0 Nios II SBT,用于使用 GCC 4 工具链Eclipse, 您可能会看到显示的内部版本错误 。
make all
Info: Building ../hw_bsp
make --no-print-directory -C ../hw_bsp
make[1]: *** No rule to make target '/cygdrive/c/tmp/verilog_niosII_stratixII_2s60_standard/software/hw_bsp/alt_sys_init.c',
needed by 'all'. Stop.
make: *** [../hw_bsp-recurs-make-lib] Error 2 |
如果将 GCC 3 项目导入到 面向使用 GCC 3 工具链Eclipse的版本 10.0 SBT,以及 稍后将工具链更改为 MinGW Nios II GCC4。
此问题仅影响运行 Windows 操作的平台 系统。
要避免此错误,请按照以下步骤操作:
- 编辑应用程序项目和库项目 makefiles 并添加插入的代码,如以下所示。
- 右键单击 BSP 项目,指向Nios II,以及 单击Generate BSP。
- 清理并重建应用程序和库项目。
#------------------------------------------------------------------------------
# The adjust-path macro
#
# If COMSPEC is defined, Make is launched from Windows through
# Cygwin. This adjust-path macro will call \'cygpath -u\' on all
# paths to ensure they are readable by Make.
#
# If COMSPEC is not defined, Make is launched from *nix, and no
adjustment
# is necessary
#------------------------------------------------------------------------------
# Beginning of inserted code
ifndef COMSPEC
ifdef ComSpec
COMSPEC =
endif # ComSpec
endif # !COMSPEC
#end of inserted code
ifdef COMSPEC
adjust-path =
adjust-path-mixed =
else
adjust-path =
adjust-path-mixed =
endif |
或者,安装Altera完整设计套件版本 11.0 或更高版本。