I am trying to compile GNU's ccRTP library to be used in an ARM environment (Android on mobile) with the following command
./configure --host=arm-linux-gnueabi && make
And I get the following error:
configure: error: libgcrypt headers not found.
When I remove the --host=arm-linux-gnueabi
argument from the call I am able to compile the library with no issues. This makes perfect sense as I have already installed all the necessary packages to build on x86_64 architecture, but not for ARM architecture.
My assumption at this time is that, for me to get libccrtp.so compiled for the arm target environment I will need to also compile every one of its dependencies, since using
apt search gcrypt:arm
Returns no matches. This seems like an overkill approach and hopefully not the only one, as the list of dependencies is likely to grow with each library dependency I seek to compile.
So the question: is there a way to cross-compile a library without having to manually compile every dependency?
Thanks in advance. -Nick