2025-01-15 10:32:22 +01:00
|
|
|
|
|
|
|
|
## Pre-requisite
|
2026-06-15 13:03:44 +02:00
|
|
|
liblogosdelivery.so is needed to be compiled and present in build folder. To create it:
|
2025-01-15 10:32:22 +01:00
|
|
|
|
|
|
|
|
- Run only the first time and after changing the current commit
|
|
|
|
|
```code
|
|
|
|
|
make update
|
|
|
|
|
```
|
|
|
|
|
- Run the next every time you want to compile libwaku
|
|
|
|
|
```code
|
2026-06-15 13:03:44 +02:00
|
|
|
make POSTGRES=1 liblogosdelivery -j4
|
2025-01-15 10:32:22 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Also needed:
|
|
|
|
|
|
|
|
|
|
- Install libpq (needed by Postgres client)
|
|
|
|
|
- On Linux:
|
|
|
|
|
```code
|
|
|
|
|
sudo apt install libpq5
|
|
|
|
|
```
|
|
|
|
|
- On MacOS (not tested)
|
|
|
|
|
```code
|
|
|
|
|
brew install libpq
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Compilation
|
|
|
|
|
|
|
|
|
|
From the nwaku root folder:
|
|
|
|
|
|
|
|
|
|
```code
|
|
|
|
|
go build -o waku-go examples/golang/waku.go
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
From the nwaku root folder:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```code
|
|
|
|
|
export LD_LIBRARY_PATH=build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```code
|
|
|
|
|
./waku-go
|
|
|
|
|
```
|