{"action":"created","issue":{"url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/1411","repository_url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki","labels_url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/1411/comments","events_url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/1411/events","html_url":"https://github.com/ArduPilot/ardupilot_wiki/issues/1411","id":358881722,"node_id":"MDU6SXNzdWUzNTg4ODE3MjI=","number":1411,"title":"Setting up SITL on Windows seems a bit broken.","user":{"login":"hamishwillee","id":5368500,"node_id":"MDQ6VXNlcjUzNjg1MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5368500?v=4","gravatar_id":"","url":"https://api.github.com/users/hamishwillee","html_url":"https://github.com/hamishwillee","followers_url":"https://api.github.com/users/hamishwillee/followers","following_url":"https://api.github.com/users/hamishwillee/following{/other_user}","gists_url":"https://api.github.com/users/hamishwillee/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishwillee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishwillee/subscriptions","organizations_url":"https://api.github.com/users/hamishwillee/orgs","repos_url":"https://api.github.com/users/hamishwillee/repos","events_url":"https://api.github.com/users/hamishwillee/events{/privacy}","received_events_url":"https://api.github.com/users/hamishwillee/received_events","type":"User","site_admin":false},"labels":[{"id":244241344,"node_id":"MDU6TGFiZWwyNDQyNDEzNDQ=","url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/labels/docs","name":"docs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-11T04:26:00Z","updated_at":"2018-12-14T15:55:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Followed instructions in [Setting up SITL on Windows](http://ardupilot.org/dev/docs/sitl-native-on-windows.html) \r\n\r\nThe only change was that cygwin libraries for zip and unzip are no longer in Devel, so I selected the ones in \"Archive\".\r\n\r\n1. Is there a better selection than zip/unzip in Archived?\r\n\r\nIN [Download and make ardupilot](http://ardupilot.org/dev/docs/sitl-native-on-windows.html#download-and-make-ardupilot) the system appeared to build without error following:\r\n```\r\ncd ~/ardupilot/ArduCopter\r\nmake sitl -j4\r\n```\r\n2. Is this still needed? It looks like actual build is via WAF and done in the sim_vehicle stage? Should this change to something else?\r\n\r\nI then tried the following to run simulator. It failed. \r\n```\r\ncd ~/ardupilot/ArduCopter\r\nsim_vehicle.py --map --console\r\n```\r\n3. Got following errors. Advice?\r\n\r\n```\r\nhamis@DESKTOP-0DS1PI2 ~/ardupilot/ArduCopter\r\n$ sim_vehicle.py --map --console\r\nSIM_VEHICLE: Start\r\nSIM_VEHICLE: Killing tasks\r\nSIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)\r\nSIM_VEHICLE: WAF build\r\nSIM_VEHICLE: Configure waf\r\nSIM_VEHICLE: \"/home/hamis/ardupilot/modules/waf/waf-light\" \"configure\" \"--board\"                                                                                        \"sitl\"\r\nSetting top to                           : /home/hamis/ardupilot\r\nSetting out to                           : /home/hamis/ardupilot/build\r\nAutoconfiguration                        : enabled\r\nSetting board to                         : sitl\r\nChecking for 'g++' (C++ compiler)        : /usr/bin/g++\r\nChecking for 'gcc' (C compiler)          : /usr/bin/gcc\r\nChecking for c flags '-MMD'              : yes\r\nChecking for cxx flags '-MMD'            : yes\r\nChecking for need to link with librt     : not necessary\r\nChecking for HAVE_CMATH_ISFINITE         : yes\r\nChecking for HAVE_CMATH_ISINF            : yes\r\nChecking for HAVE_CMATH_ISNAN            : yes\r\nChecking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes\r\nChecking for NEED_CMATH_ISINF_STD_NAMESPACE    : yes\r\nChecking for NEED_CMATH_ISNAN_STD_NAMESPACE    : yes\r\nChecking for header endian.h                   : yes\r\nChecking for header byteswap.h                 : yes\r\nChecking for program 'python'                  : /usr/bin/python\r\nChecking for python version >= 2.7.0           : 2.7.14\r\nChecking for program 'python'                  : /usr/bin/python\r\nChecking for python version >= 2.7.0           : 2.7.14\r\nSource is git repository                       : yes\r\nUpdate submodules                              : yes\r\nChecking for program 'git'                     : /usr/bin/git\r\nChecking for program 'size'                    : /usr/bin/size\r\nBenchmarks                                     : disabled\r\nUnit tests                                     : enabled\r\nChecking for program 'rsync'                   : /usr/bin/rsync\r\n'configure' finished successfully (30.295s)\r\nSIM_VEHICLE: Building\r\nSIM_VEHICLE: \"/home/hamis/ardupilot/modules/waf/waf-light\" \"build\" \"--target\" \"b                                                                                       in/arducopter\"\r\nWaf: Entering directory `/home/hamis/ardupilot/build/sitl'\r\nWaf: Leaving directory `/home/hamis/ardupilot/build/sitl'\r\n\r\nBUILD SUMMARY\r\nBuild directory: /home/hamis/ardupilot/build/sitl\r\nTarget          Text     Data   BSS  Total\r\n--------------------------------------------\r\nbin/arducopter  2050669  55264  416  2106349\r\n\r\nBuild commands will be stored in build/sitl/compile_commands.json\r\n'build' finished successfully (20.612s)\r\nSIM_VEHICLE: Using defaults from (/home/hamis/ardupilot/Tools/autotest/default_p                                                                                       arams/copter.parm)\r\nSIM_VEHICLE: Run ArduCopter\r\nSIM_VEHICLE: \"/home/hamis/ardupilot/Tools/autotest/run_in_terminal_window.sh\" \"A                                                                                       rduCopter\" \"/home/hamis/ardupilot/build/sitl/bin/arducopter\" \"-S\" \"-I0\" \"--home\"                                                                                        \"-35.363261,149.165230,584,353\" \"--model\" \"+\" \"--speedup\" \"1\" \"--defaults\" \"/ho                                                                                       me/hamis/ardupilot/Tools/autotest/default_params/copter.parm\"\r\nSIM_VEHICLE: Run MavProxy\r\nSIM_VEHICLE: \"/usr/bin/cygstart\" \"-w\" \"/cygdrive/c/Program Files (x86)/MAVProxy/                                                                                       mavproxy.exe\" \"--master\" \"tcp:127.0.0.1:5760\" \"--sitl\" \"127.0.0.1:5501\" \"--out\"                                                                                        \"127.0.0.1:14550\" \"--out\" \"127.0.0.1:14551\" \"--map\" \"--console\"\r\nRiTW: Starting ArduCopter : /home/hamis/ardupilot/build/sitl/bin/arducopter -S -                                                                                       I0 --home -35.363261,149.165230,584,353 --model + --speedup 1 --defaults /home/h                                                                                       amis/ardupilot/Tools/autotest/default_params/copter.parm\r\nwhich: no osascript in (/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/J                                                                                       ava/javapath:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Progr                                                                                       am Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cyg                                                                                       drive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.                                                                                       0:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DA                                                                                       L:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cyg                                                                                       drive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cyg                                                                                       drive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/                                                                                       c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system                                                                                       32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/Sys                                                                                       tem32/WindowsPowerShell/v1.0:/cygdrive/d/Program Files (x86)/Calibre2:/cygdrive/                                                                                       d/Program Files/nodejs:/cygdrive/d/Program Files/Git/cmd:/cygdrive/d/Program Fil                                                                                       es (x86)/WinMerge:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/d/apps/HashiCor                                                                                       p/Vagrant/bin:/cygdrive/d/Program Files (x86)/MAVProxy:/cygdrive/d/Ruby25-x64/bi                                                                                       n:/cygdrive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32/Scripts:/cyg                                                                                       drive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32:/cygdrive/c/Users/                                                                                       hamis/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/hamis/AppData/Roamin                                                                                       g/npm:/usr/bin:/home/hamis/ardupilot/Tools/autotest)\r\nwhich: no xterm in (/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Java/                                                                                       javapath:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program F                                                                                       iles/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdriv                                                                                       e/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/c                                                                                       ygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c                                                                                       ygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdriv                                                                                       e/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdriv                                                                                       e/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Pr                                                                                       ogram Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system32:/                                                                                       cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System3                                                                                       2/WindowsPowerShell/v1.0:/cygdrive/d/Program Files (x86)/Calibre2:/cygdrive/d/Pr                                                                                       ogram Files/nodejs:/cygdrive/d/Program Files/Git/cmd:/cygdrive/d/Program Files (                                                                                       x86)/WinMerge:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/d/apps/HashiCorp/Va                                                                                       grant/bin:/cygdrive/d/Program Files (x86)/MAVProxy:/cygdrive/d/Ruby25-x64/bin:/c                                                                                       ygdrive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32/Scripts:/cygdriv                                                                                       e/d/Users/hamis/AppData/Local/Programs/Python/Python36-32:/cygdrive/c/Users/hami                                                                                       s/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/hamis/AppData/Roaming/np                                                                                       m:/usr/bin:/home/hamis/ardupilot/Tools/autotest)\r\nUnable to start 'C:\\Program Files (x86)\\MAVProxy\\mavproxy.exe': The specified fi                                                                                       le was not found.\r\nSIM_VEHICLE: MAVProxy exited\r\nSIM_VEHICLE: Killing tasks\r\nwhich: no konsole in (/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Jav                                                                                       a/javapath:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program                                                                                        Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdr                                                                                       ive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:                                                                                       /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:                                                                                       /cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdr                                                                                       ive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdr                                                                                       ive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/                                                                                       Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system32                                                                                       :/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/Syste                                                                                       m32/WindowsPowerShell/v1.0:/cygdrive/d/Program Files (x86)/Calibre2:/cygdrive/d/                                                                                       Program Files/nodejs:/cygdrive/d/Program Files/Git/cmd:/cygdrive/d/Program Files                                                                                        (x86)/WinMerge:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/d/apps/HashiCorp/                                                                                       Vagrant/bin:/cygdrive/d/Program Files (x86)/MAVProxy:/cygdrive/d/Ruby25-x64/bin:                                                                                       /cygdrive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32/Scripts:/cygdr                                                                                       ive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32:/cygdrive/c/Users/ha                                                                                       mis/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/hamis/AppData/Roaming/                                                                                       npm:/usr/bin:/home/hamis/ardupilot/Tools/autotest)\r\nwhich: no gnome-terminal in (/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Ora                                                                                       cle/Java/javapath:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/                                                                                       Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows                                                                                       :/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShel                                                                                       l/v1.0:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Componen                                                                                       ts/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL                                                                                       :/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT                                                                                       :/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygd                                                                                       rive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/WINDOWS/s                                                                                       ystem32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOW                                                                                       S/System32/WindowsPowerShell/v1.0:/cygdrive/d/Program Files (x86)/Calibre2:/cygd                                                                                       rive/d/Program Files/nodejs:/cygdrive/d/Program Files/Git/cmd:/cygdrive/d/Progra                                                                                       m Files (x86)/WinMerge:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/d/apps/Has                                                                                       hiCorp/Vagrant/bin:/cygdrive/d/Program Files (x86)/MAVProxy:/cygdrive/d/Ruby25-x                                                                                       64/bin:/cygdrive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32/Scripts                                                                                       :/cygdrive/d/Users/hamis/AppData/Local/Programs/Python/Python36-32:/cygdrive/c/U                                                                                       sers/hamis/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/hamis/AppData/R                                                                                       oaming/npm:/usr/bin:/home/hamis/ardupilot/Tools/autotest)\r\nRiTW: Window access not found, logging to /tmp/ArduCopter.log\r\n/home/hamis/ardupilot/Tools/autotest/run_in_terminal_window.sh: line 54:  9148 Killed                  \"$cmd\" $* &> \"$filename\" < /dev/null\r\n```\r\n\r\nNote that I can run mavproxy manually in the cygwin console."},"comment":{"url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/comments/447366754","html_url":"https://github.com/ArduPilot/ardupilot_wiki/issues/1411#issuecomment-447366754","issue_url":"https://api.github.com/repos/ArduPilot/ardupilot_wiki/issues/1411","id":447366754,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzM2Njc1NA==","user":{"login":"emd802","id":45879285,"node_id":"MDQ6VXNlcjQ1ODc5Mjg1","avatar_url":"https://avatars3.githubusercontent.com/u/45879285?v=4","gravatar_id":"","url":"https://api.github.com/users/emd802","html_url":"https://github.com/emd802","followers_url":"https://api.github.com/users/emd802/followers","following_url":"https://api.github.com/users/emd802/following{/other_user}","gists_url":"https://api.github.com/users/emd802/gists{/gist_id}","starred_url":"https://api.github.com/users/emd802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emd802/subscriptions","organizations_url":"https://api.github.com/users/emd802/orgs","repos_url":"https://api.github.com/users/emd802/repos","events_url":"https://api.github.com/users/emd802/events{/privacy}","received_events_url":"https://api.github.com/users/emd802/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T15:55:07Z","updated_at":"2018-12-14T15:55:07Z","author_association":"NONE","body":"I'm having the same issue.  Have not gotten it to run on Cygwin at all.  Getting the following message while attempting to set up the SITL:\r\n\r\nRiTW: Window access not found, logging to /tmp/ArduCopter.log\r\n/home/DobbsEM/ardupilot/Tools/autotest/run_in_terminal_window.sh: line 55:  6552 Segmentation fault      (core dumped) \"$cmd\" $* &> \"$filename\" < /dev/null\r\n\r\nAny info would be greatly appreciated!"}}
{"actor":{"display_login":"emd802"}}