source: uKadecot/trunk/srecord/Readme-Windows.txt@ 101

Last change on this file since 101 was 101, checked in by coas-nagasima, 9 years ago

TOPPERS/uKadecotのソースコードを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/plain
File size: 2.8 KB
Line 
1If you just want to use the srecord tools, you can stop reading here.
2
3Following are instructions how I (Jens Heilig) built the srecord tools on Windows:
4
5How to build srecord 1.62 tools on Windows:
6
7PREREQUISITES:
8==============
91) MinGW
10Download and install mingw-get-inst (I used version 20110530) from http://mingw.sourceforge.net/ Select C++ and MinGW Developer Toolkit during installation.
11
12Start MinGW Shell from the Windows Start Menu.
13Install additional packages by entering following commands at the prompt:
14(the "$"-sign indicates the shell-prompt. Do not type it)
15$ mingw-get.exe install msys-groff-ext
16$ mingw-get.exe install gettext
17
182) Boost Library
19Download and install the Boost library from here: http://ascend4.org/Binary_installer_for_Boost_on_MinGW
20Copy the newly installed files to you MinGW directory:
21$ cp <boost-install-dir>/lib/* /lib/
22$ cp -r <boost-install-dir>/include/boost-1_41/boost /include/
23
24
253) libgcrpyt library
26Download libgcrypt-1.5.0.tar.bz2 and libgpg-error-1.10.tar.bz2 (newer versions should also work) from http://www.gnupg.org/download/index.en.html
27cd to the directory where the two downloaded files are (make sure the path to this directory does not contain spaces)
28$ tar jxfv libgpg-error-1.10.tar.bz2
29$ cd libgpg-error-1.10
30$ ./configure --disable-shared --enable-static && make && make install
31(the previous step might hang when converting from ISO-8859-2 to UTF-8 late in the build process. Press ctrl-c and proceed)
32$ cd ..
33$ tar libgcrypt-1.5.0.tar.bz2
34$ cd libgcrypt
35$ ./configure --disable-shared --enable-static && make && make install
36
37You now have all the prerequisites required to build the srecord tools. Let's proceed.
38
39
40BUILDING SRECORD TOOLS
41======================
42cd to the directory where you unpacked the srecord source code.
43
44unfortunately, you need to edit the "configure" script. I have not found a way around this:
45Open the file "configure" in a text editor which preserves Unix line endings!
46Change line 4171 from this:
47LIBS="-lgcrypt $LIBS"
48to this:
49LIBS="-lgcrypt -lgpg-error $LIBS"
50
51Save the file (preserving Unix line endings!). Now we can start the actual build process:
52
53Start configure for srecord:
54$ CPPFLAGS="-static -I/include -I/usr/local/include" LDFLAGS="-L/lib -L/usr/local/lib" CC='gcc -static-libgcc' CXX='g++ -static-libgcc -static-libstdc++' ./configure
55
56After configure has run successfully, start the build process:
57$ make
58
59After successful build process, run the tests:
60$ make -i sure
61
62All tests should succeed.
63
64Next, reduce the size of the built programs by removing debugging information:
65$ cd bin
66$ strip *.exe
67
68Finally, move srec_cat.exe, srec_info.exe and srec_cmp.exe from the bin directory to where you want them, you can then delete everything else in the bin-directory.
69
70You should now have working srecord tools!
71
72Good Luck!
73Jens Heilig, 2013-06-06
Note: See TracBrowser for help on using the repository browser.