How to build mongo-c-driver for 32bit linux on a 64bit linux machine using cmake? I'm trying to build it with -DCMAKE_TOOLCHAIN_FILE
and all packages are installed with i386.
Error when trying to build:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/libmongoc/CMakeFiles/mongoc_shared.dir/build.make:2012: src/libmongoc/libmongoc-1.0.so.0.0.0] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1566: src/libmongoc/CMakeFiles/mongoc_shared.dir/all] Error 2
gmake: *** [Makefile:171: all] Error 2