Libmongoc and libbson driver Win32 Visual Studio compilation

I have a legacy code running on a Windows 32 bit process. I would like to publish data using libmongoc and bson stuff. I cannot find out how to compile for this target.
It looks like cmake build is limited to x64 platform (there is no [arch] option)
I tryed to build inside x86_x64 Cross Tools Commands for VS2019 but this still generates 64 bits librairies and binaries. Did i miss something or is this target definitively deprecated ?

Thanks !

Hello @Matthieu_Moret, try configuring the driver with the cmake options cmake -G "Visual Studio 16 2019" -A Win32 noted here: Visual Studio 16 2019 — CMake 3.26.0-rc4 Documentation

1 Like

Wonderful ! This works like a charm :slight_smile:
I think it would be interresting and time saving for people to speek about this option in :
https://mongoc.org/libmongoc/current/installing.html
Many thanks for your very fast reply :clap:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.