Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android lib build failed under macos #951

Open
savvytang opened this issue Oct 19, 2024 · 0 comments
Open

android lib build failed under macos #951

savvytang opened this issue Oct 19, 2024 · 0 comments

Comments

@savvytang
Copy link

I'm using main branch.

[ 41%] Building C object CMakeFiles/ktx.dir/lib/writer1.c.o
[ 42%] Building C object CMakeFiles/ktx.dir/lib/writer2.c.o
[ 42%] Linking CXX shared library libktx.dylib
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a23': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a22': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a21': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a20': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a19': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a18': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a17': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a16': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a15': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a14': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a13': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a12': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a11': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a10': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a9': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a8': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a7': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a6': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a5': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a4': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a3': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file 'external/astc-encoder/Source/libastcenc-neon-static.a2': found architecture 'arm64', required architecture 'x86_64'
Undefined symbols for architecture x86_64:
"astcenc_config_init(astcenc_profile, unsigned int, unsigned int, unsigned int, float, unsigned int, astcenc_config*)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
"astcenc_context_free(astcenc_context*)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
"astcenc_context_alloc(astcenc_config const*, unsigned int, astcenc_context**)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
"astcenc_compress_image(astcenc_context*, astcenc_image*, astcenc_swizzle const*, unsigned char*, unsigned long, unsigned int)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
compressionWorkloadRunner(int, int, void*) in astc_encode.cpp.o
"astcenc_compress_reset(astcenc_context*)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
"astcenc_get_error_string(astcenc_error)", referenced from:
_ktxTexture2_CompressAstcEx in astc_encode.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libktx.4.3.2.dylib] Error 1
make[1]: *** [CMakeFiles/ktx.dir/all] Error 2
make: *** [all] Error 2

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

No branches or pull requests

1 participant