Code Monkey home page Code Monkey logo

Comments (15)

Sculas avatar Sculas commented on June 23, 2024

As for the src/ directory, I unzipped the src.zip inside of this repository. It seems that either a broken or outdated version of the src directory was pushed.

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

It also seems that the patches from sdk-tools aren't applied (not sure if they are needed, though). So I think my assumption above is right (broken or outdated src.zip). If that is true, could you please push/update the latest src.zip?

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

First set

NDK_TOOLCHAIN=$HOME/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

Make dir

mkdir build && cd build

Configure cmake

cmake -G 'Ninja' \
    -DCMAKE_C_COMPILER=$NDK_TOOLCHAIN/bin/x86_64-linux-android30-clang \
    -DCMAKE_CXX_COMPILER=$NDK_TOOLCHAIN/bin/x86_64-linux-android30-clang++ \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH=True \
    -DCMAKE_SYSROOT=$NDK_TOOLCHAIN/sysroot \
    -DCMAKE_BUILD_TYPE=Release \
    ..

build source

ninja -j16

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

Sadly, this does not solve the issue as I'm getting the same error as described above.

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

Which version of ndk you using?

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

Ah now that you say that, I think I have the wrong NDK installed. I'll install the proper one and let you know if it worked!

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

Alright. I was on NDK r22 by accident, just installed r23b (23.1.7779620 to be exact, latest LTS) but sadly enough, still the same problem.

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

I'm using this ndk https://github.com/Lzhiyong/termux-ndk
and compiled build-tools on android for android

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

And it's successfully compiled

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

Currently i haven't pc or laptop
You need to fix it yourself or exclude aidl source to build

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

I can confirm that doing it with Termux does work, but I did notice that compiling for other architectures didn't work with Termux. That's because you set the right compiler, but didn't set the ARCH in CMakeLists.txt in build.sh. I was able to compile it by only compiling for the architecture I was using (aarch64). So the issue is solved.

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

Check binarys it's compiled for arm64-v8a, armeabi-v7a, x86, x86_64
And I'm compiled it one by one with setting ARCH arm64-v8a, armeabi-v7a, x86, x86-64

from aapt2.

RohitVerma882 avatar RohitVerma882 commented on June 23, 2024

aapt2 bin for x86_64 works or not?

from aapt2.

Sculas avatar Sculas commented on June 23, 2024

And I'm compiled it one by one with setting ARCH arm64-v8a, armeabi-v7a, x86, x86-64

That would work, yes! But your build.sh script in this repo tries to compile all of them in a single row, which won't work.
Also, by removing aidl from CMakeLists.txt I was able to compile it for x86 on my PC and that worked when testing on my x86 emulator. (I haven't tested the other architectures yet.)

from aapt2.

Related Issues (5)

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.