libmongoclient.so not being built

241 views
Skip to first unread message

Maxi

unread,
Sep 22, 2012, 7:48:39 AM9/22/12
to mongod...@googlegroups.com
Hi, I'm not seeing any downloads listed here: http://dl.mongodb.org/dl/cxx-driver/ so I built it myself from github.

I'm unsure if I did it correctly, I got a "libmongoclient.a" in the top folder, but which header files should I need to include then?
I used to build the driver from the link above, and I always got a "libmongoclient.so" in addition to the .a file.


David Hows

unread,
Sep 24, 2012, 2:08:20 AM9/24/12
to mongod...@googlegroups.com
Hi Maxi,

Which github repo did you build from?

What command did you run to execute the build?

What was the output?

Cheers,

David

Maxi

unread,
Sep 26, 2012, 2:14:12 AM9/26/12
to mongod...@googlegroups.com
I just cloned everything from here: https://github.com/mongodb/mongo
And then did "scons mongoclient", just like the docs said. There are no errors, but I'm just confused on how to go forward here. There is a libmongoclient.a but no indication what folders need to be users as headers.

David Hows

unread,
Sep 26, 2012, 3:23:20 AM9/26/12
to mongod...@googlegroups.com
Hi Maxi,

Theres a bug in building the .so file at the moment. 

The ticket is https://jira.mongodb.org/browse/SERVER-6514 and it blocks compiling of the shared client. (the .so file)

You should have a folder of header files within src/mongo and you can start by simply including #include "src/mongo/client/dbclient.h"

Try going over and compiling the tutorial application and then working up from there. The tutorial is available http://www.mongodb.org/pages/viewpage.action?pageId=133415

Cheers,

David

Michael Siegel

unread,
Sep 26, 2012, 2:00:30 PM9/26/12
to mongod...@googlegroups.com
If it helps, I think a workaround for building the .so file is to uncomment line 101 of src/SConscript.client.  There might be pitfalls to this that I'm not yet aware of.

Michael Siegel

unread,
Sep 26, 2012, 2:40:05 PM9/26/12
to mongod...@googlegroups.com
To someone more involved with this issue: Is there a reason why the line that enables the building of an .so file was commented out?  Is there something wrong with the .so produced?  I seem able to link against and use it successfully so far.
Reply all
Reply to author
Forward
0 new messages