Skip to content

Instantly share code, notes, and snippets.

@pebbie
Created December 11, 2018 16:31
Show Gist options
  • Save pebbie/9a26da5a6ee460b9355dd01e9f5e4516 to your computer and use it in GitHub Desktop.
Save pebbie/9a26da5a6ee460b9355dd01e9f5e4516 to your computer and use it in GitHub Desktop.
Building restbed in Windows using Visual Studio 2017 (x64)

Building

  1. Install perl (strawberry) and NASM

  2. build openssl

    1. go to dependency\openssl directory
    2. perl Configure VC-WIN64A
    3. run nmake and libssl and libcrypto (lib & dll) will be generated at the dependency\openssl directory
    4. modify cmake\findOpenSsl.cmake and insert libssl.lib and libcrypto.lib
  3. build restbed

    mkdir build
    cd build
    cmake -G "Visual Studio 15 2017 Win64" ..
    cmake --build . --target INSTALL --config Release
    

    there will be distribution\include and distribution\library generated in the restbed source directory

Using restbed with Visual Studio

  • add distribution\include and dependency\openssl in the Additional Include directories (C/C++ > General)
  • add distribution\library and dependency\openssl in the Additional Library Directories
  • add restbed.lib, libcrypto.lib, and libssl.lib in the Additional Dependencies (Linker > Input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment