diff --git a/stream_engine_meos.go b/stream_engine_meos.go index 05248c6..fc82e35 100644 --- a/stream_engine_meos.go +++ b/stream_engine_meos.go @@ -19,8 +19,7 @@ package main /* -#cgo CFLAGS: -I/usr/local/include -#cgo LDFLAGS: -lmeos +#cgo pkg-config: meos #include #include */ diff --git a/tutorial-stream/README.md b/tutorial-stream/README.md index 48c6912..63095bc 100644 --- a/tutorial-stream/README.md +++ b/tutorial-stream/README.md @@ -45,6 +45,10 @@ in-process engine live in one tier (each named cluster engine still requires its MFAPI_DSN= LD_LIBRARY_PATH=/usr/local/lib ./mfapi ``` + The build reads MEOS's own `meos.pc`, so a libmeos installed somewhere other + than `/usr/local` is named once, by pointing `PKG_CONFIG_PATH` at the + prefix's `lib/pkgconfig` and `LD_LIBRARY_PATH` at its `lib`. + The default (cgo-free) build serves every other endpoint but reports the streaming engine as not built (`501`). Point the notebook at another host with the `MFAPI_HOST` environment variable.