Giter Club home page Giter Club logo

aapt-cmake-buildscript's People

Contributors

lizhangqu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aapt-cmake-buildscript's Issues

cmake --build "./build-cmake" --target protobuffer_h -- -j 8 执行错误

你好,请教一下,
执行 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

可以添加整个build-tools编译的cmake脚本吗

我在手机上安通过proot的方式安装了arm64的ubuntu,然后我自己编译了一个arm64的NDK,现在就差一个sdk了,不知道你能提供下android-sdk下build-tools的完整cmake脚本么,比如aidl,,zipalign,,dex,dx,……

Resources.pb.cc 初始化不存在导致编译失败

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

才会有。

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.