Giter Club home page Giter Club logo

Comments (2)

justsmth avatar justsmth commented on July 16, 2024

I'm having trouble reproducing the same error that you're getting. My build is also failing, but it seems to be progressing further than the one you reported.

Your error looks like the message we get when certain clang/llvm libraries are not installed on the host. Verify that you have libclang1 installed. Our User Guide has some instructions for it here, there's also some guidance in bindgen's User Guide (which might be out-dated now?).

Another option would be to install the bindgen-cli and set the AWS_LC_SYS_EXTERNAL_BINDGEN=1 environment variable to force our build to use that instead of our internal bindings generation.

Let me know if either of these options work for you.


Note: We do verify our build in CI for a few android-related targets (arm-linux-androideabi, armv7-linux-androideabi, and aarch64-linux-android) but we build using cross-rs.

from aws-lc-rs.

justsmth avatar justsmth commented on July 16, 2024

Ok, I was able to get the build succeed on my Ubuntu 22.04 (x86-64) host:

I installed Ubuntu's android-sdk package and downloaded the r26d NDK. I exported the following two environment variables:

export ANDROID_NDK_ROOT=/home/justsmth/android-ndk/android-ndk-r26d
export ANDROID_SDK_ROOT=/usr/lib/android-sdk

From the aws-lc-rs/aws-lc-rs subdirectory, I ran the build command:

❯ cargo ndk --target x86_64-linux-android build
    Building x86_64 (x86_64-linux-android)
   Compiling libc v0.2.154
   Compiling fs_extra v1.3.0
   Compiling dunce v1.0.4
   Compiling paste v1.0.14
   Compiling aws-lc-rs v1.7.1 (/home/justsmth/repos/aws-lc-rs/aws-lc-rs)
   Compiling mirai-annotations v1.12.0
   Compiling untrusted v0.7.1
   Compiling zeroize v1.7.0
   Compiling jobserver v0.1.26
   Compiling cc v1.0.94
   Compiling cmake v0.1.50
   Compiling aws-lc-sys v0.16.0 (/home/justsmth/repos/aws-lc-rs/aws-lc-sys)
warning: [email protected]: Generating bindings - external bindgen. Platform: x86_64-linux-android
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.76s

(This was using the "external" bindgen-cli.)

from aws-lc-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.