... | @@ -57,17 +57,7 @@ mkdir build |
... | @@ -57,17 +57,7 @@ mkdir build |
|
Then run the following commands to compile the code:
|
|
Then run the following commands to compile the code:
|
|
```bash
|
|
```bash
|
|
cd build
|
|
cd build
|
|
cmake ..
|
|
cmake .. -DMETIS_DIR=/export/apps/os152/slim_libs -DCMAKE_CXX_FLAGS=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H
|
|
make -j4
|
|
|
|
```
|
|
|
|
If the compilation goes to 100% without any error message, congratutions ! You can now run SLIM on the geo servers by typing `slim`.
|
|
|
|
|
|
|
|
However, it is possible that compilation crashes before reaching 100% (the message "error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'" should appear). In that case, no stress, simply run
|
|
|
|
```bash
|
|
|
|
ccmake ..
|
|
|
|
```
|
|
|
|
Then toggle advanced mode by pressing `t` and write `-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H` next to `CMAKE_CXX_FLAGS` (press ↲ to edit/save modifications) then configure with `c` and quit with `q`. Finally re-compile with
|
|
|
|
```bash
|
|
|
|
make -j4
|
|
make -j4
|
|
```
|
|
```
|
|
And the model should then compile smoothly until 100% is reached.
|
|
And the model should then compile smoothly until 100% is reached.
|
... | | ... | |