[CXX-1002] mongo cxx compilation error Created: 22/Aug/16  Updated: 11/Sep/19  Resolved: 12/Sep/16

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

Type: Task Priority: Major - P3
Reporter: Gokhan Yilmaz Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File commandlist1.txt     Text File commandlist2.txt    

 Description   

I followed all the instruction written in https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver). However, I got the error that specify that mongoc.h cannot be found and I cannot resolve the problem.I added the command list that i ran.



 Comments   
Comment by J Rassi [ 12/Sep/16 ]

I'm closing this ticket as "Incomplete", as we haven't heard back for a couple of weeks. Feel free to re-open this ticket if you believe you have discovered an issue with the build system, or to post on the mongodb-user mailing list if you need additional help building the C++ driver.

Comment by J Rassi [ 26/Aug/16 ]

Hi gokhan.ylmz87,

Indeed, I see the following error in your attached file commandlist2.txt:

D:\01-Dev\mongo-cxx-driver-master\src\mongocxx/private/libmongoc.hpp(17): fatal error C1083: Cannot open include file: 'mongoc.h': No such file or directory [D:\01-Dev\mongo-cxx-driver-master\src\mongocxx\mongocxx.vcxproj] 

mongoc.h is a header file provided by libmongoc. Since mongoc.h cannot be found, I infer that either the value passed for LIBMONGOC_DIR is incorrect, or that the libmongoc build or install process did not successfully complete. The value you pass for LIBMONGOC_DIR when building the C++ driver should be the same as the value passed for CMAKE_INSTALL_PREFIX when building libmongoc.

Could you provide the answers to the following questions?

  • Can you post the cmake invocation you used to configure the build for libmongoc?
  • Did "msbuild.exe ALL_BUILD.vcxproj" and "msbuild.exe INSTALL.vcxproj" both complete successfully for libmongoc?
  • Can you post the output of running the command "dir /s D:\01-Dev\mongo-c-driver"? I am guessing that this is the directory you attempted to install libmongoc to, and this directory listing should reveal whether or not the install process completed.

Thanks.
~ Rassi

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