Forum Discussion

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

Problem compiling in buildserver

Hi,

Currently I have version 9.1 sp2 of nios and quartus installed. I am trying to build my project automatically with a batch script.

I tried the solution described in "how to execute nios ii command shell commands from a *.bat file" (I may not post links) which works if I run the batch script directly from explorer (with a double click). Now, when I try to do this in any other environment such as a buildserver (team city) or final builder then nothing happens. Nios II Command Shell.bat is started, but the "make" command is not executed through cygwin. I know from my colleages that this idea does work in nios version 11. But I dont know if upgrading our project is feasable at the moment.

Does any one have a solution for my problem?

1 Reply

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

    I fixed it.

    In Nios II Command Shell.bat I changed to

    @ "%QUARTUS_ROOTDIR%\bin\cygwin\bin\bash.exe" -c "%2/do_some_awesome_magic_like_nios_version_11.sh %1 %2 %3 %4"

    And do_some_awesome_magic_like_nios_version_11.sh contains:

    # !/bin/bash

    source $1/nios2_sdk_shell_bashrc

    exec $2/$3 $4

    exit $?