This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
README
49 lines (40 loc) · 1.69 KB
/
README
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
SPDY-for-iPhone is a project to create an easy to use library for SPDY. A
pre-built binary is available in install/lib/libSPDY.a.
To use libSPDY.a:
1) Copy both install/lib/libSPDY.a and install/include/SPDY/SPDY.h into your
project.
2) Add the CFNetwork and SystemConfiguration frameworks to your list of
libraries to link against.
3) Follow the API in SPDY.h.
==========================================================================
Building libSPDY.a
==========================================================================
libSPDY.a has a few external dependencies. These are included as git
submodules and built using the venerable make. The external libraries are:
- spdylay
- openssl (Included until Apple releases iOS with an NPN enabled OpenSSL)
- zlib
The external libraries require the following programs to build:
- pkgconfig
- automake
- autoconf
- libtool
I typically install these programs through MacPorts (http://www.macports.org/).
Fink or homebrew should also have these packages.
To build build the external libraries and libSPDY.a run the following commands:
$ git submodule init
$ git submodule update
$ make
==========================================================================
Build errors
==========================================================================
- Syntax error in configure
- Problem:
./configure: line 15731: syntax error near unexpected token `0.20'
./configure: line 15731: `PKG_PROG_PKG_CONFIG(0.20)'
- Solution: Go back and install pkgconfig and delete spdylay/configure.
- Test button doesn't work in xcode 4.3.1
- Problem:
Lexical or Preprocessor issue
NS_AVAILABLE' macro redefined
- Solution: Run the tests with make check from the command line.