Forum Discussion

MHahn4's avatar
MHahn4
Icon for Occasional Contributor rankOccasional Contributor
6 years ago
Solved

Project creation using windows

I'm trying to create a Nios II project in Eclipse, but the New Project-Wizards creates files with Windows style delimiters instead fo Unix ones (the "create-this-app" and "create-this-bsp" files) which results in an execution error:

Executing: wsl ./create-this-bsp --cpu-name Nios2Processor --no-make (C:\some\directory\projectname\software\TestProject_bsp)
./create-this-bsp: line 4: $'\r': command not found
./create-this-bsp: line 11: $'\r': command not found
./create-this-bsp: line 20: syntax error near unexpected token `$'in\r''
./create-this-bsp: line 20: `  case "$1" in
'

I've already set the Eclipse settings to use Unix styled delimiters for new files, but the Wizard still creates the Windows styled ones.

How can I get this running on Windows?

  • Found out the solution myself: the script uses the wsl command instead of cygwin. Therefore you have to configure a WSL linux and install the dos2unix package and the building tools.

2 Replies

  • MHahn4's avatar
    MHahn4
    Icon for Occasional Contributor rankOccasional Contributor

    Found out the solution myself: the script uses the wsl command instead of cygwin. Therefore you have to configure a WSL linux and install the dos2unix package and the building tools.