Giter Club home page Giter Club logo

bare_apk_zig's People

Contributors

tuket avatar

Stargazers

 avatar

Watchers

 avatar

bare_apk_zig's Issues

zig build apk error

On a MacBookPro11,1
i changed the config
// const jdk_path = "C:/Program Files/Java/jdk-20";
const jdk_path = "/Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home";
// const androidSdk_rootPath = "C:/Android";
const androidSdk_rootPath = "/Users/aok/.android";

// const libC_rootPath = try std.fmt.allocPrint(b.allocator, "{s}/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr", .{ndk_path});
const libC_rootPath = try std.fmt.allocPrint(b.allocator, "{s}/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr", .{ndk_path});

$ zig build keystore

$ zig build apk
zig build-lib test Debug arm-linux-android: error: the following command failed with 2 compilation errors:
/usr/local/bin/zig build-lib /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/src/main.zig -llog -landroid -lc -fstrip --libc /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache/o/8446ac6de27122ce88fc2a5032dc94ce/android_libc.conf --cache-dir /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache --global-cache-dir /Users/aok/.cache/zig --name test -dynamic -target arm-linux-android -mcpu baseline -L /Users/aok/.android/ndk/25.0.8775105/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/21 -fPIC --listen=-
Build Summary: 2/10 steps succeeded; 1 failed (disable with --summary none)
apk transitive failure
└─ install generated to test.apk transitive failure
├─ WriteFile test.apk transitive failure
│ └─ run /Users/aok/.android/build-tools/33.0.0/zipalign (test.aligned.apk) transitive failure
│ └─ run /Users/aok/.android/build-tools/33.0.0/aapt (test.unaligned.apk) transitive failure
│ └─ WriteFile lib/armeabi-v7a/libtest.so transitive failure
│ └─ zig build-lib test Debug arm-linux-android 2 errors
└─ run /Users/aok/.android/build-tools/33.0.0/apksigner.sh transitive failure
└─ WriteFile test.apk (+1 more reused dependencies)
error: ld.lld: relocation R_ARM_TLS_LE32 against debug.panic_stage cannot be used with -shared
note: defined in /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache/o/4683eceb073d710f34ca31daa15ddd6c/libtest.so.o
note: referenced by test
note: /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache/o/4683eceb073d710f34ca31daa15ddd6c/libtest.so.o:(debug.panicImpl)
error: ld.lld: relocation R_ARM_TLS_LE32 against Thread.LinuxThreadImpl.tls_thread_id cannot be used with -shared
note: defined in /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache/o/4683eceb073d710f34ca31daa15ddd6c/libtest.so.o
note: referenced by test
note: /Users/aok/Projects/rustdev/dev_work/zigdev/bare_apk_zig/zig-cache/o/4683eceb073d710f34ca31daa15ddd6c/libtest.so.o:(Thread.LinuxThreadImpl.getCurrentId)

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.