make uart_pty threadsafe
[simavr] / README.mingw
1 ENVIRONMENT
2 ===========
3
4 Microsoft SDK
5 -------------
6 Make sure that you have installed the ws2_32.lib, which is part of the Microsoft SDK.
7
8 MinGW
9 -----
10 http://www.mingw.org/
11 goto Downloads
12 download and install mingw_get_inst-?????
13 Select
14         C Compiler
15         C++ Compiler
16         MSYS Basic System
17
18 Set the MINGW_HOME environment variable.
19 Add %MINGW_HOME%\msys\1.0\bin;%MINGW_HOME%\bin; to your PATH
20 Open a command shell and make sure that gcc is working: gcc \96v
21
22 LibELF
23 ------
24 Build and install libelf with mingw, or download the pre-compiled patch and copy it into your mingw root folder.
25 https://gitorious.org/mingw-libs-for-simavr/mingw-libs-for-simavr/trees/master
26
27 FreeGLUT
28 --------
29 Build and install freeglut with mingw, or download the pre-compiled patch and copy it into your mingw root folder.
30 https://gitorious.org/mingw-libs-for-simavr/mingw-libs-for-simavr/trees/master
31
32
33 WinAVR
34 -----------
35 If you have not already, download and install WinAVR.
36 http://winavr.sourceforge.net/
37 (This tutorial assumes you are using WinAVR-20100110.)
38 Make sure that AVR32_HOME is set correctly and pointing do your WinAVR installation directory.
39 %AVR32_HOME%\bin\gcc \96v
40 In the output you see that the target is avr, while the target of the host gcc is mingw32.
41
42
43 INSTALL simavr
44 ===============
45
46 get simavr Sources
47 -------------------
48 Download the patched simavr sources of the mingw branch from:
49         https://github.com/the-real-orca/simavr/tree/mingw
50         and extract the sources to your development directory
51 - or - clone the GIT repository
52         https://github.com/the-real-orca/simavr.git 
53         and switch to the mingw branch
54
55
56 compile simavr
57 ---------------
58
59 Open a command window and change to your simavr directory:
60       make all
61 - or -
62       make \96r all       (this is a bit faster)
63
64 TEST
65 ====
66
67 make \96C tests run_tests
68
69
70 INSTALL
71 =======
72
73 make install DESTDIR=C:\path-to-your-development-directory
74
75 It will create the following sub-directories and put the according simavr files into them.
76  - bin
77  - lib
78  - include