mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* 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
App description
This is a very simple example that shows how to invoke libwaku functions from a C++ program.
Build
- Open terminal
- cd to nwaku root folder
- make cppwaku_example -j8
This will create libwaku.so and cppwaku_example binary within the build folder.
Run
- Open terminal
- cd to nwaku root folder
- export LD_LIBRARY_PATH=build
./build/cppwaku_example --host=0.0.0.0 --port=60001
Use ./build/cppwaku_example --help to see some other options.