Skip to content

Conversation

jayschwa
Copy link

@jayschwa jayschwa commented Mar 7, 2025

No description provided.

@jayschwa jayschwa merged commit 6f426d8 into allyourcodebase:main Mar 7, 2025
3 checks passed
@jayschwa jayschwa deleted the zig-0.14.0 branch March 7, 2025 20:20
@vkensou
Copy link

vkensou commented Mar 13, 2025

I am unable to build for Android on version 0.14.0, whereas version 0.13.0 works fine. Have you encountered and tried resolving this issue?

My build command is: zig build -Dtarget=aarch64-linux-android --libc "android.conf" --search-prefix "D:\ndk\xxxx\aarch64-linux-android\34".
Note that android.conf is a libc define file.

include_dir=D:\ndk/27.1.12297006/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include
sys_include_dir=D:\ndk/27.1.12297006/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android
crt_dir=D:\ndk/27.1.12297006/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/34
msvc_lib_dir=
kernel32_lib_dir=
gcc_dir=

I have two questions:

The --search-prefix flag seems ineffective, as Zig consistently complains: "unable to find dynamic system library 'log' using strategy 'paths_first'. Searched paths: none."
The --libc flag seems ineffective for the lib hidapi.
When I remove all addSystemLibrary calls, compiling the SDL library results in errors such as: ld.lld: relocation R_AARCH64_TLSLE_ADD_TPREL_HI12 against debug.panic_stage cannot be used with -shared, and similar messages.
On version 0.13.0, --search-prefix is also ineffective. However, I was able to remove all addSystemLibrary calls and successfully compile the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants