betaflight / docker-betaflight-build

Docker container that contains everything required to build the Betaflight firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make: *** No rule to make target 'clean'. Stop.

CertainBot opened this issue · comments

Hello, I know there is a similar issue closed but after having fought for several hours with virtualization and so on, now I am stuck with this error message. I am trying to make a .HEX file from the master betaflight branch that I downloaded on windows 10 via Github desctop. Its located at C:\Users\MiPC\Git\Betaflight

I go into the directory and type: docker run --rm -ti -v pwd:/opt/betaflight betaflight/betaflight-build
make: *** No rule to make target 'clean'. Stop.

I have tried everyhting from adding a TARGET to substituting pwd by the actual path with two slashes in front, with one slash, etc, etc... I am stuck.. can you please help me?
dOCKER

@Mateyhv: You are trying to run the linux version of the command on Windows. Read
'Note for Windows users' in https://github.com/betaflight/docker-betaflight-build#run-this-image-with-docker

@mikeller thanks, followed your advice (dumb of me mixing OS) but now receiving "invalid mode: /opt/betaflight"
Docker1

@Mateyhv: Have you tried the second version listed in 'Note for Windows users' that uses quotes around Windows path.

@mikeller , yes tried both without success, it looks like a never ending chain of errors, maybe there is something wrong deeper in my Win10, Bitdefender antivirus interference, etc. Not sure its worth to bother you anymore, thanks for the help anyway! I will try uninstalling and installing again Docker Desktop and Oracle VM VirtualBox as a last resource.
Docker2

@Mateyhv: I am not a Windows user, and I have never run docker on Windows, so I am kind of out of ideas for what else could be causing this. Not sure if the fact that you are running int in PowerShell makes a difference, but you could try running it in the 'normal' command prompt.

Apart from that I would recommend you don't use docker, and try building the firmware in WSL, which is documented here: https://github.com/betaflight/betaflight/wiki/Building-Betaflight-on-Windows,-the-Linux-subsystem-way

Thank you Michael, will switch to WSL. I will also play some more with docker and eventually close the issue in a few days to allow for reporting back any progress.

After installing the WSL following the very well documented link provided by @mikeller I was able to compile the target .HEX and .BIN.
Since the success I haven't played with docker anymore, thus I am closing the issue. Users encountering the same problem may also check #2 which provides some possible solutions to this same problem.