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

Windows 10 PX4 build system support #6697

Closed
potato77 opened this issue Mar 1, 2017 · 16 comments
Closed

Windows 10 PX4 build system support #6697

potato77 opened this issue Mar 1, 2017 · 16 comments

Comments

@potato77
Copy link

potato77 commented Mar 1, 2017

Hello,

I used the cmd git submodule update --init --recursive to update all submodules of px4 .

and the error is:

fatal: Needed a single revision
Unable to find current revision in submodule path 'src/lib/ecl'

How to fix it? Thank you in advance!

any help would be appreciated!

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

Please run make submodulesclean

@mhkabir mhkabir closed this as completed Mar 1, 2017
@potato77
Copy link
Author

potato77 commented Mar 1, 2017

$ make submodulesclean

Usage: git submodule [--quiet] add [-b branch] [-f|--force] [--reference ] [--] [] or: git submodule [--quiet] status [--cached] [--recursive] [--] [...] or: git submodule [--quiet] init [--] [...] or: git submodule [--quiet] update [--init] [-N|--no-fetch] [-f|--force] [--rebase] [--reference ] [--merge] [--recursive] [--] [...] or: git submodule [--quiet] summary [--cached|--files] [--summary-limit ] [commit] [--] [...] or: git submodule [--quiet] foreach [--recursive] or: git submodule [--quiet] sync [--] [...] make: *** [submodulesclean] Error 1

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

That's pretty odd. What operating system and version are you using?

@dagar any suggestions?

@mhkabir mhkabir reopened this Mar 1, 2017
@potato77
Copy link
Author

potato77 commented Mar 1, 2017

windows 10

@dagar
Copy link
Member

dagar commented Mar 1, 2017

@potato77 have you successfully built PX4 on windows before? What branch are you on?

@potato77
Copy link
Author

potato77 commented Mar 1, 2017

@dagar no. This is my first time to install the development environment.

@dagar
Copy link
Member

dagar commented Mar 1, 2017

Can you walk us through what you've done so far, which tools you've installed. It's not clear to me if you have a really old version of git or there's some Windows path or line ending issue.

If you're able to use Linux (Ubuntu) or OS X for development you'll have a much easier time. It's possible to get this working in Windows, but much slower and poorly supported.

@potato77
Copy link
Author

potato77 commented Mar 1, 2017

@dagar thank u very much
I am trying to install the development environment on the VM unbuntu.

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

I believe we could eventually create a setup that works on Bash for Windows 10, thus avoiding all the issues we're currently having.

I had a quick look-see and it seems like it'll be easy to do.

@dagar
Copy link
Member

dagar commented Mar 1, 2017

That would certainly be nice. If there's anything to do to get it working we can then keep it working by adding a build on https://www.appveyor.com/.

@potato77
Copy link
Author

potato77 commented Mar 1, 2017

@mhkabir any instruction to Bash for WIN10? How to build PX4?

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

@potato77 No instructions yet. I don't have a Windows 10 machine running at the moment. I can however assist you in bringing it up remotely, later today. Skype me : 'kabiriris'.

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

Start by installing Bash if you don't have it already : https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

@mhkabir
Copy link
Member

mhkabir commented Mar 1, 2017

@dagar I don't think Appveyor has support for Bash on Ubuntu yet : appveyor/ci#1295

@mhkabir mhkabir changed the title Unable to find current revision in submodule path 'src/lib/ecl' Windows 10 PX4 build system support Mar 1, 2017
@mhkabir
Copy link
Member

mhkabir commented Mar 5, 2017

If anyone running Windows would like to help me with testing, it would be awesome. You can email me or ping me on Skype, and I'll guide you through the process.
We can then update Devguide with a working set of instructions for everyone to use.

@dagar
Copy link
Member

dagar commented Jan 17, 2018

This works for me.

@dagar dagar closed this as completed Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants