PX4-windows-toolchain icon indicating copy to clipboard operation
PX4-windows-toolchain copied to clipboard

v0.7 additional steps before building

Open TheSoundMan000 opened this issue 4 years ago • 7 comments

Installation of 0.7 failed to build without installing packaging and pyros-genmsg. Unsure if these are the expected versions so hoping to get this fixed up in the installer to remove any potential issues. Note that pip3 was deliberately not updated to keep in line with the default environment.

pip3 install packaging pip3 install --user pyros-genmsg

The only thing to note is there was a prior installation of 0.5.

TheSoundMan000 avatar Mar 29 '20 21:03 TheSoundMan000

This is the Cygwin installation? Delete the PX4 folder and install the latest version - 0.9

hamishwillee avatar Mar 29 '20 21:03 hamishwillee

Does 0.9 work with 1.10? Another user had indicated to only use the versions given in the documentation https://dev.px4.io/v1.10/en/setup/dev_env_windows_cygwin.html which points to 0.7. Perhaps a good idea to update the documentation if this is the case so newbies like myself don't get caught out.

A fresh install on another PC has the same results unfortunately.

TheSoundMan000 avatar Mar 29 '20 21:03 TheSoundMan000

Does 0.9 work with 1.10? Another user had indicated to only use the versions given in the documentation https://dev.px4.io/v1.10/en/setup/dev_env_windows_cygwin.html which points to 0.7. Perhaps a good idea to update the documentation if this is the case so newbies like myself don't get caught out.

A fresh install on another PC has the same results unfortunately.

Yes it does work with 1.10.

TSC21 avatar Mar 29 '20 21:03 TSC21

@TheSoundMan000 That's a good point. The answer being "Probably". IMO you'd be best of trying v0.8 because I am pretty sure that works with v1.10. Otherwise you can wait until @MaEtUgR looks at this :-)

hamishwillee avatar Mar 29 '20 21:03 hamishwillee

Awesome thanks guys, appreciate your help!

Happy to switch versions for now that's easy enough, just curious then is it safe to use the patch I put in place or does that leave the potential for incorrect versions etc?

TheSoundMan000 avatar Mar 29 '20 21:03 TheSoundMan000

I don't know what you mean by "patch you put in place". But my understanding is that everything lives in the PX4 folder - it is a complete environment. So if you delete/recreate that, the patch is gone.

hamishwillee avatar Mar 29 '20 22:03 hamishwillee

@TheSoundMan000 Sorry for any confusion. To work on latest PX4 master you can just use toolchain v0.9 but it might give you some small problems on PX4 v1.10.1 SITL probably because Cygwin updated the compiler. Your patch of adding the missing python packages to build latest master are perfectly fine, that's exactly what the additional versions were triggered for. I added more release notes to hopefully clear things up: https://github.com/PX4/windows-toolchain/releases

For your reference the changes you did manually are in the automatic script to generate the new versions here: https://github.com/PX4/windows-toolchain/commit/8f8fbb42052a3718429534a7ee8f2965277dee52, https://github.com/PX4/windows-toolchain/commit/15130617f98d404d30be2fa5004a4df6894085d7

MaEtUgR avatar Mar 30 '20 17:03 MaEtUgR