Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build: Some errors on Windows #45

Open
Taxtra opened this issue Jul 4, 2023 · 1 comment
Open

Docker build: Some errors on Windows #45

Taxtra opened this issue Jul 4, 2023 · 1 comment

Comments

@Taxtra
Copy link

Taxtra commented Jul 4, 2023

Hi,
There are a few errors that occur when trying to build the firmware via docker on Windows. Maybe you can add these information to the documentation:

On Windows, the path must be specified directly, so the $(pwd) command wont work:
docker run --rm -it -v PATH_TO_FILE:/usr/local/src/RS41ng rs41ng_compiler should be the correct one

Now you will probably get an error like this:
line 1: $':\r': command not found

This is because Windows creates new lines via unix and not via dos like Linux.

This problem can be easily solved on Windows using Notepad++:

At first open Notepad++

1. menu: Search -> Find in Files...
2. directory = set to your RS41ng source directory
4. find what = \r\n
5. replace with = \n
6. search mode = extended
7. press "Replace in Files

More information on how to convert the files to unix

This should solve the problem. Please note that you may have to rebuild the Docker image.

@mikaelnousiainen
Copy link
Owner

@Taxtra Are you using Windows Subsystem for Linux (WSL) to compile this and do you use the bash shell? Those are the ones supported by the build process here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants