Closed IanMeyers closed 8 years ago
Try version from git. If it doesn't work, try to set LIBPROTOBUF environment variable directly instead of PKG_CONFIG_PATH.
try install this sudo apt-get install g++ protobuf-compiler protobuf-c-compiler libprotobuf-dev libv8-dev libgoogle-perftools-dev make libprotoc-dev default-jre libboost-dev
@sergiyvoytovych it's clearly not what op wants. And most of what you propose to install is not required.
@IanMeyers did it help?
I was able to satisfy the compile time dependency with a local installation of protobuf, and then package the protobuf libs into the module with a local path reference. Unfortunately this approach isn't going to work for me due to the size of the packaged artefact (>70MB) so I am going to look at a pure JS implementation of protobuf.
That said, I still think it would be nice if the --pkgconfig could use a local path to protobuf.
@IanMeyers latest version uses pkg-config. But yes, packaging binary modules is not the best idea.
Hello,
I'm trying to install node-protobuf into my project with reference to a version of protocol buffers which is local to the project - aka not in the default location, because my app needs to be able to package up protocol buffers along with node-protobuf and my code.
Is this something that can be addressed? It looks like the path that it's trying to find google/protobuf/dynamic_message.h. This file is in
$project/lib/protobuf/include/google/protobuf/dynamic_message.h
. I can't tell if this is something due to protobuf or the npm installation of node-protobuf.Thoughts?