README.md 1.92 KB
Newer Older
1
## Dependencies
Martin Beseda's avatar
Martin Beseda committed
2 3 4 5
- [Git](https://git-scm.com/)
- [cmake](https://cmake.org/) (version >= 3.0)
- [Boost](https://www.boost.org/)
- [exprtk](http://www.partow.net/programming/exprtk/)
6

Martin Beseda's avatar
Martin Beseda committed
7 8 9
#### Linux
- `make`
- C++ compiler
10 11

#### Windows
Martin Beseda's avatar
Martin Beseda committed
12
- [Visual Studio](https://visualstudio.microsoft.com/) (install together with `cl` and `SDK`!)
13

Martin Beseda's avatar
Martin Beseda committed
14 15
## Compilation
- Clone the repository to your PC
16 17

    ```
Martin Beseda's avatar
Martin Beseda committed
18
    git clone git@code.it4i.cz:moldyn/lib4neuro.git
19
    ```
Martin Beseda's avatar
Martin Beseda committed
20
- Clone the repository of `exprtk`
Martin Beseda's avatar
Martin Beseda committed
21

Martin Beseda's avatar
Martin Beseda committed
22
    ```
23
    git clone https://github.com/ArashPartow/exprtk.git
Martin Beseda's avatar
Martin Beseda committed
24
    ```
Martin Beseda's avatar
Martin Beseda committed
25

Martin Beseda's avatar
Martin Beseda committed
26 27
#### Linux (Debian-based)
- Install package `libboost-all-dev`
Martin Beseda's avatar
Martin Beseda committed
28

Martin Beseda's avatar
Martin Beseda committed
29 30 31
    ```
    sudo apt-get install libboost-all-dev
    ```
32
    
33
- Set `EXPRTK_INCLUDE_DIR` environmental variable to the path of your `exprtk` folder
34 35 36 37 38
    
    ``` 
    export EXPRTK_INCLUDE_DIR="path to the exprtk folder"
    ```
    
39 40 41 42 43
- Go to the `lib4Neuro` folder

- In the file `build.sh`  set correctly variables `BUILD_TYPE` and `CXX_COMPILER`

- Run
Martin Beseda's avatar
Martin Beseda committed
44 45 46 47

    ```
    ./build.sh
    ```
Martin Beseda's avatar
Martin Beseda committed
48 49

#### Windows
50 51 52
- Download `Boost` from [this link](https://www.boost.org/users/download/) and extract the archive
- Run the Visual Studio Command Prompt (Start Menu -> Visual Studio *** -> Developer Command Prompt)
  and go to the folder with `Boost`
Martin Beseda's avatar
Martin Beseda committed
53 54

    ```
55
    cd "folder with Boost"
Martin Beseda's avatar
Martin Beseda committed
56 57 58
    bootstrap.bat
    b2.exe --build-type=complete
    ```
59
- Set `BOOST_ROOT` environmental variable to the path of your folder containing `Boost`
Martin Beseda's avatar
Martin Beseda committed
60

61 62 63 64 65
        1. In Search, search for and then select: System (Control Panel)
        2. Click the Advanced system settings link.
        3. Click Environment Variables.
        4. In the New System Variable window, specify the value of the `BOOST_ROOT` environment variable

66 67 68 69 70
- Set `EXPRTK_INCLUDE_DIR` environmental variable to the path of your `exprtk` folder

- Go to the `lib4neuro` folder

- In the file `build.bat`  set correctly variables `BUILD_TYPE`, `CXX_COMPILER` and `C_COMPILER`
Martin Beseda's avatar
Martin Beseda committed
71

72
- Run
Martin Beseda's avatar
Martin Beseda committed
73 74 75 76

    ```
    build.bat
    ```
Martin Beseda's avatar
Martin Beseda committed
77