[CXX-1988] Is there a demo to show how to run mongodb C++ API with bezel-build cross-tool Created: 13/Apr/20  Updated: 27/Oct/23  Resolved: 14/Sep/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: 莫 莫 Assignee: Kevin Albertson
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The plugin-usage is an epic and incline to make error, file this lira issue.

It will be greater to show how to enable mongo-cxx-driver API with bezel-build tools.

If not given it currently, it would be nice to show some work guide to avoid stray.

Thanks & Regards!
Momo



 Comments   
Comment by Esha Bhargava [ 14/Sep/20 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this if we've missed something.

Comment by Kevin Albertson [ 29/Aug/20 ]

Hi 1921shanghai@gmail.com, if you are adding an already built and installed C++ driver as a dependency to your project, I don't think there'd be anything unique the C/C++ driver from other C/C++ libraries. I believe using cc_import does what you want.

Comment by 莫 莫 [ 15/Apr/20 ]

Is there any tips to resolve this problem?

Thanks & Regards!

Comment by 莫 莫 [ 14/Apr/20 ]

Hello, @Andrew Morrow.

I want to add as a declaration of dependency on an already-built project.

Here is a cross-platform application:
https://github.com/google/mediapipe/tree/master/mediapipe

Here is its C++ file built declaration, its desktop application is built on C++:
https://github.com/google/mediapipe/blob/master/mediapipe/examples/desktop/BUILD

What I want to use is the library of <mongo/xxx>, <mongocxx/xxx> and <bsoncxx/xxx>.

Thanks & Regards!

Comment by Andrew Morrow (Inactive) [ 13/Apr/20 ]

Are you asking how to build the C++ driver from source with bazel? Or are you asking how to properly declare a dependency on an already build and installed instance of the C++ driver with bazel?

Generated at Wed Feb 07 22:04:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.