Skip to content

Commit

Permalink
Updated readme, and added warning for native win32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed May 31, 2016
1 parent 12e3ee3 commit 28ae225
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Readme.md
Expand Up @@ -9,7 +9,14 @@ Therefore, the resulting binaries may differ significantly from upstream, you sh

### Building

Setup has been done on partially set up development machines. If, trying to compile on your machine, you find any package missing from the following list, please open an issue at once! We all can't afford wasting time on setup :)
Just run:

```
./package-avrdude.bash
```

Setup has been done on partially set up development machines.
If you find any package missing from the following list, please open an issue at once!

#### Debian requirements

Expand All @@ -31,8 +38,26 @@ sudo port install gpatch +universal
sudo port install libusb +universal
```

#### Windows cross-compile from Linux requirements

```bash
sudo apt-get install gcc-mingw-w64-i686
```

When building you must set the env var `CROSS_COMPILE` to `mingw` for example:

```
CROSS_COMPILE=mingw ./package_avrdude.bash
```

cross compile with mingw has been tested on Ubuntu 14.04 (mingw-w64 4.8), different versions of mingw may behave differently and fail to build.

#### Windows requirements

**WARNING: the script for native Cygwin or Mingw builds has been started and abandoned in favor of cross
compile with mingw (see section above). Please consider this part of the build script as a best effort
bonus (it may work as it may, very probably, not work).**

You need to install Cygwin: http://www.cygwin.com/. Once you have run `setup-x86.exe`, use the `Search` text field to filter and select for installation the following packages:

- git
Expand Down
5 changes: 5 additions & 0 deletions package-avrdude.bash
Expand Up @@ -44,6 +44,11 @@ elif [[ $OS == "GNU/Linux" ]] ; then

elif [[ $OS == "Msys" || $OS == "Cygwin" ]] ; then

echo *************************************************************
echo WARNING: Build on native Cygwin or Msys has been discontinued
echo you may experience build failure or weird behaviour
echo *************************************************************

export PATH=$PATH:/c/MinGW/bin/:/c/cygwin/bin/
export CC="mingw32-gcc -m32"
export CXX="mingw32-g++ -m32"
Expand Down

0 comments on commit 28ae225

Please sign in to comment.