[CDRIVER-2097] Unable to install mongo-c-driver Created: 23/Mar/17  Updated: 27/Oct/23  Resolved: 23/Mar/17

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

Type: Bug Priority: Major - P3
Reporter: Seungwon Yoon Assignee: A. Jesse Jiryu Davis
Resolution: Works as Designed Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10 w/ MSVS2015


Attachments: Text File error_msg.txt     PNG File error_prtscn.png    

 Description   

I was following installation guide from this
link

I installed libbson successfully, but when I tried to do the same for cd mongo-c-driver-1.6.1
I was getting "sasl/sasl.h not found" error so I downloaded Cyrus-SASL for Windows from here and put it in my Visual Studio include folder.

Then I was getting same error from this bug so I used current github master branch to include all the mongoc source files.

Finally I was able to do
make -G "Visual Studio 14 2015 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver" "-DBSON_ROOT_DIR=C:\mongo-c-driver" without any errors but when I tried "msbuild.exe ALL_BUILD.vcxproj" it was getting this error:

Also attached txt version of that code and I wasn't able to find any log file regarding this compilation.

Could you tell me whether I am doing this right and configure what's going on here?



 Comments   
Comment by Seungwon Yoon [ 23/Mar/17 ]

Thanks, it successfully installed.

Comment by A. Jesse Jiryu Davis [ 23/Mar/17 ]

Hi, you're getting unresolved symbols "bson_strcasecmp" and "bson_as_extended_json" because those are implement in libbson on master, but not in 1.6.1. Reinstall libbson from master, then build libmongoc from master.

Generated at Wed Feb 07 21:14:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.