Building Appweb from Source

Appweb includes support for multiple SSL stacks including:

MbedTLS is a compact TLS implementation suitable for using in embedded devices. Appweb includes the MbedTLS distribution and will build with it by default.

OpenSSL is a leading open source SSL stack that is faster, but bigger. Appweb includes support for OpenSSL, but you must build or obtain the OpenSSL libraries yourself.

Downloading OpenSSL the Source Code

You can download OpenSSL from the https://www.openssl.org/ web site. Alternatively, most Linux distributions include OpenSSL with their default distribution.

To use OpenSSL on Windows or MacOS you must first download OpenSSL (https://www.openssl.org/source/) and build it from source. We support the latest stable and LTS releases only. Once OpenSSL is built, you will need to supply the Appweb project with the pathname to your OpenSSL source code directory.

Building Appweb with OpenSSL via Make

If you are building with make, first copy the built OpenSSL libraries to your build/*/bin directory. Then set the path to your OpenSSL source directory when you run make:

make ME_COM_OPENSSL=1 ME_COM_OPENSSL_PATH=/path/to/openssl SHOW=1

Building Appweb with OpenSSL via MakeMe

If you are building with MakeMe, then use the following:

./configure --with openssl=/path/to/openssl
me

Building Appweb with OpenSSL via Visual Studio

To set the path to your OpenSSL source directory, select "View -> Property Manager". Select "appweb" and edit the "product" property page by expanding Debug. In the "product Property Pages" dialog, add a User Macro definition for the OpenSSL source directory.

ME_COM_OPENSSL_PATH     path/to/openssl

Building Appweb with OpenSSL via Xcode on Mac OS

To set the path to your OpenSSL source directory, click on "appweb-macosx-default" on the left to display the project settings. Select under "PROJECT" the "appweb-macosx-openssl_10" project and click on "Build Settings" in the panel in the center. Scroll down to define the path to your OpenSSL source code directory in the ME_COM_OPENSSL_PATH property.

© Embedthis Software. All rights reserved.