How to build 32 bit c++ mongo driver?

164 views
Skip to first unread message

Vladimir Rudiakov

unread,
Jun 11, 2018, 10:10:29 PM6/11/18
to mongodb-user
   
    Hi  Group,

I have x64 windows with 64 bit MongoDB 3.2.7 installed.
And I need 32 bit c++ driver for my windows program(32 bit).
Could someone help me to find driver or way to compile mongocxx and/or mongo-c-driver in 32 bit?
Maybe some previous versions? 


Best Regards,
Vlad.





Andrew Morrow

unread,
Jun 12, 2018, 8:40:16 AM6/12/18
to mongod...@googlegroups.com

Hi Vlad -

Both the C and C++ driver should work just fine in 32-bit mode. Run cmake -G "Visual Studio 14 2015" or similar as appropriate for your intended toolchain inside the "x64 x86 Cross Cools Command Prompt" associated with your intended toolchain. Then you can use msbuild.exe to build first the C driver, and then the C++ driver against the C driver, as per the individual instructions for building those drivers on windows:


Thanks,
Andrew



--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/8cddce00-79ad-4a4a-8c5b-83ddeb7186c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Vladimir Rudiakov

unread,
Jun 12, 2018, 8:59:45 AM6/12/18
to mongodb-user


 Thank you for responce, Andrew, You are right.
I built everything and made test project, everything works fine.

вторник, 12 июня 2018 г., 13:40:16 UTC+1 пользователь acm написал:

Hi Vlad -

Both the C and C++ driver should work just fine in 32-bit mode. Run cmake -G "Visual Studio 14 2015" or similar as appropriate for your intended toolchain inside the "x64 x86 Cross Cools Command Prompt" associated with your intended toolchain. Then you can use msbuild.exe to build first the C driver, and then the C++ driver against the C driver, as per the individual instructions for building those drivers on windows:


Thanks,
Andrew


On Mon, Jun 11, 2018 at 11:46 AM, Vladimir Rudiakov <rudj...@gmail.com> wrote:
   
    Hi  Group,

I have x64 windows with 64 bit MongoDB 3.2.7 installed.
And I need 32 bit c++ driver for my windows program(32 bit).
Could someone help me to find driver or way to compile mongocxx and/or mongo-c-driver in 32 bit?
Maybe some previous versions? 


Best Regards,
Vlad.





--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages