-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
executable file
·203 lines (160 loc) · 6.02 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
_ _ _ ____ _ _ _
| | | | _____ __ | |_ ___ | __ ) _ _(_) | __| |
| |_| |/ _ \ \ /\ / / | __/ _ \ | _ \| | | | | |/ _` |
| _ | (_) \ V V / | || (_) | | |_) | |_| | | | (_| |
|_| |_|\___/ \_/\_/ \__\___/ |____/ \__,_|_|_|\__,_|
_ _ _ _ _ _
| (_) |__ | |_ ___ _ __ _ __ ___ _ __ | |_ (_)_ __
| | | '_ \| __/ _ \| '__| '__/ _ \ '_ \| __| | | '_ \
| | | |_) | || (_) | | | | | __/ | | | |_ | | | | |
|_|_|_.__/ \__\___/|_| |_| \___|_| |_|\__| |_|_| |_|
__ ___ _ ____ _ _ _
\ \ / (_)___ _ _ __ _| | / ___|| |_ _ _ __| (_) ___
\ \ / /| / __| | | |/ _` | | \___ \| __| | | |/ _` | |/ _ \
\ V / | \__ \ |_| | (_| | | ___) | |_| |_| | (_| | | (_) |
\_/ |_|___/\__,_|\__,_|_| |____/ \__|\__,_|\__,_|_|\___/
for Fun and Profit
==Links==
http://www.rasterbar.com/products/libtorrent/building.html
Do section building with BBv2
http://www.rasterbar.com/products/libtorrent/vs2005_build_notes.html
Out of date
http://code.rasterbar.com/libtorrent/wiki/Building
Down
==Windows==
http://windowsupdate.microsoft.com
Windows XP SP3 and Windows Update
Visual Studio 2008 and SP1
http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en
Windows SDK Version 7, published July 24 2009
==Perl==
http://www.activestate.com/activeperl
Download a file like ActivePerl-5.12.2.1203-MSWin32-x86-294165.msi
Install with all the defaults
==Place==
http://www.openssl.org/
Download a file like openssl-1.0.0c.tar.gz
Unzip to path like:
C:\openssl\Makefile.org
http://www.boost.org/
Download a file like boost_1_45_0.zip
Unzip to path like:
C:\boost\boost-build.jam
https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/tags
Find the highest numbered tag
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/tags/libtorrent-0_15_4 libtorrent
Move to path like:
C:\libtorrent\project-root.jam
==Make bjam==
Visual Studio 2008 Command Prompt
cd C:\boost\tools\build\v2\engine\src
build.bat
Creates the file:
C:\boost\tools\build\v2\engine\src\bin.ntx86\bjam.exe
Copy bjam.exe to the build folder, alongside the v2 folder:
C:\boost\tools\build\bjam.exe
Open in Notepad:
C:\boost\tools\build\v2\user-config.jam
Uncomment the line using msvc ;
==Build libraries==
Visual Studio 2008 Command Prompt
set PATH=%PATH%;C:\boost\tools\build
Build OpenSSL
cd C:\openssl
perl Configure --openssldir=C:/openssl VC-WIN32
ms\do_ms.bat
nmake -f ms\nt.mak
nmake -f ms\nt.mak test
nmake -f ms\nt.mak install
Build boost
cd C:\boost
bjam --toolset=msvc link=static runtime-link=static variant=debug
bjam --toolset=msvc link=static runtime-link=static variant=release
Build libtorrent
cd C:\libtorrent
set BOOST_ROOT=C:\boost
set INCLUDE=%INCLUDE%;C:\openssl\include
set LIB=%LIB%;C:\openssl\out32
bjam --without-python --toolset=msvc boost=source link=static runtime-link=static character-set=unicode variant=debug
bjam --without-python --toolset=msvc boost=source link=static runtime-link=static character-set=unicode variant=release
==Move libtorrent.lib==
Move from:
C:\libtorrent\bin\msvc-9.0\debug\boost-source\link-static\runtime-link-static\threading-multi\libtorrent.lib
C:\libtorrent\bin\msvc-9.0\release\boost-source\link-static\runtime-link-static\threading-multi\libtorrent.lib
Rename to:
C:\libtorrent\lib\libtorrent-debug.lib
C:\libtorrent\lib\libtorrent-release.lib
==Include and lib==
Tools, Options, Projects and Solutions, VC++ Directories, Include files
C:\libtorrent\include
C:\libtorrent\zlib
C:\boost
C:\openssl\include
Library files
C:\libtorrent\lib
C:\boost\stage\lib
C:\openssl\lib
==Code==
git clone [email protected]:zootella/ftorrent.git
==Or, make a new project==
File, New, Project
Project types: Visual C++, Win32, Win32 Project
Name: ftorrent
Location: C:\Documents
Uncheck Create directory for solution
OK
Application Settings, check Empty Project
Finish
Place files in the ftorrent folder and then drag them into Visual Studio
*.h
*.cpp
*.ico
ftorrent.rc
ftorrent.exe.manifest
==Or, start resources from scratch==
File, Add New Item
choose Resource File (.rc), enter name, Open
==Properties==
Project, Properties, Configuration Properties, Configuration: Debug | Release
General, Use of ATL: Not Using ATL
General, Character Set: Use Unicode Character Set
General, Whole Program Optimization: No Whole Program Optimization | Use Link Time Code Generation
C/C++, Optimization, Optimization: Disabled (/Od) | Minimize Size (/O1)
C/C++, Code Generation, Enable Minimal Rebuild: Yes (/Gm) | No
C/C++, Code Generation, Enable C++ Exceptions: Yes With SEH Exceptions (/EHa)
C/C++, Code Generation, Basic Runtime Checks: Both | Default
C/C++, Code Generation, Runtime Library: Multi-threaded Debug (/MTd) | Multi-threaded (/MT)
C/C++, Precompiled Headers, Create/Use Precompiled Header: Not Using Precompiled Headers
Linker, Manifest File, Generate Manifest: No
Manifest Tool, Input and Output, Embed Manifest: No
Project, Properties, Configuration Properties, C/C++, Preprocessor, Preprocessor Definitions, Debug/Release
WIN32
_DEBUG/NDEBUG
_WINDOWS
_WIN32_WINNT=0x0501
BOOST_ALL_NO_LIB
BOOST_THREAD_USE_LIB
_FILE_OFFSET_BITS=64
WITH_SHIPPED_GEOIP_H
Project, Properties, Configuration Properties, Linker, Input, Additional Dependencies, Debug
comctl32.lib
ssleay32.lib
libeay32.lib
libboost_date_time-vc90-mt-sgd.lib
libboost_filesystem-vc90-mt-sgd.lib
libboost_system-vc90-mt-sgd.lib
libboost_thread-vc90-mt-sgd.lib
libtorrent-debug.lib
wininet.lib
Release
comctl32.lib
ssleay32.lib
libeay32.lib
libboost_date_time-vc90-mt-s.lib
libboost_filesystem-vc90-mt-s.lib
libboost_system-vc90-mt-s.lib
libboost_thread-vc90-mt-s.lib
libtorrent-release.lib
wininet.lib
See the whole command line at C/C++, Command Line and Linker, Command Line
==The end==