Linking externally with capnp

I just installed the latest nupic.core as of 27.09.16 on Ubuntu 14.04 with gcc-4.9.4.
All unit tests are passing and the prototest is working well, but when trying to link an external application against the static libs, there are undefined references to capnp.
In previous versions of nupic.core, the static libs were nupic_core, capnp, kj, gtest and pymath but now there is only nupic_core, gtest and pymath.
I don’t understand the changelog on github so I’d like to know where is the compiled capnp library now because without it all nupic_core is useless, there are undefined references even when not explicitly serializing.

I found capnp and kj in /build/scripts/ThirdParty/Install/lib/ and it is working now.

1 Like

Passing -DNUPIC_BUILD_PYEXT_MODULES=OFF to cmake informs the subsequent make to build a single nupic_core static library that includes the external parts (capnp, kj, etc.) with full symbol visibility. Look for NUPIC_BUILD_PYEXT_MODULES in nupic.core README.

1 Like