Document configuration of Trick with Civetweb. #1188

This commit is contained in:
Penn, John M 047828115
2021-10-27 14:02:01 -05:00
parent f182c72349
commit 4647a0b266
2 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Adding a Web Server to Your Sim # Adding a Web Server to Your Sim
To add a web server to your simulation, simply include the CivetServer sim module into your **S_define** file: If Trick is [configured with Civetweb](Configuring_TRICK_with_Civetweb.md),
adding a web server to your simulation simply requires including the CivetServer sim module into your **S_define** file:
``` ```
#include "sim_objects/CivetServer.sm" #include "sim_objects/CivetServer.sm"

View File

@ -0,0 +1,22 @@
## Configuring Trick with Civetweb
To configure Trick to support the civetweb web server, you'll need to
1. Download Civetweb from [Github](https://github.com/civetweb/civetweb). Where you put the Civetweb directory will be designated as $(CIVETWEB_HOME).
2. Build the Civetweb library:
3. Configure Trick
### Building the Civetweb Library
```bash
cd $(CIVETWEB_HOME)
make build
make WITH_ALL=1
mv $(CIVETWEB_HOME)/output/build/src/libcivetweb.a $(CIVETWEB_HOME)/lib
```
### Configuring Trick with Civetweb
```bash
cd $(TRICK_HOME)
./configure --with-civetweb=$(CIVETWEB_HOME)
make clean
make
```