How to specify path of libraries in Android.mk file or Application.mk file?

被刻印的时光 ゝ 提交于 2019-11-27 05:56:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!