Ezekeel
Ezekeel

Reputation: 13

NDK with stlport_shared for standalone binary?

I want to compile a standalone binary from C++ sources which use some basic STL stuff like string, vector and so on.

If I compile it with 'stlport_static' everything works fine.

However with 'stlport_shared' I get this error message when executing the binary on the device: link_image[1965]: 14649 could not load needed library 'libstlport_shared.so' for '/data/prog' (load_library[1120]: Library 'libstlport_shared.so' not found)CANNOT LINK EXECUTABLE

Any ideas?

Upvotes: 0

Views: 1693

Answers (1)

user1549150
user1549150

Reputation: 295

on java code put static block with the loadlibrary of the libstlport_shared.so on application.mk put app_stl - stlport_shared on android.mk check if there is local_static_library with libstlport and ld_libs with static stl and remove in both case.

It should work now

Upvotes: 1

Related Questions