Lines Matching +full:- +full:- +full:build +full:- +full:root
4 This guide covers the build instructions for the stand-alone web server.
17 ---------
25 #### Using MinGW-w64 or TDM-GCC
26 In the start menu locate and run the "Run terminal" batch file. For TDM-GCC this is named "MinGW Co…
29 mingw32-make CC=gcc
41 ---------
51 make build
64 Build the static and shared libraries.
68 The *slib* option should be done on a separate clean build as position
75 Clean up files generated during the build
78 ## Setting build options
82 make build WITH_LUA=1
87 | --------------------------- | ------------------------------------------------- |
88 | `WITH_LUA=1` | build with Lua support |
89 | `WITH_DUKTAPE=1` | build with server-side JavaScript support |
91 | `WITH_WEBSOCKET=1` | build with web socket support |
92 | `WITH_SERVER_STATS=1` | build with support for server statistics |
95 | `WITH_DEBUG=1` | build with GDB debug support |
96 | `WITH_CPP=1` | build libraries with c++ classes |
100 | `DOCUMENT_ROOT=/path` | default document root |
105 | `COPT='-DNO_SSL'` | method to insert compile flags |
108 preprocessor defines in the source code - usually USE_* is used there.
113 …stination pass the `PREFIX` option to the command `make install` (not `make build`). Example usage:
116 $ make build
117 $ make -n install PREFIX=/opt/civetweb
119 Note: The `-n` corresponds to the `--dry-run` option (it does not make any changes): You can see wh…
122 $ make -n install PREFIX=/opt/civetweb
123 install -d -m 755 "/opt/civetweb/share/doc/civetweb"
124 install -m 644 resources/itworks.html /opt/civetweb/share/doc/civetweb/index.html
125 install -m 644 resources/civetweb_64x64.png /opt/civetweb/share/doc/civetweb/
126 install -d -m 755 "/opt/civetweb/etc"
127 install -m 644 resources/civetweb.conf "/opt/civetweb/etc/"
128 sed -i 's#^document_root.*$#document_root /opt/civetweb/share/doc/civetweb#' "/opt/civetweb/etc/civ…
129 sed -i 's#^listening_ports.*$#listening_ports 8080#' "/opt/civetweb/etc/civetweb.conf"
130 install -d -m 755 "/opt/civetweb/share/doc/civetweb"
131 install -m 644 *.md "/opt/civetweb/share/doc/civetweb"
132 install -d -m 755 "/opt/civetweb/bin"
133 install -m 755 civetweb "/opt/civetweb/bin/"
136 If the output looks good: Just remove the `-n` option to actually install the software on your syst…
143 make build COPT="-DNDEBUG -DNO_CGI"
147 | ---------------------------- | --------------------------------------------------------- |
149 | `DEBUG` | build debug version (very noisy) |
160 | `USE_DUKTAPE` | enable server-side JavaScript (using Duktape library) |
162 | `USE_ZLIB` | enable on-the-fly compression of files (using zlib) |
179 TARGET_OS values should be be one found in *resources/Makefile.in-os*.
182 make CC=arm-none-linux-gnueabi-gcc COPT="-march=armv7-a -mfpu=vfp -mfloat-abi=softfp" TARGET_OS=FR…
187 Use the alternate *Makefile.osx* to do the build. The entire build has
193 make -f Makefile.osx package
197 ---------
199 … Including Civetweb in buildroot is fairly easy. There is even support for various build options.
202 - In buildroot, make menuconfig
203 - Package Selection for the target --->
204 - Networking applications --->
205 - civetweb
207 …- copy *Config.in* and *civetweb.mk* from Civetweb's *contrib/buildroot/* to Buildroot's *package/…
208 …- In Buildroot's *package/Config.in, insert the following line in were you will know how to find i…
213 ---------
217 Note: You do not need root access to run civetweb on Android.
219 - Download the source from the Downloads page.
220 - Download the Android NDK from [http://developer.android.com/tools/sdk/ndk/index.html](http://deve…
221 - Run `/path-to-ndk/ndk-build -C /path-to-civetweb/resources`
223 - Using the adb tool (you need to have Android SDK installed for that),
225 - From adb shell, navigate to `/data/local` and execute `./civetweb`.
226 - To test if the server is running fine, visit your web-browser and
232 - `jni` stands for Java Native Interface. Read up on Android NDK if you want