unable to make SITL on windows

554 views
Skip to first unread message

Bimo

unread,
Nov 18, 2015, 11:11:58 AM11/18/15
to drones-discuss
I followed the instructions in
http://dev.ardupilot.com/wiki/sitl-nati ... _in_cygwin

The paths are set correctly in .bashrc
export PATH=$PATH:$HOME/ardupilot/Tools/autotest

I am able to make px4-v2 on eclipse

However,
make sitl -j4
generates the following error:



$ make sitl -j4
%% libraries/AP_Common/c++.o
%% libraries/AP_Common/AP_Common.o
%% libraries/AP_Menu/AP_Menu.o
In file included from /home/Me/ardupilot/libraries/AP_Common/c++.cpp:9:0:
/home/Me/ardupilot/libraries/AP_HAL/AP_HAL.h:6:21: fatal error: stdbool.h: No such file or directory
compilation terminated
.
C
:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Common/c++.o' failed
make
: *** [/tmp/arducopter.build/libraries/AP_Common/c++.o] Error 1
make
: *** Waiting for unfinished jobs....
In file included from /home/Me/ardupilot/libraries/AP_Common/AP_Common.cpp:21:0:
/home/Me/ardupilot/libraries/AP_HAL/AP_HAL.h:6:21: fatal error: stdbool.h: No such file or directory
compilation terminated
.
C
:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Common/AP_Common.o' failed
make
: *** [/tmp/arducopter.build/libraries/AP_Common/AP_Common.o] Error 1
// BUILDROOT=/tmp/arducopter.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="c52f16b8"
In file included from /home/Me/ardupilot/libraries/AP_Common/AP_Common.h:26:0,
                 
from /home/Me/ardupilot/libraries/AP_Menu/AP_Menu.cpp:7:
/usr/include/stdlib.h:16:20: fatal error: stddef.h: No such file or directory
compilation terminated
.
C
:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Menu/AP_Menu.o' failed
make
: *** [/tmp/arducopter.build/libraries/AP_Menu/AP_Menu.o] Error 1




Randy Mackay

unread,
Nov 18, 2015, 8:15:08 PM11/18/15
to drones-...@googlegroups.com

Bimo,

 

     I didn’t write that wiki page so I’m afraid I can’t help you there.  Still, I’ve always runs SITL in a virtual machine on my windows machine.  Instructions are here and if you hit problems doing it this way I can likely help you get it working.

          http://dev.ardupilot.com/wiki/setting-up-sitl-on-windows/

 

-Randy

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bimo

unread,
Nov 19, 2015, 12:19:19 PM11/19/15
to drones-discuss
Thanks.
You recommend the VMware VM or the Vagrant process?

Tom Pittenger

unread,
Nov 19, 2015, 12:24:07 PM11/19/15
to drones-discuss
I've tried the Vagrant process 3 times over the past year on my system and a friends' and *never* got it working. Many other people have so I'm not sure what I'm missing. I use VirtualBox.

Bill Bonney

unread,
Nov 19, 2015, 1:31:22 PM11/19/15
to drones-discuss
I'd recommend just creating a Linux VM using virtual box and follow the linux setup instructions. (The Vagrant script might need some maintenance to work)

john...@gmail.com

unread,
Nov 20, 2015, 6:09:19 AM11/20/15
to drones-discuss
Some time ago, there was talk about having an 'offical' Linux VM image for download, with all the dev tools and build scripts set up and ready to go. But it never got past the discussion stage.

Bimo

unread,
Nov 25, 2015, 8:50:27 PM11/25/15
to drones-discuss
I am making slow progress.
I want to share some findings.

The current instructions don't include python-dev

+SITL on Windows in a VMWare VM (Manual Setup)
sudo apt-get install python-dev
------------------------------------------------------
The current path stated on page is different from current sw dir names

+Setting up SITL on Linux
Load a mission
wp load ../Tools/autotest/ArduPlane-Missions/CMAC-toff-loop.txt


On Wednesday, November 18, 2015 at 8:15:08 PM UTC-5, Randy Mackay wrote:
...

Chuk Rhodes

unread,
Nov 26, 2015, 2:09:38 AM11/26/15
to drones-discuss
I got it working on Windows under MSYS2, it wasn't an easy config, and it required adding "-lwinmm" in board_native.mk, but I was able to get MP to connect to it. MAVproxy almost runs, but not quite fully.

The basics are MSYS2 install, follow their instructions for updating.
prereqs are installed in MSYS shell with pacman -S autoconf automake mingw-w64-x86_64-ccache gcc git libtool make gawk libexpat-devel procps
build and run from mingw32 shell.

For MAVproxy, I added these (from MSYS shell) pacman -S python2 mingw-w64-x86_64-python2-pip mingw-w64-x86_64-python2-numpy mingw-w64-x86_64-python2-pyparsing mingw-w64-x86_64-wxPython
Then in mingw32 shell
export PATH=$PATH:/mingw64/bin:$HOME/ardupilot/Tools/autotest
pip install MAVproxy

It's close, there might just be another package missing.

Ubuntu in Hyper-V worked fine for me, once I told it to startup with enough RAM (4G).

Hamish Willee

unread,
Nov 26, 2015, 7:16:16 PM11/26/15
to drones-discuss
Bino

Several people have reported similar errors. We resolved one of these, and it was because they had not selected one of the cygwin dependencies correctly (although they thought they had). I tested these instructions a couple of weeks ago on fresh Windows 10 installations and they worked fine. Not sure what to advise other than "being very careful to select the dependencies and make sure that you don't have "skip" selected for any of them.

Tom, I tested the vagrant instructions earlier in the year a number of times and they worked well (on Windows 8.1). That said, I haven't tried it again since we moved from pde files - I'll give it another go. 

Cheers
Hamish

Hamish Willee

unread,
Nov 27, 2015, 4:03:27 AM11/27/15
to drones-discuss
I tried the Vagrant SITL solution. It builds, but annoyingly it appears that SITL doesn't properly start - just sits there, no heartbeat (this is off current master):

Starting up at CMAC : -35.363261,149.165230,584,353
 --model + --speedup=1vagrant/ArduCopter/ArduCopter.elf -S -I0 --home -35.363261,149.165230,584,353
Window access not found, logging to /tmp/ardupilot.log
Connect tcp:127.0.0.1:5760 source_system=255
Log Directory:
Telemetry log: mav.tlog
MAV> Waiting for heartbeat from tcp:127.0.0.1:5760
MAV>

Is there any way of working out what SITL might be "doing"? I tried adding new outputs but obviously if there are no "outputs" this won't do much good.




--
You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/3u6aK7__Z2A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages