mirror of
https://github.com/nasa/trick.git
synced 2025-06-16 22:28:18 +00:00
Document configuration of Trick with Civetweb. #1188
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
# 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"
|
||||
|
22
docs/documentation/web/Configuring_TRICK_with_Civetweb.md
Normal file
22
docs/documentation/web/Configuring_TRICK_with_Civetweb.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user