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

cannot build shared library in ncnn default cmake envs. #599

Closed
kalcohol opened this issue Oct 1, 2018 · 2 comments
Closed

cannot build shared library in ncnn default cmake envs. #599

kalcohol opened this issue Oct 1, 2018 · 2 comments

Comments

@kalcohol
Copy link
Contributor

kalcohol commented Oct 1, 2018

"target platform does not support dynamic linking” was shown when cross-build ncnn on linux for arm.
it seems like same issue on stackoverflow:
https://stackoverflow.com/questions/12264299/cmake-on-linux-target-platform-does-not-support-dynamic-linking/12266163

i add a line before order cmake build shared library, such as:
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)

it was not a good solution, but just work well for now. please check and fix this issue when some one have time.
(i'm not good at cmake)

@nihui
Copy link
Member

nihui commented Dec 15, 2018

the ncnn ABI is not stable enough to be built as shared library.
so we provide static building only.

@nihui nihui closed this as completed Dec 15, 2018
@Serbipunk
Copy link

Serbipunk commented Apr 27, 2021

the ncnn ABI is not stable enough to be built as shared library.
so we provide static building only.

unofficial old news of 01/01/2021:

https://i.imgur.com/AeqFnaM.png

ncnn shared library is supported!

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

3 participants