docs.rs failed to build himpi-sys-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
himpi-sys
Hi35XX MPI API for Rust unsafe bindings.
Requirements
- The target board toolchain must be installed and export to
PATH
:- hi3516ev200 -
arm-himix100-linux
. - hi3516ev300 - same as
hi3516ev200
. - hi3518ev200 - same as
hi3516ev200
. - hi3518ev300 - same as
hi3516ev200
. - hi3519av100 -
arm-himix200-linux
. - hi3531v100 -
arm-hisiv100nptl-linux
. - hi3559av100 -
aarch64-himix100-linux
.
- hi3516ev200 -
- The rust target must be installed for target board:
- hi3516ev200 -
armv7-unknown-linux-musleabihf
. - hi3516ev300 - same as
hi3516ev200
. - hi3518ev200 - same as
hi3516ev200
. - hi3518ev300 - same as
hi3516ev200
. - hi3519av100 -
aarch64-unknown-linux-gnu
. - hi3531v100 -
arm-unknown-linux-musleabi
. - hi3559av100 -
aarch64-unknown-linux-gnu
.
- hi3516ev200 -
- Export
MPP_DIR
to directory that contains thempp-lib
. - Export
SYS_INCLUDE
to the directory that contains the system headers. - Export
SYS_LIBDIR
to the directory that contains the system libraries.
The toolchain and the mpp-lib you can get from the BSP sdk.
Envionment Defaults
Hi3516EV200
The Hi3616EV300、Hi3616EV200、Hi3618EV300 use the same SDK.
Hi3519AV100
Hi3531V100
Hi3559AV100
Building
To build the package, you must set cross compile environments first.
There is some preset in .cargo/
can help you fasten setup the cross compile.
Example:
# Setup for Hi3559AV100 boards
# or for link static libraries
# Build the package ...
Make sure the
hi3559av100
feature is enabled in the Cargo.toml, Thehi3559av100
specified the target board, you can change to others, like:hi3531v100
Patch bindgen:
The package use a patched bindgen to generate ffi bindings, you must patch the crates.io to replace the bindgen with the patched version.
# Cargo.toml
[]
= { = "https://github.com/varphone/rust-bindgen.git", = "v0.52.0-sp1" }
Examples
use ;