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

后端 未结 2 1222
忘掉有多难
忘掉有多难 2020-12-10 13:58

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?

相关标签:
2条回答
  • 2020-12-10 14:36

    Add -L/path/to/the/library flag to gcc command line parameters.

    0 讨论(0)
  • 2020-12-10 14:37

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

    0 讨论(0)
提交回复
热议问题