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

Problem with building in Windows 10 with Linux Subsystem #6139

Closed
romko1 opened this issue Sep 21, 2020 · 9 comments · Fixed by #6146 or #6258
Closed

Problem with building in Windows 10 with Linux Subsystem #6139

romko1 opened this issue Sep 21, 2020 · 9 comments · Fixed by #6146 or #6258

Comments

@romko1
Copy link

romko1 commented Sep 21, 2020

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.

@issue-label-bot
Copy link

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

@stronnag
Copy link
Collaborator

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
Copy link
Collaborator

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

@romko1
Copy link
Author

romko1 commented Sep 21, 2020

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

@huhen
Copy link

huhen commented Sep 21, 2020

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)

@romko1
Copy link
Author

romko1 commented Sep 22, 2020

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
Copy link
Author

romko1 commented Sep 23, 2020

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.

@stronnag
Copy link
Collaborator

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/

@DzikuVx
Copy link
Member

DzikuVx commented Sep 24, 2020

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

  1. apply [Question] How to remove Windows pathes from WSL PATH? microsoft/WSL#1493 (comment)
  2. Restart WSL and preferably Windows as well
  3. Run cmake .. from build folder again
  4. make TARGET should be working

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