Cpponep API on Linux: example is not working


#1

Hi,
I’m trying to get the cpponep API working on my cross-compiler platform Ubuntu 14.04.
Following your guidelines on https://github.com/exosite-labs/cpponep I installed json and curl.
Building cpponep works without any failures, but starting the example with ./example fails.
It says: > error while loading shared libraries: libcurlpp.so.0: cannot open shared object file: no such file
I think, the libcurlpp was installed properly.
Any idea, what I need to do?
Thanks in advance.


#2

Hi @Marc,

Personally am a bit unfamiliar with C++, and using that example on an Ubuntu machine, but I can give this my best shot.

Are you sure that libcurlpp has been linked properly? After a few short searches in Google, the consensus of other folks seems to be that the install script does not link the library your LD_LIBRARY_PATH.

What happens if you add /usr/local/lib to /etc/ld.so.conf, run ./sbin/ldconfig, and then compile the cpp example?

-Martin


#3

Hi Martin,

thank you. I’ve added
include /usr/local/lib
to my
/etc/ld.so.conf
and started
./sbin/ldconfig

the shared library can be found now and the example works.

I’ve failed to see that in the guidelines. I’m sorry.
Marc


#4

Glad to hear that it worked and you got it running!

No worries on the guidelines, that has tripped me up plenty of times.

Happy developing,
-Martin