User Tools

Site Tools


doc:crazyflie:dev:env:windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:crazyflie:dev:env:windows [2016-06-30 12:51]
theseankelly [Option #2.5: Ubuntu on Bash on Windows]
doc:crazyflie:dev:env:windows [2021-06-24 16:54] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 ====== Windows Development Environment ====== ====== Windows Development Environment ======
 This tutorial will demonstrate how to set up a windows machine to develop, build, and deploy binaries for the crazyflie natively, without use of a VM. Some notes on the setup environment used to write this guide: This tutorial will demonstrate how to set up a windows machine to develop, build, and deploy binaries for the crazyflie natively, without use of a VM. Some notes on the setup environment used to write this guide:
Line 23: Line 26:
 Note: GIT isn't included in the MinGW packages. GIT for windows can be found at https://git-for-windows.github.io/ Note: GIT isn't included in the MinGW packages. GIT for windows can be found at https://git-for-windows.github.io/
  
-===== Option #2.5: Ubuntu on Bash on Windows ===== +As stated earlier, this guide was written using Cygwin. There may be a couple missing steps here and there if you want to go with MinGW, but nothing major. Please update the wiki if you choose MinGW and find anything missing! 
-Windows 10 supports (in beta) the ability to run an Ubuntu based bash shell natively, including apt-get and things you'd expect on normal Ubuntu. This is only a half-option for now: The main drawback is that hardware support (the crazyradio, for example) is not plumbed through to this shell, so you won't be able to flash, connect, or run the python tools which talk to hardware.+ 
 +===== Option #3: Ubuntu on Bash on Windows ===== 
 +Windows 10 supports (in beta) the ability to run an Ubuntu based bash shell natively, including apt-get and things you'd expect on normal Ubuntu.  
 + 
 +The main drawback is that hardware support (the crazyradio, for example) is not plumbed through to this shell, so you won't be able to flash, connect, or run the python tools which talk to hardware, but that's easily overcome using Conda for python scripts (see the python section below)
  
 Details here: https://msdn.microsoft.com/en-us/commandline/wsl/about Details here: https://msdn.microsoft.com/en-us/commandline/wsl/about
  
 ====== ARM Toolchain ====== ====== ARM Toolchain ======
-This is the toolchain required for building ARM projects (arm-none-eabi-gcc, etc). This isn't available as part of any of the linux environments, so it's recommended to download the version built for windows from here: https://launchpad.net/gcc-arm-embedded/+download+This is the toolchain required for building ARM projects (arm-none-eabi-gcc, etc). This isn't available as part of any of the linux environments, so it's recommended to download the version built for windows from here: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm
   *Change the default install location to something without spaces   *Change the default install location to something without spaces
   *Choose "add to path" so it can be invoked from cmd or cygwin.   *Choose "add to path" so it can be invoked from cmd or cygwin.
Line 47: Line 54:
 Install the latest from https://riverbankcomputing.com/software/pyqt/download Install the latest from https://riverbankcomputing.com/software/pyqt/download
  
 +Get the version for python 3.4. If your goal is simply to run the cfcflient can choose 'minimal' for the install, which only installs the runtime. 
 ====SDL2.0==== ====SDL2.0====
 Windows binaries for SDL2.0 are available here: https://www.libsdl.org/download-2.0.php Windows binaries for SDL2.0 are available here: https://www.libsdl.org/download-2.0.php
  
 Place the dll in the root of the crazyflie-clients-python folder you clone from git. Place the dll in the root of the crazyflie-clients-python folder you clone from git.
 +
 +Or, for a more global/permanent solution, drop the .dll in the system folder:
 +  * If you are on an x86 OS using x86 bits, put the .dll in c:\windows\system32
 +  * If you are on an amd64 OS using amd64 bits, put the .dll in c:\windows\system32
 +  * If you are on an amd64 OS using x86 bits, put the .dll in c:\windows\sysWOW64
 +  
  
 ====NumPy==== ====NumPy====
Line 68: Line 82:
 python3 -m pip install pyusb==1.0.0b2 pyzmq pysdl2 pyqtgraph python3 -m pip install pyusb==1.0.0b2 pyzmq pysdl2 pyqtgraph
 Python3 -m pip install <path to the NumPy .whl file you downloaded earlier</code> Python3 -m pip install <path to the NumPy .whl file you downloaded earlier</code>
 +
 +Note: In Cygwin, I've had trouble installing the NumPy .whl file from the /cygdrive mount point (aka /cygdrive/c/Users/username/Downloads/numpy.whl) and it complains about the file not existing. The solution to this is to copy the .whl file to somewhere in the Cygwin file system (like the home directory) and run the install command on that file instead.
  
 ======Setting up USB devices (CrazyRadio or Crazyflie via USB)====== ======Setting up USB devices (CrazyRadio or Crazyflie via USB)======
doc/crazyflie/dev/env/windows.1467283905.txt.gz · Last modified: 2016-06-30 12:51 by theseankelly