forked from hpcc-systems/GraphControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
80 lines (64 loc) · 2.57 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
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
#### Get cmake, git, git-svn ####
# Linux
sudo apt-get install cmake git git-svn
# OSX
cmake: http://cmake.org/cmake/resources/software.html
git: http://git-scm.com/download
#### Get required libraries ####
# On Linux (Ubuntu 12.04)
sudo apt-get install libboost-dev libboost-system-dev libboost-thread-dev libboost-filesystem-dev libfreetype6-dev libexpat1-dev libgtk2.0-dev
# On OSX (Snow Leopard)
sudo port install boost freetype expat
# On Windows
TODO: How to get "externals folder" + how to install WIX
#### Create development folder ####
mkdir ~/git
cd ~/git
#### Get GraphControl Sources ####
git clone https://github.com/hpcc-systems/GraphControl.git
cd GraphControl
git checkout candidate-3.10.x
cd ..
#### Get Firebreath library ####
git clone https://github.com/GordonSmith/FireBreath.git
cd FireBreath
git checkout graphcontrol-3.10.x
cd ..
#### Get unrestricted (2.4) agg libraries ####
git clone https://github.com/GordonSmith/agg.git
cd agg
git checkout graphcontrol-3.10.x
cd ..
#### Get AT&T Graphviz libraries ####
wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.26.3.tar.gz
tar xf graphviz-2.26.3.tar.gz
rm graphviz-2.26.3.tar.gz
cd graphviz-2.26.3
./configure
cd ..
#### Create general build folder ####
mkdir build
cd build
#### Create build folder for GraphControl ####
mkdir GraphControl
cd GraphControl
#### Generate GraphControl make files ####
# On OSX and Linux
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_SYSTEM_BOOST=1 -DFB_PROJECTS_DIR:PATH=../GraphControl -DGRAPHVIZSRC_DIR=../../graphviz-2.26.3 -DAGGSRC_DIR=../../agg ../../FireBreath
# On Windows
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_SYSTEM_BOOST=1 -DFB_PROJECTS_DIR:PATH=../GraphControl -DGRAPHVIZSRC_DIR=../../graphviz-2.26.3 -DAGGSRC_DIR=../../agg -DEXTERNALS_DIRECTORY:PATH=c:/full/path/to/externals ../../FireBreath
#### Compile the sources ####
cmake --build . --config Release
#### To install the plugin ####
cmake --build . --config Release --target install
#### Create an install package ####
# On OSX and Linux
cmake --build . --config Release --target package
# On Windows
cmake --build . --config Release --target HPCCSystemsGraphViewControl\HPCCSystemsGraphViewControl_WiXInstall
cd ..
#### For debugging, create a symbolic link to the built plugin ####
# Linux
ln -s ~/git/build/GraphControl/bin/HPCCSystemsGraphViewControl/npHPCCSystemsGraphViewControl.so ~/.mozilla/plugins/npHPCCSystemsGraphViewControl.so
# OSX
ln -s ~/git/build/GraphControl/projects/HPCCSystemsGraphViewControl/HPCCSystemsGraphViewControl.plugin ~/Library/Internet\ Plug-Ins/HPCCSystemsGraphViewControl.plugin