Host: Ubuntu 22.04.1 LTS x64_86
Target: Raspberry Pi 4B Raspbian 10 (buster) 32bits
Qt Version: 5.15.7
MongoC and MongoCXX libraries built from source on both Host and Target. Checked libraries files and they are present in their locations (both host and target) as mentioned in .pro file.
Possible error 64bit and 32bit library mismatch but can't change any of host or target OS. Any solution?
Added to .pro file
INCLUDEPATH += \
/usr/local/include/mongocxx/v_noabi \
/usr/local/include/bsoncxx/v_noabi
LIBS += \ -L/usr/local/lib \
-lbsoncxx \
-lmongocxx \
Error: /usr/local/lib/libmongocxx.so:-1: error: file not recognized: File format not recognized and :-1: error: collect2: error: ld returned 1 exit status
Qt Cross compiling with mongoDB for c++, so it required mongoc and mongcxx library. I installed the library on host it worked successfully but when i installed the library on Raspbian 10 32bit it give me the given error. Solution will be appreciated