... | ... | @@ -22,3 +22,50 @@ pacman -S tar |
|
|
pacman -S lzip
|
|
|
```
|
|
|
|
|
|
2. Clone the repo.
|
|
|
|
|
|
3. Download submodules:
|
|
|
```
|
|
|
git submodule sync --recursive
|
|
|
git submodule update --init --recursive
|
|
|
```
|
|
|
4. Create a directory where the binaries will be built. The typical choice is a subfolder "build". In this case, the commands are:
|
|
|
```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
|
```
|
|
|
Note that cmake will check for any system dependencies that are needed for the build process.
|
|
|
|
|
|
5. If you want to install NTL/GMP, install these libraries. Note that tcmalloc is not supported for Windows.
|
|
|
|
|
|
6. Build PALISADE by running the following command (this will take few minutes; using the -j<threads> make command-line flag is suggested to speed up the build)
|
|
|
```
|
|
|
make
|
|
|
```
|
|
|
|
|
|
7. Install PALISADE in a system directory (if desired or for production purposes)
|
|
|
```
|
|
|
make install
|
|
|
```
|
|
|
|
|
|
You need to run MinGW64 as an administrator unless you are specifying some other install location. You can change the install location by running
|
|
|
"cmake -DCMAKE_INSTALL_PREFIX=/your/path ..".
|
|
|
|
|
|
To run MinGW64 as an administrator, open Task Manager, go to File -> Run New Task, select the location of the executable for MinGW64, and check the box "Create this task with administrative privileges".
|
|
|
|
|
|
Run unit tests to make sure all capabilities operate as expected
|
|
|
```
|
|
|
make testall
|
|
|
```
|
|
|
|
|
|
Run sample code to test, e.g.,
|
|
|
```
|
|
|
bin/demo/pke/demo-bfvrns
|
|
|
```
|
|
|
|
|
|
To remove the files built by make, you can execute
|
|
|
```
|
|
|
make clean
|
|
|
```
|
|
|
|