<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:56 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-1226] Update C++ instructions for C Driver, and consistently name a VS version in install guide</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1226</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;It has been several years since I worked on mongoDB (Windows 7 64 bit SP1 &amp;amp; mongoDB 2.2.0) and was able to install the c++ driver as part of building mongodb from source. Apparently that has changed.&lt;/p&gt;

&lt;p&gt;I have built R3.3.5 from source. According to &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-%28New-Driver%29&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-%28New-Driver%29&lt;/a&gt; I need to first build the C driver and then the C++ driver.&lt;/p&gt;

&lt;p&gt;Following this documentation to install on Windows:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/master/README.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/blob/master/README.rst&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Downloaded zip and stored it in C:\mongo-c-driver-1.3.5&lt;/p&gt;

&lt;p&gt;Per the README:&lt;/p&gt;

&lt;p&gt;cd mongo-c-driver-1.3.5&lt;br/&gt;
cd src\libbson&lt;br/&gt;
cmake -DCMAKE_INSTALL_PREFIX=C:\usr -G &quot;Visual Studio 12 Win64&quot; .&lt;/p&gt;

&lt;p&gt;Returned this error:&lt;/p&gt;

&lt;p&gt;CMake Error: The source directory &quot;C:/mongo-c-driver-1.3.5/src/libbson&quot; does not appear to contain CMakeLists.txt.&lt;/p&gt;

&lt;p&gt;Which makes sense because src/libson is empty. CMakeLists.txt is in C:/mongo-c-driver-1.3.5&lt;/p&gt;

&lt;p&gt;So I try running cmake in the mongo-c-driver-1.3.5 directory:&lt;/p&gt;

&lt;p&gt;C:\mongo-c-driver-1.3.5&amp;gt;cmake -DCMAKE_INSTALL_PREFIX=C:\usr -G &quot;Visual Studio 12 Win64&quot; .&lt;br/&gt;
&amp;#8211; The C compiler identification is MSVC 18.0.40629.0&lt;br/&gt;
&amp;#8211; The CXX compiler identification is MSVC 18.0.40629.0&lt;br/&gt;
&amp;#8211; Check for working C compiler using: Visual Studio 12 2013 Win64&lt;br/&gt;
&amp;#8211; Check for working C compiler using: Visual Studio 12 2013 Win64 &amp;#8211; works&lt;br/&gt;
&amp;#8211; Detecting C compiler ABI info&lt;br/&gt;
&amp;#8211; Detecting C compiler ABI info - done&lt;br/&gt;
&amp;#8211; Check for working CXX compiler using: Visual Studio 12 2013 Win64&lt;br/&gt;
&amp;#8211; Check for working CXX compiler using: Visual Studio 12 2013 Win64 &amp;#8211; works&lt;br/&gt;
&amp;#8211; Detecting CXX compiler ABI info&lt;br/&gt;
&amp;#8211; Detecting CXX compiler ABI info - done&lt;br/&gt;
&amp;#8211; Detecting CXX compile features&lt;br/&gt;
&amp;#8211; Detecting CXX compile features - done&lt;br/&gt;
&amp;#8211; Found BSON: BSON-NOTFOUND;ws2_32&lt;br/&gt;
&amp;#8211; Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)&lt;br/&gt;
&amp;#8211; Searching for sasl/sasl.h&lt;br/&gt;
&amp;#8211;   Not found (specify -DCMAKE_INCLUDE_PATH=C:/path/to/sasl/include for SASL support)&lt;br/&gt;
&amp;#8211; Searching for libsasl2&lt;br/&gt;
&amp;#8211;   Not found (specify -DCMAKE_LIBRARY_PATH=C:/path/to/sasl/lib for SASL support)&lt;br/&gt;
Current version (from VERSION_CURRENT file): 1.3.5&lt;br/&gt;
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.&lt;br/&gt;
Please set them or make sure they are set and tested correctly in the CMake files:&lt;br/&gt;
BSON (ADVANCED)&lt;br/&gt;
    linked by target &quot;mongoc_shared&quot; in directory C:/mongo-c-driver-1.3.5&lt;br/&gt;
    linked by target &quot;mongoc_static&quot; in directory C:/mongo-c-driver-1.3.5&lt;/p&gt;

