I'm Rohit, from ๐ฎ๐ณIndia
rohitverma882 / aapt2 Goto Github PK
View Code? Open in Web Editor NEWBuilding aapt2 & zipalign using ndk for Android
License: Apache License 2.0
Building aapt2 & zipalign using ndk for Android
License: Apache License 2.0
How to build a project on Windows?
Would be nice if other projects could make use of this!
Hi there. I'm trying to compile this on Ubuntu, but I'm having some issues with compiling.
I installed the x86_64 Android NDK,
set ARCH
in CMakeLists.txt
to x86-64
,
set(ARCH "x86-64")
set NDK_TOOLCHAIN
in build.sh
NDK_TOOLCHAIN=$HOME/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64
and ran the build script.
Everything goes well, but then I get these errors:
In file included from $HOME/build-tools-android/src/aidl/aidl_language_l.ll:24:
$HOME/build-tools-android/src/aidl/aidl_language_y.yy:36:13: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
.line = begin.begin.line,
^~~~~~~~~~~~~~~~
$HOME/build-tools-android/src/aidl/aidl_language_y.yy:36:13: note: insert an explicit cast to silence this issue
.line = begin.begin.line,
^~~~~~~~~~~~~~~~
static_cast<int>( )
$HOME/build-tools-android/src/aidl/aidl_language_y.yy:37:15: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
.column = begin.begin.column,
^~~~~~~~~~~~~~~~~~
$HOME/build-tools-android/src/aidl/aidl_language_y.yy:37:15: note: insert an explicit cast to silence this issue
.column = begin.begin.column,
^~~~~~~~~~~~~~~~~~
static_cast<int>( )
3 warnings and 2 errors generated.
If I do what the note:
says, I get the same error in aidl_language_l.ll
instead.
This doesn't seem right, so hence I'm reporting this here.
Do you have a fix for this, or did you not have this issue?
Which branch for ziparchive
has been used in the .zip archive?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.