-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.ubuntu.txt
More file actions
71 lines (39 loc) · 1.83 KB
/
README.ubuntu.txt
File metadata and controls
71 lines (39 loc) · 1.83 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
Fost -- Core libraries
Copyright 1995-2013 Felspar Co. Ltd.
http://support.felspar.com/
This README is for users of Ubuntu 10.04 or later.
==Step 1: Installing dependencies==
You will need a few libraries and tools.
For lucid:
apt-get install g++ libbz2-dev libssl-dev python-dev uuid-dev boost-build libboost-all-dev
For precise:
apt-get install g++ libbz2-dev libssl-dev python-dev uuid-dev libboost-all-dev
==Step 2: Checking out Fost==
You should create a new clean directory and into that dirctory you check out the Fost and Boost libraries from the Felspar repository. The directory should look like this:
parent
|-Boost
|-fost-base
|-README.karmic.txt (location of this file)
Something like the below will do this for you:
mkdir fost
cd fost
svn co http://svn.felspar.com/external/Boost
svn co http://svn.felspar.com/public/fost-base/stable fost-base
==Step 3: Telling Fost which version of Boost to use==
Boost is already installed on the machine from step, but we have to configure Fost so it knows to use it.
Boost/install karmic
==Step 4: Building fost-base==
We can now build the core library examples.
fost-base/compile examples
==Step 5: Running the examples==
Because the example programs and libraries have not been installed to anywhere we must set the LD_LIBRARY_PATH to point between the executable and library locations.
export LD_LIBRARY_PATH=`pwd`/dist/lib
We can now run various examples.
dist/bin/hello-d
dist/bin/fizzbuzz-d
dist/bin/fprettyjson-d fost-base/Examples/fprettyjson/sample.json
Each of the programs has a -d at the end of their file name because they are debug builds. For a release build try the following:
fost-base/compile examples release
dist/bin/hello
dist/bin/fizzbuzz
dist/bin/fprettyjson fost-base/Examples/fprettyjson/sample.json