mikaelnousiainen / RS41ng

Custom firmware for Vaisala RS41 and Graw DFM-17 radiosondes with support for amateur radio use. Ideal for tracking high-altitude balloons. Supported modes include APRS, Horus 4FSK mode, CATS, morse code (CW) and additional digital modes like WSPR and FT8 via Si5351.
GNU General Public License v2.0
109 stars 28 forks source link

Docker build: Some errors on Windows #45

Open Taxtra opened 12 months ago

Taxtra commented 12 months ago

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...

  1. directory = set to your RS41ng source directory
  2. find what = \r\n
  3. replace with = \n
  4. search mode = extended
  5. 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 commented 10 months ago

@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...