Skip to content

Commit 28ae225

Browse files
committed
Updated readme, and added warning for native win32 build
1 parent 12e3ee3 commit 28ae225

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

Readme.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ Therefore, the resulting binaries may differ significantly from upstream, you sh
99

1010
### Building
1111

12-
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 :)
12+
Just run:
13+
14+
```
15+
./package-avrdude.bash
16+
```
17+
18+
Setup has been done on partially set up development machines.
19+
If you find any package missing from the following list, please open an issue at once!
1320

1421
#### Debian requirements
1522

@@ -31,8 +38,26 @@ sudo port install gpatch +universal
3138
sudo port install libusb +universal
3239
```
3340

41+
#### Windows cross-compile from Linux requirements
42+
43+
```bash
44+
sudo apt-get install gcc-mingw-w64-i686
45+
```
46+
47+
When building you must set the env var `CROSS_COMPILE` to `mingw` for example:
48+
49+
```
50+
CROSS_COMPILE=mingw ./package_avrdude.bash
51+
```
52+
53+
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.
54+
3455
#### Windows requirements
3556

57+
**WARNING: the script for native Cygwin or Mingw builds has been started and abandoned in favor of cross
58+
compile with mingw (see section above). Please consider this part of the build script as a best effort
59+
bonus (it may work as it may, very probably, not work).**
60+
3661
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:
3762

3863
- git

package-avrdude.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ elif [[ $OS == "GNU/Linux" ]] ; then
4444

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

47+
echo *************************************************************
48+
echo WARNING: Build on native Cygwin or Msys has been discontinued
49+
echo you may experience build failure or weird behaviour
50+
echo *************************************************************
51+
4752
export PATH=$PATH:/c/MinGW/bin/:/c/cygwin/bin/
4853
export CC="mingw32-gcc -m32"
4954
export CXX="mingw32-g++ -m32"

0 commit comments

Comments
 (0)