&lt;p&gt;&amp;#8211; Configuring incomplete, errors occurred!&lt;br/&gt;
See also &quot;C:/mongo-c-driver-1.3.5/CMakeFiles/CMakeOutput.log&quot;.&lt;/p&gt;

&lt;p&gt;So any clues on how to install the C driver so I can get on to installing the C++ driver?&lt;/p&gt;

&lt;p&gt;Thanks. Tried posting to mongodb-user with no results.&lt;/p&gt;</description>
                <environment>Windows 10&lt;br/&gt;
MS VS 2013&lt;br/&gt;
mongodb R3.3.5&lt;br/&gt;
cmake version 3.5.2 (Kitware)</environment>
        <key id="285283">CDRIVER-1226</key>
            <summary>Update C++ instructions for C Driver, and consistently name a VS version in install guide</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="therefore">George Thompson</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 May 2016 18:09:32 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:25 +0000</updated>
                            <resolved>Thu, 16 Jun 2016 01:07:06 +0000</resolved>
                                    <version>1.3.5</version>
                                    <fixVersion>1.4.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1296059" author="xgen-internal-githook" created="Thu, 16 Jun 2016 01:09:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1226&quot; title=&quot;Update C++ instructions for C Driver, and consistently name a VS version in install guide&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1226&quot;&gt;&lt;del&gt;CDRIVER-1226&lt;/del&gt;&lt;/a&gt; fix cmake arg in install guide&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/0d22cadc6e97192fb3a7bd46163095e3ebd1ec58&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/0d22cadc6e97192fb3a7bd46163095e3ebd1ec58&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1267096" author="xgen-internal-githook" created="Tue, 17 May 2016 23:03:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1226&quot; title=&quot;Update C++ instructions for C Driver, and consistently name a VS version in install guide&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1226&quot;&gt;&lt;del&gt;CDRIVER-1226&lt;/del&gt;&lt;/a&gt; fix cmake arg in install guide&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7bd6891aa14a6f0e8811b0caf2de3ca0cbf843ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7bd6891aa14a6f0e8811b0caf2de3ca0cbf843ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1258769" author="jesse" created="Sun, 8 May 2016 19:14:29 +0000"  >&lt;p&gt;Good point, thanks for the correction.&lt;/p&gt;</comment>
                            <comment id="1258766" author="therefore" created="Sun, 8 May 2016 18:38:14 +0000"  >&lt;p&gt;Thank you so much for the help (and the patience). Sorry that I didn&apos;t get the difference between the tarball and the zip of the source. Everything appeared to go without error!   &lt;/p&gt;

&lt;p&gt;FWIW, I believe there is an error in the instructions. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://api.mongodb.com/c/current/installing.html#building-windows&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://api.mongodb.com/c/current/installing.html#building-windows&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It states in the section &quot;Now let&apos;s do the same for the MongoDB C driver.&quot;&lt;/p&gt;

&lt;p&gt;   cmake -G &quot;Visual Studio 2012 Win64&quot; &quot;-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver&quot; &quot;-DBSON_ROOT_DIR=C:\mongo-c-driver&quot;&lt;/p&gt;

&lt;p&gt;I believe it is meant to state:&lt;/p&gt;

&lt;p&gt;   cmake -G &quot;Visual Studio 10 Win64&quot; &quot;-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver&quot; &quot;-DBSON_ROOT_DIR=C:\mongo-c-driver&quot;&lt;/p&gt;

&lt;p&gt; I.e., &quot;10&quot; and not &quot;2012&quot; to be consistent with the previous cmake -G generator. I used &quot;12&quot; in both cases as I am using VS 2013.&lt;/p&gt;

&lt;p&gt; And now on to install the C++ driver!&lt;/p&gt;</comment>
                            <comment id="1258561" author="jesse" created="Sat, 7 May 2016 20:43:19 +0000"  >&lt;p&gt;Hi, sorry for the trouble. Please download a release tarball instead of a mere zip of the source:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/releases&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The release tarball has everything you need, including the contents of src/libbson. If you then follow the directions to build for Windows:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://api.mongodb.com/c/current/installing.html#building-windows&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://api.mongodb.com/c/current/installing.html#building-windows&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That should work fine for you. Please reopen this ticket if you have further trouble.&lt;/p&gt;

&lt;p&gt;As followup, I&apos;ll make sure the C++ driver README is improved.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="287465">CXX-913</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsl7rr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>