Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1625

Android NDK r17 compiler error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.4.0
    • Component/s: Release
    • Labels:
    • Environment:
      Android

      Description

      1. libbson Android ndk building success.
      2. libmongoc fail with: -lrt and -lresolv can not find, shm_open() shm_unlink() unreferenced function(), rand_r(seed); undefined function. rand_r() replaced with srand(seed); rand(); function. in cmake file I remove the ${RESOLVE_LIBRARY}. disable ENABLE_SHM_COUNTERS=OFF, if I do these settings i compiling succes
      3. bsoncxx: after compilation libbson and libmongoc, I always get error: command line error jpg attached. sometimes it successed sometimes not.

      Before I compiled all library with android ndk r15 and all code working well in Samdung A5 and A3 but at another device like J7 Mi5 or LG g5 console error white building a bsoncxx::Dbuilder::basic::document{}; libc error invalid address 0x4556... 

       

      Now EP_minimalistic_core give me a error. How can I fix it? or How can Use mongocxx on Android? 

        Attachments

        1. ep++ error.JPG
          ep++ error.JPG
          89 kB
        2. EP error.JPG
          EP error.JPG
          86 kB
        3. errror.JPG
          errror.JPG
          35 kB
        4. image-2018-07-31-17-59-51-769.png
          image-2018-07-31-17-59-51-769.png
          86 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: