inav icon indicating copy to clipboard operation
inav copied to clipboard

Problem with building in Windows 10 with Linux Subsystem

Open romko1 opened this issue 6 years ago • 9 comments

Hello, I followed the instructions given here: https://github.com/iNavFlight/inav/blob/master/docs/development/Building%20in%20Windows%2010%20with%20Linux%20Subsystem.md

In step: make MATEKF405 pb_compilation Thank you for any good advice.

romko1 avatar Sep 21 '20 16:09 romko1

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Sep 21 '20 16:09 issue-label-bot[bot]

Perhaps you could provide us with some information to be able to help:

  • The output of uname -a
  • The output of ruby --version
  • The output of ls -l /bin/sh
  • The output of echo $SHELL

stronnag avatar Sep 21 '20 17:09 stronnag

And also please confirm that you ran all the steps in Ubuntu, specifically cloning the repo (and you did not unpack a zip file in Windows).

stronnag avatar Sep 21 '20 17:09 stronnag

Of course, I used the git command (no zip file in Windows). oh, sorry, here you go: pb_compilation2

romko1 avatar Sep 21 '20 17:09 romko1

I have a similar problem - the reason for the parenthesis in the path variable. eg:

echo $PATH ... /mnt/c/Program\ Files\ (x86)/Common\ Files/Oracle/Java/javapath ...

This solution helped me(reset the second bit, for example 15->13)

huhen avatar Sep 21 '20 22:09 huhen

Hello, slight forward. I added PATH = "$ PATH: / usr / bin" to the .bashrc file, I modified the registry: the Flags registry value should be changed from 7 to 5 as a result and got here: pb_compilation3

Can you please advise me what to do next? Thank you.

romko1 avatar Sep 22 '20 23:09 romko1

I came across an error why it gave me an error. The reason I do it all is to create my own firmware. So far, compilers have not minded overwriting files in the TARGET directory. The remedy is as follows: it is necessary to modify the given files directly, e.g. in Midnight Commander (MC).

I finally managed to create my own firmware. As stated in the instructions, it is FW v.2.6.0, unfortunately with the current inav configurator v.2.5.0 I can't read it. Please is there a newer inav configurator? Well thank you.

romko1 avatar Sep 23 '20 11:09 romko1

Please is there a newer inav configurator? Well thank you.

pretty recent builds may be found at http://seyrsnys.myzen.co.uk/inav-configurator-next/

stronnag avatar Sep 24 '20 07:09 stronnag

OK, as I experienced the problem by myself, I was able to confirm that this works:

  1. apply https://github.com/microsoft/WSL/issues/1493#issuecomment-417639271
  2. Restart WSL and preferably Windows as well
  3. Run cmake .. from build folder again
  4. make TARGET should be working

DzikuVx avatar Sep 24 '20 07:09 DzikuVx