mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx: add iOS notes to README.
Change-Id: Ia46a43376370a73b179dbc4ab65e43956ee8c43a
This commit is contained in:
parent
469c045aa9
commit
99f07f5054
13
README.md
13
README.md
@ -416,6 +416,19 @@ will need to install the current (not outdated) version of
|
||||
recommend that you install [Homebrew](https://brew.sh/) and then execute
|
||||
`brew install bash`.
|
||||
|
||||
### iOS
|
||||
Unfortunately, the current versions of the iPhone SDK are missing few
|
||||
important system header files, and one of these files is required for
|
||||
building the library. So you should manually copy at least the `sys/vmmeter.h`
|
||||
from the OSX SDK or iPhoneSimulator SDK. If this header file is missing,
|
||||
you will get the corresponding message from the compiler, and near in the
|
||||
src/elements/osal.h` file there are [examples of how this can be done](src/elements/osal.h#L97-L109).
|
||||
|
||||
To build _libmdbx_ for iOS, we recommend using CMake using the
|
||||
"[toolchain file](https://cmake.org/cmake/help/latest/variable/CMAKE_TOOLCHAIN_FILE.html)"
|
||||
from the [ios-cmake](https://github.com/leetal/ios-cmake) project.
|
||||
|
||||
|
||||
## API description
|
||||
For more information and API description see the [mdbx.h](mdbx.h) header.
|
||||
|
||||
|
@ -91,7 +91,7 @@
|
||||
#define SYSCTL_LEGACY_NONCONST_MIB
|
||||
#endif
|
||||
#if defined(__APPLE__) && !__has_include(<sys/vmmeter.h>)
|
||||
#warning "Header <sys/vmmeter.h> by default is missing in iOS SDK. " \
|
||||
#warning "The <sys/vmmeter.h> header is missing in iOS SDK. " \
|
||||
"Copy it manually from the OSX SDK or iPhoneSimulator SDK. " \
|
||||
"Don't forget to thank Apple for taking care of you!"
|
||||
/*** FOR INSTANCE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user