Ivan FB e3dd6203ae
Start using nim-ffi to implement libwaku (#3656)
* deep changes in libwaku to adap to nim-ffi
* start using ffi pragma in library
* update some binding examples
* add missing declare_lib.nim file
* properly rename api files in library folder
2025-12-19 17:00:43 +01:00
..

Pre-requisite

libwaku.so is needed to be compiled and present in build folder. To create it:

  • Run only the first time and after changing the current commit
make update
  • Run the next every time you want to compile libwaku
make POSTGRES=1 libwaku -j4

Also needed:

  • Install libpq (needed by Postgres client)
    • On Linux:
sudo apt install libpq5
  • On MacOS (not tested)
brew install libpq

Compilation

From the nwaku root folder:

go build -o waku-go examples/golang/waku.go

Run

From the nwaku root folder:

export LD_LIBRARY_PATH=build
./waku-go