You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/start.rst
+18-27Lines changed: 18 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ Getting Started
9
9
Dependencies
10
10
============
11
11
12
-
PFNET for Python has the following dependencies:
12
+
The PFNET C library has the following optional dependencies:
13
13
14
-
* `Graphviz`_ (libgvc >= 2.38) (optional)
15
-
* Raw parser (libraw_parser >= 1.2.1) (optional)
14
+
* `Graphviz`_ (libgvc >= 2.38)
15
+
* Raw parser (libraw_parser >= 1.2.2)
16
16
17
17
.. _start_download:
18
18
@@ -21,42 +21,33 @@ Download
21
21
22
22
The latest version of PFNET can be obtained from `<https://github.com/ttinoco/PFNET>`_.
23
23
24
-
.. _start_linux:
24
+
.. _start_install:
25
25
26
-
Build Instructions (Linux)
27
-
==========================
26
+
Installation (Linux and Mac OS X)
27
+
=================================
28
28
29
-
Building PFNET in Linux requires typing the command ``make`` in the root directory of the library, say ``$PFNET``. This creates the shared library ``libpfnet.so`` in the ``$PFNET/lib`` directory.
29
+
Installing PFNET requires typing the following commands in the root directory of the library::
30
30
31
-
To build the library without visualization capabilities (no ``libgvc`` dependency), ``make`` should be passed the argument ``NO_GRAPHVIZ=1``. Otherwise, the compiler needs to find the header ``graphviz/gvc.h``, and the linker needs to find ``libgvc.so`` (to build the tests). If `Graphviz`_ has been installed in some non-standard directory, then ``$GRAPHVIZ`` should be set to that directory so that the compiler can find the above header in ``$GRAPHVIZ/include``. The directory ``$GRAPHVIZ/lib`` can be added to ``$LD_LIBRARY_PATH`` so that the linker can find the above shared library.
31
+
./autogen.sh
32
+
./configure
33
+
make
34
+
make check
35
+
sudo make install
32
36
33
-
To build the library without raw parsing capabilities (no ``libraw_parser`` dependency), ``make`` should be passed the argument ``NO_RAW_PARSER=1``.
37
+
If raw parser is available, the environment variable ``RAW_PARSER`` should point to the root directory of that library.
34
38
35
-
.. _start_linux_docs:
39
+
.. _start_docs:
36
40
37
41
Documentation
38
-
-------------
42
+
=============
39
43
40
-
Building this documentation for PFNET requires `Sphinx <http://www.sphinx-doc.org/en/stable/>`_ and `Doxygen <http://www.stack.nl/~dimitri/doxygen/>`_. The environment variable ``$PFNET_DOCS`` must be set to the location where the documentation will be moved to once it is built. After this environment variable has been set, run the command ``make docs`` from the roof directory of PFNET.
41
-
42
-
.. _start_mac:
43
-
44
-
Build Instructions (Mac OS X)
45
-
=============================
46
-
47
-
In Mac OS X, PFNET can be easily installed using `Homebrew <http://brew.sh>`_ with::
Since Homebrew does currently not support external dependencies, PFNET cannot be built with raw parsing capabilities with this method. Homebrew will install `Graphviz`_ as a dependency unless the option ``--without-graphviz`` is used.
52
-
53
-
If building from source directly, the instructions for Linux should suffice but substitute ``$DYLD_FALLBACK_LIBRARY_PATH`` for ``$LD_LIBRARY_PATH``.
54
-
55
-
.. _Graphviz: http://www.graphviz.org/
44
+
Building this documentation locally requires `Sphinx <http://www.sphinx-doc.org/en/stable/>`_, `Doxygen <http://www.stack.nl/~dimitri/doxygen/>`_, and typing the command ``make html`` inside the ``docs`` directory. The environment variable ``PFNET_DOCS`` must be defined and should point to the output directory for the html files. The source code documentation will be placed in the directory ``PFNET_DOCS/c``.
0 commit comments