I am trying to include a library (LAME) in my plugin, but want to be able to make some changes to the LAME code.
In the projucer settings, I’ve included the path to my local copy of LAME in “Header Search Paths.” In the Xcode exporter part of the projucer, I’ve included -I<path to my local copy of lame>/include
in Extra Compiler Flags, -L<path to my local copy of lame>/libmp3lame/.libs
in Extra Linker Flags, and mp3lame
in External Libraries to link. When I run the make
for my local copy of LAME, it builds the libraries, my plugin is able to find them, builds correctly, and runs. When i run make clean
for LAME, it removes the libraries, and my plugin doesn’t build, with error library not found for -lmp3lame
, as expected.
However, when I make changes to the LAME library source code and make
it, the changes are not reflected when I run my plugin! For instance, my plugin calls the function lame_encode_buffer_interleaved_ieee_float()
from LAME. I changed the body of that function to be simply printf("in encode function\n");return 0;
, ran make
, and then built my plugin. The function ran as it did before, returning non-zero values and printing nothing. My changes had no effect.
How can I fix this, so that changes I make to LAME show up when I build my plugin?