Comments (4)
C/C++: prefabandroid.x86_64: User is using a static STL but library requires a shared STL
"static":true
These two things are inconsistent. I'd need to see the build.gradle and the prefab package to tell you what happened. Closing for tracking reasons until I get that info, but will reopen when we get it.
from prefab.
build.gradle.kts
is here: https://github.com/leleliu008/android-calendar-for-the-aged/blob/master/app/build.gradle.kts
the aar can be donwloaded from https://repo1.maven.org/maven2/com/fpliu/ndk/pkg/prefab/android/21/chinese-calendar/2022.04.22/chinese-calendar-2022.04.22.aar
from prefab.
The actual abi.json does not match what you reported.
$ cat prefab/modules/libchinese-calendar.so/libs/android.x86_64/abi.json
{"api": 21,"abi": "x86_64","ndk": 21,"stl": "c++_shared","static":false}
The log message you're reading is about the shared library, and the abi.json is correct.
The log is correct. These two configurations are not compatible. Your app is using c++_static (that's the default) which means it cannot have any shared library dependencies that use libc++. That's why it's not exposing the shared library to the build. It is exposing the static library to the build, because that one is usable for the build configuration.
from prefab.
Thank you for your explanation.
When I packed my prefab aar file, I refer to the https://mvnrepository.com/artifact/com.android.ndk.thirdparty , I found these abi.json
all have "stl": "c++_shared"
, even some of them are not compiled with libc++_shared.so
, thus I thought "stl": "c++_shared"
is fixed config.
from prefab.
Related Issues (20)
- [PKG] pdfium
- [FR] set `LOCAL_ALLOW_MISSING_PREBUILT` for ndk-build for NDK r24+
- [FR] explicit ABI split for sanitized libraries?
- Use prefab from build.gradle to publish a precompiled library. HOT 1
- [BUG] Start signing com.google.prefab:cli:2.0.0 artifacts HOT 3
- [BUG] Library not exposing c++ symbols, still enforcing its STL in the abi.json HOT 3
- [FR] Model runtime-only dependencies HOT 9
- [FR] [QUESTION] How to model optional dependencies? HOT 7
- [BUG] prefab should set LINKER_LANGUAGE property for static libraries HOT 3
- use enable_language as needed in cmake outputs? HOT 3
- [BUG] when used prefab, the module aar will have duplicate so. The one in the jni/lib, A another one is in the prefab dir. HOT 2
- [FR] export_preprocessor_defs and export_includes HOT 9
- [FR] Support app module denpends on another module which all have C/C++ code. HOT 2
- [FR] Request ability to build prefab on apple silicon: fail to get a suitable JDK HOT 1
- [FR] Add support for riscv64 HOT 1
- [FR] add better handling of whole-archive style libraries HOT 1
- [BUG] ndkports: Pull Request: Create parent directory before trying to extract file from dependency aar HOT 2
- [FR] Please revive the project HOT 1
- [BUG] CMake packages and imported targets naming incompatible with upstream HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prefab.