Comments (2)
Right, I think LDLIBS is for shared libraries only. In my case, the build script just built .a static libs.
You'll have to define a module for the static library and use this for linking
#
#
TOP_LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)
LOCAL_PATH := $(TOP_LOCAL_PATH)
# define static boost threads lib
include $(CLEAR_VARS)
LOCAL_MODULE := libboost_thread.
LOCAL_SRC_FILES := boost-for-android/lib/libboost_thread-gcc-mt-1_49.a
include $(PREBUILT_STATIC_LIBRARY)
# now libaweseome shared lib
include $(CLEAR_VARS)
LOCAL_CPPFLAGS += -I$(LOCAL_PATH)/boost-for-android/include/boost-1_49
#LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog.
LOCAL_MODULE := awesome
LOCAL_SRC_FILES := Source.cpp Source2.cpp
LOCAL_STATIC_LIBRARIES := libboost_thread
include $(BUILD_SHARED_LIBRARY)
from boost-for-android.
Ok thanks for the little sample :)
I think the result is concretely the same whether you use LDLIBS or LOCAL_STATIC_LIBRARIES. I assume they just piggyback on LDLIBS to add the "-lblablabla" parameter to the command line.
I thought (and I was wrong) it was somehow enforced somewhere, but it's not.
I think using LOCAL_STATIC_LIBRARIES and defining a module is more academic however :) (that's what I did)
from boost-for-android.
Related Issues (20)
- Could not find a suitable toolset. HOT 1
- Bump boost version to 1.77 and disable statx syscall HOT 1
- Error before patch, on windows, how to fix? HOT 1
- when Suppport 1.7.7?
- Fixed ndk[19,20,21,22] building failed bug.
- Can you update the shell of 1.77.0 version ,thanks
- Error: No best alternative for libs/context/build/asm_sources HOT 1
- i build boost success but i build project faild HOT 5
- build-boost-without-version-number-suffixes
- Boost 1.74.0 armv7a
- boost_version for 1.72.0
- windows does not compile HOT 3
- "Undefined or not supported Android NDK version: 23.2" on GitHub Actions HOT 2
- fail to identify Windows when using '--with-conv'
- Can't build NDK
- Open source license HOT 2
- How to generate shared libboost_xxxx.so without the version number such as .so.1.74.0 HOT 2
- Please stop requiring approvals for pull requests HOT 3
- Add NDK 26.1 and 26.2 to build-android.sh
- Build Boost 1.70.0 By NDK r21e, product libthread libsystem size is unnormal
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 boost-for-android.