Cygwin /eclipse build issues


For the performance boost, I’m now trying to build new ChibiOS based copters. While installation, I confronted some errors, although I’ve found myself able to compile everything successfully. There are some topics to discuss.

  1. not sure if package installation of cygwin is perfect
    I used the windows powershell script tool from the below location

At first I tried to install manually, not using the powershell script. Then, some of the package names in the wiki was outdated - for example, python2-libxml2 was not able, but there was python27-libxml2. I’ve slipped back to windows script since I wasn’t sure about the replacement.

  1. pip2 installation.

when using the script, pip2 was not available. So I’ve installed pip2 manually,
python -m ensurepip

  1. Only ardupilot master downloaded from git was usable.
    There are no instructions on wiki about ardupilot downloads, but I assume

git clone
cd ardupilot
git submodule init
git submodule update --recursive

must be followed. Other custom copies or previous versions was incompatible.

  1. the directory of the cygwin
    the install directory using powershell script was c:\cygwin, not c:\cygwin64.
    To use eclipse + cygwin, the location of the build should be
    c:\cygwin\bin\python2.7 waf
    not c:\cygwin64\bin\python2.7 waf

  2. build target problems
    The wiki does not state about build target options. Not sure, but you need to
    check ‘same as the target name’, and ‘use builder settings’ to ensure the program path.

If other ppl also have similar problems, then wiki should be updated.

Thanks for the feedback.

For points 1, 2 and 4 I’ve created a patch:

I’ll get around to 3 later in the week.

For 5, I don’t have an Eclipse install, so can’t help there. Hopefully someone else can…