如何在Android.mk文件或Application.mk文件中指定库的路径?

如何在Android.mk文件或Application.mk文件中指定库的路径?

问题描述:

我需要在Application.mk文件中指定库的路径以正确链接它.这该怎么做?有任何GCC命令吗?

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?

您必须将LOCAL_LDLIBS := -L/path/to/the/library添加到文件Android.mk中.

You have to add LOCAL_LDLIBS := -L/path/to/the/library into the file Android.mk.