问题
I need to specify the path of library in Application.mk file to link it correctly. How to do this? Is there any GCC command for that?
回答1:
You have to add LOCAL_LDLIBS := -L/path/to/the/library
into the file Android.mk
.
回答2:
Add -L/path/to/the/library
flag to gcc command line parameters.
来源:https://stackoverflow.com/questions/6475944/how-to-specify-path-of-libraries-in-android-mk-file-or-application-mk-file