jav321
jav321

Reputation: 169

Compile libraries for ARM toolchain(buildroot)

I am using buildroot's toolchain to cross compile applications for ARM. However some application requires libraries that are not compiled for that tool chain. I have those libraries on my host tool chain like -ljack, lfftw etc.

I need to know that if I get tarball of the required packages then how can I configure them so that the libraries are compiled by arm-gcc and the headers/libraries copied to /usr and /include of the buildroot ?

In this way I should be able to access these libraries via buildroot's toolchain.

Thanks,

Upvotes: 0

Views: 2156

Answers (1)

Anders
Anders

Reputation: 9011

Well, you need to integrate them into Buildroot.

Take fftw for example, in that particular case, fftw is already available in Buildroot, and you just have to enable it in your build. Go to Target packages->Libraries->Other and enable fftw.

If you don't know where to find a package, run make menuconfig and type Ctrl-/ to get a search box. There you could type e.g. fftw and learn where in the menu system it is located and what dependencies it has.

If fftw (or some other library you need) hadn't been / isn't available in Buildroot, you need to add it yourself. See e.g. adding packages to Buildroot.

Upvotes: 5

Related Questions