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
SITL: Windows build fails #3586
Comments
I just noticed that - after the failing build - a python2.7.exe.stackdump is included, it looks as follows: The python stackdump looks as follows:
This made me curious and then I noticed that the cygwin installation comes with a separate python version, I removed this version from PATH (and thus had a fallback to Anaconda 2.7 x64 Python). This changed the whole picture:
I checked Notice the path that python tries to access Am I mistaken or wasn't the Wiki suggesting MinGw for building SITL up to now?
|
build started failing around the 15-1-2016 according to my sitl image generator. |
Hi guys, I think I know the problem. Probably because the mavlink submodule isn't on your local tree. I think this problem started after #3504 . If you do: git submodule init
git submodule update Then, probably, the problem is solved. Hm, I think we should change the build system to init and update submodule dependencies before. |
Thanks guludo... I remember previously trying "git submodule update" after the failure (because the submodules url mentioned in the command output also suggested doing this), but it didn't fix the problem then. I have retried the process completely afresh on a different computer. The output is the same as I posted in the forum post "Major problem when installing SITL on Windows", including the errors. The output appears to call "git submodule init" (line 7) and "git submodule update" (line 16). As per your suggestion, I then tried executing "git submodule init" and "git submodule update" from the ~/ardupilot directory. The commands both completed successfully with no output. Rerunning the make command from the ArduCopter directory results in the same errors as before (documented below for completeness). It looks like rerunning the git submodules commands does not solve the problem. I checked the ~/ardupilot/modules/ directory and there is definitely a mavlink directory therein.
|
workarounds. python is crashing during the mavlink headers. but is actually completing. |
Thank you, @meee1. I can confirm that SITL successfully compiles using both workarounds:
I have a working SITL again - yay! I hope this points the team in the right direction for a more permanent fix. Very happy to retest as required and provide feedback. |
fixed via 7fda3ba |
Thanks, @magicrub. Your commit looks like it enacts the first workaround suggested by @meee1. Are there plans to do anything further to the ardupilot codebase to solve the underlying problem, if indeed the problem lies somewhere in ardupilot? Or is the problem somewhere upstream, e.g. in cygwin or python? |
when I enter sim_vehicle.sh -j4 --console --map |
@nocternal, firstly that's an odd extension for a parameters file. For copter, I'm loading a file named "copter_params.parm". Looking at my Tools/autotest directory, there's a likely-looking file for you named "ArduPlane.parm". Secondly, try using forward slashes. I found that at some point, possibly after a MAVProxy update, that backslashes no longer worked. So, instead try (I am on a Windows platform, by the way.) |
@craigo- I try as you said.It works! Thanks a lot! ^_^ |
@magicrub adding a |
I'm open to suggetsions On Tue, Feb 16, 2016 at 12:36 PM, Lucas De Marchi notifications@github.com
|
@magicrub from my part I'll postpone any investigation on this after waf is building ardupilot on windows. Just bear in mind it's not actually fixing the issue. |
understood. On Tue, Feb 16, 2016 at 2:10 PM, Lucas De Marchi notifications@github.com
|
Hi everybody and Help !!
|
You have a recent version of the toolchain which broke the build. You can build it using waf: see #3878 - it's not integrated with sim_vehicle.sh yet, though (one of the reasons we didn't switch to it yet). Patches to do that are welcome. |
@lucasdemarchi hello Lucas. I don`t get it #3878 Which steps for dummies I must to follow on Windows. I have all recent versions recomended on http://ardupilot.org/dev/docs/sitl-native-on-windows.html#sitl-native-on-windows. For several days my compilation terminated due to -Wfatal-errors. |
@pjmosquera |
OMG Unbelievable! "Firmware is in ArduCopter.elf" |
Closing this in favor of #4018 |
As already mentioned here and here there is a problem with building SITL under Windows, under a fresh Cygwin installation with dependencies acc. to the Wiki.
Removing
-j4
as suggested by @rmackay9 does not change the problem.A clean rebuild does not help either.
For the sake of completeness here's a complete build output:
Any ideas on this?
The text was updated successfully, but these errors were encountered: