-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: golang example end using negentropy dependency plus simple rea…
…dme.md (#3235) * avoid dependency with libpcre by using regex module
- Loading branch information
1 parent
625c8ee
commit 0e0fcfb
Showing
7 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
## 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 | ||
```code | ||
make update | ||
``` | ||
- Run the next every time you want to compile libwaku | ||
```code | ||
make POSTGRES=1 libwaku -j4 | ||
``` | ||
|
||
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters