|
1 | 1 | ////////////////////////////////////////////////////////////////////// |
2 | 2 | /// @page installation Installation |
3 | 3 | /// |
4 | | -/// We provide two ways to install libSBOL: Using the binary installers or building from the source. |
| 4 | +/// On Windows, installation through binary installers is the simplest way to obtain libSBOL. The installer contains pre-compiled libSBOL library. Simply install it to whichever path you want and use it. |
5 | 5 | /// |
6 | | -/// For help configuring a client project, see @ref visual_studio or @ref xcode. |
7 | | -/// |
8 | | -/// @section binary_installers Download Binary Installers |
9 | | -/// |
10 | 6 | /// [Get the latest binary installers](https://github.com/SynBioDex/libSBOL/releases/latest) |
11 | 7 | /// |
12 | | -/// Installation through binary installers is the simplest way to obtain libSBOL. |
13 | | -/// |
14 | | -/// Installer contains pre-compiled libSBOL library. Simply install it to whichever path you want and use it. |
15 | | -/// Currently, we only distribute binary installers for Windows and Mac OSX. |
| 8 | +/// On MacOSX, installation via the [Homebrew](http://brew.sh) package manager is easiest. Install libSBOL by running the following command in terminal: |
| 9 | +/// ``` |
| 10 | +/// brew install homebrew/science/libsbol |
| 11 | +/// ``` |
| 12 | +/// For help configuring a client project, see @ref visual_studio or @ref xcode. |
16 | 13 | /// |
| 14 | +/// Instructions for building from source are also provided below. |
17 | 15 | /// |
18 | 16 | /// @section build_from_source Build from Source |
19 | 17 | /// |
|
25 | 23 | /// * OPTIONAL: [Doxygen](http://www.stack.nl/~dimitri/doxygen/) for creating documentation |
26 | 24 | /// * OPTIONAL: [SWIG](http://www.swig.org/) for generating Python wrappers |
27 | 25 | /// |
28 | | -/// All the development has been done using "default native compilers" and MinGW on Windows or Unix makefiles on Mac/Linux. CMake can be used to generate projects for Eclipse, Visual Studio, XCode, etc. |
| 26 | +/// All the development has been done using "default native compilers" and Visual Studio on Windows or Unix makefiles on Mac/Linux. CMake can be used to generate projects for Eclipse, MinGW, XCode, etc. |
| 27 | +/// |
| 28 | +/// For more details on running libSBOL on Mac, check @ref xcode. For more details on running libSBOL on Windows using Visual Studio, check @ref visual_studio. |
29 | 29 | /// |
30 | | -/// If you don't want to use CMake to generate make files, following is an example command line for building the library on Mac: |
31 | | -/// ``` |
32 | | -/// $ mkdir release |
33 | | -/// $ cd release |
34 | | -/// $ g++ -c ../source/*.cpp -I../source -I/usr/local/include/raptor2 -std=c++11 |
35 | | -/// $ ar rcs libsbol.a *.o |
36 | | -/// ``` |
37 | | -/// For more details on running libSBOL on Mac, check @ref xcode. |
38 | 30 | ///  |
39 | 31 | /// |
40 | 32 | /// Windows |
41 | 33 | /// ------- |
42 | | -/// 1. [Install git for Windows](https://git-scm.com/) |
43 | | -/// |
44 | | -/// 2. [Install CMake for Windows](https://cmake.org/download/) |
| 34 | +/// 1. [Install git for Windows](https://git-scm.com/) and [CMake for Windows](https://cmake.org/download/). |
45 | 35 | /// |
46 | | -/// 3. Clone the repository by running the following command in git application or command console or get the stable source [here](https://github.com/SynBioDex/libSBOL/releases/latest): |
| 36 | +/// 2. Clone the repository by running the following command in git application or command console or get the stable source [here](https://github.com/SynBioDex/libSBOL/releases/latest): |
47 | 37 | /// ``` |
48 | 38 | /// git clone https://github.com/SynBioDex/libSBOL.git |
49 | 39 | /// ``` |
50 | 40 | /// This will create a libSBOL directory with the source. |
51 | 41 | /// |
52 | | -/// 4. Run CMake-gui. For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for (e.g. Visual Studio 14 2015 for 32 bit and Visual Studio 14 2015 Win64 for 64 bit). See the screenshot above. |
| 42 | +/// 3. Run CMake-gui. For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for (e.g. Visual Studio 14 2015 for 32 bit and Visual Studio 14 2015 Win64 for 64 bit). See the screenshot above. |
53 | 43 | /// |
54 | | -/// 5. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. Building Python wrapper requires SWIG. |
55 | | -/// |
56 | | -/// SBOL_BUILD_STATIC: Builds static archive. Enabled by default on Windows |
| 44 | +/// 4. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. Building Python wrapper requires SWIG. |
57 | 45 | /// |
58 | | -/// SBOL_BUILD_SHARED: Currently unavailable on Windows |
| 46 | +/// SBOL_BUILD_SHARED: Builds a dynamically linked library. The default is static. |
59 | 47 | /// |
60 | 48 | /// SBOL_BUILD_32: Build for 32-bit architectures |
61 | 49 | /// |
|
68 | 56 | /// If you want to try either 32 bit or 64 bit version of libSBOL, make sure you are using the right type of compiler. (Visual Studio 14 2015 vs Visual Studio 14 2015 Win64). |
69 | 57 | /// For Python bindings, you need SWIG and Python libraries. CMake will try to look it up for you, but if it cannot, specify the path manually. |
70 | 58 | /// |
71 | | -/// 6. Once it's all set, click Generate to create the compiler instructions. |
| 59 | +/// 5. Once it's all set, click Generate to create the compiler instructions. |
72 | 60 | /// |
73 | | -/// 7. The last step is to build the libraries. We recommend minGW or Visual Studio 2015 for this purpose. When building, make sure that you are building for 'release' target. |
| 61 | +/// 6. The last step is to build the libraries. We recommend Visual Studio 2015 or minGW for this purpose. When building, make sure that you are building for 'release' target. |
| 62 | +/// When using Visual Studio, open 'SBOL.sln' under 'build' folder. On the Solution Explorer to the right, right click INSTALL and press Build. The library will be located under the folder you specified in CMAKE_INSTALL_PREFIX. |
74 | 63 | /// When using minGW, first go to 'build' folder and run the compiler by using |
75 | 64 | /// ``` |
76 | 65 | /// mingw32-make |
|
80 | 69 | /// mingw32-make install |
81 | 70 | /// ``` |
82 | 71 | /// You will need administrator privileges for a make install. |
83 | | -/// When using Visual Studio, open 'SBOL.sln' under 'build' folder. On the Solution Explorer to the right, right click INSTALL and press Build. The library will be located under the folder you specified in CMAKE_INSTALL_PREFIX. |
84 | 72 | /// |
85 | | -/// 8. (optional) For Python bindings, copy and paste the sbol folder with Python bindings to your local Python site-packages folder. |
| 73 | +/// 7. (optional) For Python bindings, copy and paste the sbol folder with Python bindings to your local Python site-packages folder. |
86 | 74 | /// |
87 | 75 | /// |
88 | 76 | /// Mac |
|
95 | 83 | /// ``` |
96 | 84 | /// This will create a libSBOL directory with the source. |
97 | 85 | /// |
98 | | -/// 3. LibSBOL depends on the RaptorRDF library which can be obtained using the [Homebrew](brew.sh) package manager. Install Raptor by running the following command in terminal: |
| 86 | +/// 3. LibSBOL depends on the RaptorRDF library which can be obtained using the [Homebrew](http://brew.sh) package manager. Install Raptor by running the following command in terminal: |
99 | 87 | /// ``` |
100 | 88 | /// brew install raptor jsoncpp libxslt curl |
101 | 89 | /// ``` |
102 | 90 | /// Homebrew isn’t the only option. Other package installers are MacPorts and Fink. |
103 | 91 | /// |
104 | | -/// 4. You can use the cmake utility on Mac as well. One important difference about CMake on Mac versus Windows is that there is no GUI application. However, there is an interactive utility that runs in a terminal window. |
105 | | -/// ``` |
106 | | -/// ccmake . |
107 | | -/// ``` |
108 | | -/// |
109 | | -/// 5. For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for. |
| 92 | +/// 4. Run CMake-gui (type cmake in terminal or run cmake app). For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for. |
110 | 93 | /// |
111 | | -/// 6. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. By default on Mac OSX, the library will be installed to /usr/local/lib. Building Python wrapper requires SWIG. |
112 | | -/// |
113 | | -/// SBOL_BUILD_STATIC: Builds static archive. |
| 94 | +/// 5. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. By default on Mac OSX, the library will be installed to /usr/local/lib. Building Python wrapper requires SWIG. |
114 | 95 | /// |
115 | | -/// SBOL_BUILD_SHARED: Builds a dynamically linked library |
| 96 | +/// SBOL_BUILD_SHARED: Builds a dynamically linked library. The default is static. |
116 | 97 | /// |
117 | 98 | /// SBOL_BUILD_32: Build for 32-bit architectures. |
118 | 99 | /// |
|
124 | 105 | /// |
125 | 106 | /// For Python bindings, you need SWIG and Python libraries. CMake will try to look it up for you, but if it cannot, specify the path manually. |
126 | 107 | /// |
127 | | -/// 7. Once it's all set, click Generate to create the compiler instructions. |
| 108 | +/// 6. Once it's all set, click Generate to create the compiler instructions. |
128 | 109 | /// |
129 | | -/// 8. In terminal, go to the build directory and run: |
| 110 | +/// 7. In terminal, go to the build directory and run: |
130 | 111 | /// ``` |
131 | 112 | /// make |
132 | 113 | /// ``` |
|
154 | 135 | /// sudo apt-get install swig python-dev |
155 | 136 | /// ``` |
156 | 137 | /// |
157 | | -/// 3. (optional) To update the documentation you will need Doxygen. To install run: |
158 | | -/// ``` |
159 | | -/// sudo apt-get install doxygen-gui |
160 | | -/// ``` |
161 | | -/// |
162 | | -/// 4. Clone the repository by running the following command in terminal or get the stable source [here](https://github.com/SynBioDex/libSBOL/releases/latest). |
| 138 | +/// 3. Clone the repository by running the following command in terminal or get the stable source [here](https://github.com/SynBioDex/libSBOL/releases/latest). |
163 | 139 | /// ``` |
164 | 140 | /// git clone https://github.com/SynBioDex/libSBOL.git |
165 | 141 | /// ``` |
166 | 142 | /// This will create a libSBOL directory with the source. |
167 | 143 | /// |
168 | | -/// 5. Run CMake-gui (type cmake-gui or cmake-qt-gui in terminal). For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for. See the screenshot above. |
| 144 | +/// 4. Run CMake-gui (type cmake-gui or cmake-qt-gui in terminal). For "Where is the source code" enter the path to your libSBOL folder (not libSBOL/source folder). Choose build path by setting "Where to build the binaries". After setting the paths, click Configure, and choose what type of compiler you want to generate instructions for. See the screenshot above. |
169 | 145 | /// |
170 | | -/// 6. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. Building Python wrapper requires SWIG. |
171 | | -/// |
172 | | -/// SBOL_BUILD_STATIC: Builds static archive. |
| 146 | +/// 5. (optional) Set optional targets, e.g. examples, tests, manual, or Python wrapper. To add them check the appropriate boxes and then press Configure again. CMAKE_INSTALL_PREFIX is of particular interest, since it determines the path the output will be located. Building Python wrapper requires SWIG. |
173 | 147 | /// |
174 | | -/// SBOL_BUILD_SHARED: Builds a dynamically linked library |
| 148 | +/// SBOL_BUILD_SHARED: Builds a dynamically linked library. The default is static. |
175 | 149 | /// |
176 | 150 | /// SBOL_BUILD_32: Build for 32-bit architectures. |
177 | 151 | /// |
|
187 | 161 | /// sudo apt-get python3.5-dev |
188 | 162 | /// ``` |
189 | 163 | /// |
190 | | -/// 7. Once it's all set, click Generate to create the compiler instructions. |
| 164 | +/// 6. Once it's all set, click Generate to create the compiler instructions. |
191 | 165 | /// |
192 | | -/// 8. The last step is to build the libraries. In terminal, first go to 'build' folder and run the compiler by using: |
| 166 | +/// 7. The last step is to build the libraries. In terminal, first go to 'build' folder and run the compiler by using: |
193 | 167 | /// ``` |
194 | 168 | /// make install |
195 | 169 | /// ``` |
|
199 | 173 | /// ``` |
200 | 174 | /// to compile. The library will be located under the folder you specified in CMAKE_INSTALL_PREFIX. |
201 | 175 | /// |
202 | | -/// 9. (optional) For Python bindings, you might want to add the path of Python bindings as part of PYTHONPATH environment. To do so, run: |
| 176 | +/// 8. (optional) For Python bindings, you might want to add the path of Python bindings as part of PYTHONPATH environment. To do so, run: |
203 | 177 | /// ``` |
204 | 178 | /// export PYTHONPATH=$PYTHONPATH:/path-to-your-Python-bindings |
205 | 179 | /// ``` |
|
0 commit comments