google / google/shaderc

How to build shared library?

Open
#1,259 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

i compiled shardc from source in NDK r22b,and followed official guide below:
https://developer.android.com/ndk/guides/graphics/shader-compilers

CLI:
step1: `cd ${NDK_ROOT}/sources/third_party/shaderc/ `
step2: `ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_STL:=c++_shared APP_ABI=all libshaderc_combined`

after a long time building ,i just got arm64\arm32 & x86\x64 static lib: libsharedc.a

Dir tree of shaderc/libs is:
![image](https://user-images.githubusercontent.com/80800417/181499679-3d9a0181-ef3f-4dfd-bba5-44c9687da98a.png)

What's wrong with my CLI param ? or dynamic lib is unsupported? i tried to read Android.mk but it's a little bit complex to me.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.