Skip to content

Latest commit

 

History

History
94 lines (63 loc) · 2.08 KB

BUILDING.md

File metadata and controls

94 lines (63 loc) · 2.08 KB

Dependencies

For Web build

For GUI desktop build

Building

All dependencies except boost are included in the repository. To clone a copy with Boost, do at a shell prompt

 git clone --recurse-submodules https://github.com/pedro-vicente/nostr_client_relay

Or without Boost (Boost clone can be done later)

 git clone  https://github.com/pedro-vicente/nostr_client_relay

The CMake build utility is used. There are 3 modes of build. Default is command line only. To build with defaults, use on a shell

cd nostr_client_relay
cmake -S . -B build
cd build
cmake --build . 

This builds the software on folder named 'build'. There you can find the executables and your code editor of choice generated projects, like projects for Microsof Visual Studio (in Windows).

Building for web and desktop

To enable desktop and web builds, define at command line

cmake -DBUILD_WEB=ON -DBUILD_GUI=ON

but these require extra parameters to locate dependencies. Use the bash script to build and see examples

./build.cmake.sh

Install dependencies

To install dependencies on Mac and Linux

Mac

brew install cmake
brew install openssl

Linux

sudo apt-get install cmake
sudo apt-get install build-essential libgtk-3-dev 
sudo apt-get install libssl-dev 

For web, dependencies boost and wt are needed, build with bash shell scripts

./build.boost.sh
./build.wt.sh

Boost

All dependencies except Boost are included. To clone Boost individually, do

git clone -b boost-1.82.0 --recursive --depth=1 https://github.com/boostorg/boost.git ext/boost_1_82_0