Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 699
rajeswari Avatar asked Jun 25 '11 05:06

rajeswari


2 Answers

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

like image 186
hukka Avatar answered Oct 21 '22 13:10

hukka


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

like image 44
Michael Avatar answered Oct 21 '22 13:10

Michael