-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCOMPILE
More file actions
82 lines (56 loc) · 1.69 KB
/
COMPILE
File metadata and controls
82 lines (56 loc) · 1.69 KB
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
Compiling linux:
On a clean Ubuntu Server 11.10 64bit install.
Update the system:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential libtool autoconf pkg-config libssl-dev git
Checkout the code:
git clone git://github.com/keyz182/afs_proxy.git
cd afs_proxy
git submodule init
git submodule update
Compile BOINC:
cd libs/boinc
./_autosetup
./configure -C --enable-pkg-devel --enable-debug --enable-static
make -j4
Compile Poco:
cd ../poco
./configure --no-tests --no-samples --static --omit=Data/MySQL,Data/ODBC,Zip,Crypto,CppUnit,NetSSL_OpenSSL
make -j4
Compile afs_proxy
cd ../../afs_proxy
make
Compiling Windows:
Open up afs_proxy_x**.sln in Visual Studio 2010 (Or Visual Studio Express 2010, it's free).
Build.
Done.
Compiling OSX:
Unfortunately, it's a bit more difficult on OSX.
First, check out the code with the following commands:
git clone git://github.com/keyz182/afs_proxy.git
cd afs_proxy
git submodule init
git submodule update
Now, we need to download and build the BOINC dependencies:
cd libs
wget http://curl.haxx.se/download/curl-7.21.7.tar.gz
wget http://c-ares.haxx.se/download/c-ares-1.7.4.tar.gz
tar xvf curl-7.21.7.tar.gz
tar xvf c-ares-1.7.4.tar.gz
cd boinc/mac_build
source setupForBoinc.sh -clean
The script may complain that wxMac doesn't exist, this is fine.
Now, to compile BOINC, run:
source BuildMacBOINC.sh -lib
Now to build POCO.
cd ../../poco
./configure --no-tests --no-samples --static --omit=Data/MySQL,Data/ODBC,Zip,Crypto,CppUnit,NetSSL_OpenSSL
make -j4
Now, to build afs_proxy:
cd ../../afs_proxy
make
...
...
Done!
Go to bin/Darwin/{arch}/ and there should be two binaries, afs_proxy and afs_proxyd, the second being a debugging build.