Skip to content

OMAS-IIIF/cserve

Repository files navigation

cserve

A C++ based, extendable multithreaded web server with embeded LUA scripting.

Building

There are two builing options:

  • local building. Supported are currently
    • OS X Big Sur, Monterey
    • Ubuntu 20.04 LTE
  • building in docker

The sipi image is built as statically linked executable. All necessary libraries are being downloaded and built during the build-process of sipi. Therefore an internetconnection is necessary and a full build will take it's time. Cserve needs the following external libraries:

Local building

Prerequisites

The following packages have to be install locally:

  • On OS X: brew install inih (required by exiv2)

  • python > 3.9

  • for testing (with pip3):

    • pytest
    • psutil
    • requests
    • pyJWT
    • pillow

The following steps have to be made:

  • mkdir build
  • cd build
  • cmake ..
  • make
  • make install

For testing, the command (in build directory) performs all the tests:

  • make test