Since this is more a question about cmake/c++ and not strictly a question
about Qpid I'll break userlist etiquette (again) and, with apologies to the
real Qpid team, stick my nose in where it doesn't belong...

I've had this same problem installing on Gentoo since if your BerkeleyDB is
not installed in one of the following paths (as yours is not) it will not
be found by the qpid-cpp build system:
   /usr/local/include/db4
   /usr/local/include/libdb4
   /usr/local/include
   /usr/include/db4
   /usr/include/libdb4
   /usr/include

You can see how I've solved this on Gentoo here:
https://github.com/fourceu/qpid-portage-overlay/blob/master/net-misc/qpid-cpp/qpid-cpp-0.34-r1.ebuild
Line 56 begins a block which finds the relevant headers and passes them to
the Qpid build system.

In your case a similar solution might be to add
"-DDB_CXX_INCLUDE_DIR=/usr/include/db43"
to your cmake command line, or set the variable in the CMake GUI if that's
what you're using.

HTH

/Chris


On 7 December 2016 at 00:53, rammohan ganapavarapu <rammohanga...@gmail.com>
wrote:

> Hi,
>
> I am trying to build linear-store for qpid-cpp-1.35  version and i am
> getting bellow error.
>
> -- Legacystore requires BerkeleyDB for C++ which is absent.
> -- Legacystore is excluded from build.
> -- Linearstore requires BerkeleyDB for C++ which is absent.
> CMake Error at src/linearstore.cmake:65 (message):
>   Linearstore requires BerkeleyDB for C++ which is absent.
> Call Stack (most recent call first):
>   src/CMakeLists.txt:1274 (include)
>
>
>
> I have installed necessary rpms (db4), is there a way for cmake to tell
> where to find db4 libraries? any options i can use to make it work?
>
>
> ec2-user@ip-10-17-8-126:~/files/rpmbuild/SPECS> rpm -ql db43-4.3.29-125.17
> /usr/lib64/libdb-4.3.so
> /usr/lib64/libdb_cxx-4.3.so
> /usr/share/doc/packages/db43
> /usr/share/doc/packages/db43/LICENSE
> /usr/share/doc/packages/db43/README
> /usr/share/doc/packages/db43/images
> /usr/share/doc/packages/db43/images/api.gif
> /usr/share/doc/packages/db43/images/next.gif
> /usr/share/doc/packages/db43/images/prev.gif
> /usr/share/doc/packages/db43/images/ps.gif
> /usr/share/doc/packages/db43/images/ref.gif
> /usr/share/doc/packages/db43/images/sleepycat.gif
> /usr/share/doc/packages/db43/index.html
> /usr/share/doc/packages/db43/sleepycat
> /usr/share/doc/packages/db43/sleepycat/legal.html
> /usr/share/doc/packages/db43/sleepycat/license.html
> ec2-user@ip-10-17-8-126:~/files/rpmbuild/SPECS> rpm -ql
> db43-devel-4.3.29-125.17
> /usr/include/db43
> /usr/include/db43/db.h
> /usr/include/db43/db_185.h
> /usr/include/db43/db_cxx.h
> /usr/lib64/libdb-4.3.a
> /usr/lib64/libdb_cxx-4.3.a
>
> Thanks,
> Ram
>



-- 

*Chris Richardson*, System Architect
c...@fourc.eu


*FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, Norwaywww.fourc.eu
<http://www.fourc.eu/>*

*Follow us on LinkedIn <http://bit.ly/fourcli>, Facebook
<http://bit.ly/fourcfb>, Google+ <http://bit.ly/fourcgp> and Twitter
<http://bit.ly/fourctw>!*

Reply via email to