从 RocksDB 7.0 开始,RocksDB 要求编译的 C++ 必须支持 C++ 17 ,( Dropping some compiler support in 7.0#9388)但是目前的Android/iOS版本显然暂时还不能大范围的适配 C++ 17,因此我们目前只能使用 6.x 版本。
Android:
iOS/macOS ARM:
macOS x86:
参考链接
- CMake could not find JNI
- Is there any document for building/integrating rocksdb for/into android/ios app ? #1193
- cmake-toolchains(7)
- Got message "Please install gflags to run rocksdb tools" while running ./db_bench #1775
- cmake Disable Werror
- NDK CMake
- Cross Compiling for iOS, tvOS, or watchOS
- https://github.com/facebook/rocksdb/blob/master/INSTALL.md
- rocksdb编译步骤——Java、Golang、mac
- RocksDB 7 may have C++17 dependency #75496
- Dropping some compiler support in 7.0#9388
- Cant build librocksdb.a for iOS platform in M1 #8416
- Performance impact from perf context with PerfLevel::kDisable #9372
- https://github.com/facebook/rocksdb/blob/c465509379d72068c19b55dbc69bf08d8c387fbe/build_tools/build_detect_platform#L136
- building for iOS Simulator, but linking in object file built for macOS, file '..customLib.a' for architecture x86_64