lizhangqu / aapt-cmake-buildscript Goto Github PK
View Code? Open in Web Editor NEWaapt cmake构建系统,支持mac和linux(ubuntu 16.0.4)构建,支持linux(ubuntu 16.0.4)交叉编译windows版本,支持x86和x86_64构建
aapt cmake构建系统,支持mac和linux(ubuntu 16.0.4)构建,支持linux(ubuntu 16.0.4)交叉编译windows版本,支持x86和x86_64构建
希望能添加arm的交叉编译支持!!!
你好,请教一下,
执行 cmake --build "./build-cmake" --target protobuffer_h -- -j 8 的时候,报下面的错误,请问如何可以解决?
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/descriptor.pb.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/any.cc.o] Error 1
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/extension_set.cc.o] Error 1
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/descriptor_database.cc.o] Error 1
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/descriptor.cc.o] Error 1
error: error: unknown warningunknown optionwarning '-Wno-user-defined-warnings';option did '-Wno-user-defined-warnings';you didmean
you '-Wno-user-defined-literals'?mean
[-Werror,-Wunknown-warning-option] '-Wno-user-defined-literals'?
[-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-user-defined-warnings'; did you mean
'-Wno-user-defined-literals'? [-Werror,-Wunknown-warning-option]
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/dynamic_message.cc.o] Error 1
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/arena.cc.o] Error 1
make[3]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir////external/protobuf/src/google/protobuf/arenastring.cc.o] Error 1
make[2]: *** [buildscript/protobuf/aprotoc/CMakeFiles/aprotoc.dir/all] Error 2
我在手机上安通过proot的方式安装了arm64的ubuntu,然后我自己编译了一个arm64的NDK,现在就差一个sdk了,不知道你能提供下android-sdk下build-tools的完整cmake脚本么,比如aidl,,zipalign,,dex,dx,……
buildscript/aapt2_static/CMakeLists.txt
中的配置:
#生成的文件在这个目录
${CMAKE_SOURCE_DIR}/frameworks/base/tools/aapt2/frameworks/base/tools/aapt2/Resources.pb.cc
${CMAKE_SOURCE_DIR}/frameworks/base/tools/aapt2/frameworks/base/tools/aapt2/ResourcesInternal.pb.cc
有问题,代码同步之后,这两个文件实际是不存在的,需要先注释这两行,然后执行
cmake --build "./build-cmake" --target protobuffer_h -- -j 8
才会有。
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.