<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:25 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-3221] Building on Windows with MSYS doesn&apos;t output files to CMAKE_INSTALL_PREFIX</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3221</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hello, I&apos;m trying to build mongocxx-driver on Windows 10 with MSYS and I&apos;m at a point where I&apos;ve built the C libraries thanks to the suggestion in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3082&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;CDRIVER-3082&lt;/a&gt; of adding the&#160;&lt;/p&gt;

&lt;p&gt;-DCMAKE_C_FLAGS=&quot;-D__USE_MINGW_ANSI_STDIO=1&quot;&lt;/p&gt;

&lt;p&gt;flag to the cmake command.&lt;/p&gt;

&lt;p&gt;First of all I&apos;d like to point out that the documentation is still inexact about building on Windows with MSYS:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;after installing MSYS, there&apos;s not such file as&#160;c:\msys64\ming64_shell.bat as stated in the docs. I&apos;ve had to launch C:\msys64\mingw64.exe to run the pacman commands listed in the docs.&lt;/li&gt;
	&lt;li&gt;the docs still say that you must download the tarball, and build with CMake after entering the directory. If anyone has used CMake once they know we&apos;re talking about the build directory inside the project&apos;s directory but it should still be pointed out (I&apos;m coming back to C++ after years of C# and Javascript and it&apos;s not obvious for me)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;That said, back to the main issue: after launching the following command from the build directory:&lt;/p&gt;

&lt;p&gt;CC=/mingw64/bin/gcc.exe /mingw64/bin/cmake -G &quot;MSYS Makefiles&quot;&#160;-DCMAKE_INSTALL_PREFIX=&quot;C:/mongo-c-driver&quot; DCMAKE_C_FLAGS=&quot;D__USE_MINGW_ANSI_STDIO=1&quot; ..&lt;/p&gt;

&lt;p&gt;and then&lt;/p&gt;

&lt;p&gt;make&lt;/p&gt;

&lt;p&gt;the builds run successfully (seeing the output in the MSYS shell) but the output directory C:/mongo-c-driver is not created. I have found the built .dll and .a files inside&lt;/p&gt;

{...}
&lt;p&gt;\mongo-c-driver-1.14.0\build\src\libbson and&#160;{...}\mongo-c-driver-1.14.0\build\src\libmongoc&lt;/p&gt;

&lt;p&gt;I&apos;ve tried to copy them manually to C:\mongo-c-driver but then the cmake build of mongocxx doesn&apos;t work. Any ideas why the output directory isn&apos;t created in the first place?&lt;/p&gt;</description>
                <environment>Windows 10&lt;br/&gt;
MSYS 64bit</environment>
        <key id="836630">CDRIVER-3221</key>
            <summary>Building on Windows with MSYS doesn&apos;t output files to CMAKE_INSTALL_PREFIX</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="etchelon">Andrea Bertoldo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 7 Jul 2019 20:07:54 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:13 +0000</updated>
                            <resolved>Thu, 2 Jan 2020 22:56:22 +0000</resolved>
                                    <version>1.14.0</version>
                                    <fixVersion>1.16.0</fixVersion>
                                    <component>Build</component>
                    <component>cmake</component>
                    <component>docs</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2699541" author="xgen-internal-githook" created="Thu, 2 Jan 2020 22:55:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3221&quot; title=&quot;Building on Windows with MSYS doesn&amp;#39;t output files to CMAKE_INSTALL_PREFIX&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3221&quot;&gt;&lt;del&gt;CDRIVER-3221&lt;/del&gt;&lt;/a&gt; clarify msys2 installation&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Also make installation cmdline snippets consistent&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/9306c82ada9f42c3d8070af230b582bf3795b5af&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/9306c82ada9f42c3d8070af230b582bf3795b5af&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="2694330" author="kevin.albertson" created="Tue, 31 Dec 2019 04:03:37 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=etchelon&quot; class=&quot;user-hover&quot; rel=&quot;etchelon&quot;&gt;etchelon&lt;/a&gt;. Apologies for the delay, and thank you for the report. C:\msys64\ming64.exe is the location of the shell in my experience as well. We&apos;ll clarify that you must create a build directory in the instructions. C:\mongo-c-driver is created after running &lt;tt&gt;make install&lt;/tt&gt;. That will be added to the instructions as well.&lt;/p&gt;</comment>
                            <comment id="2335870" author="a.bertoldo@nuvyta.com" created="Mon, 22 Jul 2019 08:31:50 +0000"  >&lt;p&gt;Any news?! I think it&apos;s important that your setup instructions are correct or people can&apos;t even start using your library at all...&lt;/p&gt;</comment>
                    </comments>
                    <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|hv00yv:</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>