[SR-Users] Kamailio Buildroot

Benjamin Marty benjamin.marty at gmail.com
Tue Jul 7 15:25:55 CEST 2020


Hello

Thanks for the link to nslu2 and the information that I basically just need
to set these bunch of variables correct for cross compiling. I was now able
to create a mostly working package for Buildroot. The .mk file is attached
for others which may run into the same situation.

Thanks

Benjamin

Am Mi., 24. Juni 2020 um 18:05 Uhr schrieb Ovidiu Sas <osas at voipembedded.com
>:

> I haven't cross compiled in a long time ...
> For proper cross-compilation, the CROSS_COMPILE flag must be set to
> something, then the LOCALBASE and SYSBASE should point to the staging
> directory where the toolchain and all the libraries and include files
> for the target platform are present.
> Extra compile and link options can be passed via CC_EXTRA_OPTS and
> LD_EXTRA_OPTS.
>
> An old example for optware can be found here:
>
> https://raw.githubusercontent.com/nslu2-linux/Optware/master/make/kamailio.mk
>
> Some modules have a proper Makefile that will use the pkg-config from
> staging directory and detect proper compile and link flags while other
> modules require manual tinkering with the Makefile.
> It's good to enable the noisy build (Q=0) and check that proper
> include files and libs are used (from the staging directory and not
> from the build machine).
>
> Regards,
> Ovidiu Sas
>
> On Wed, Jun 24, 2020 at 4:52 AM Daniel-Constantin Mierla
> <miconda at gmail.com> wrote:
> >
> > Hello,
> >
> > I haven't cross compiled myself, but there is a makefile flag
> CROSS_COMPILE that you can set in such cases -- the Makefile of the modules
> sets the path to includes and libs based on it. You may need to set other
> Makefile variables to get it done, look in the src/Makefile.defs to see
> most of them.
> >
> > Ovidiu Sas seemed to be active in this space some time ago, maybe he can
> give further guidelines.
> >
> > Cheers,
> > Daniel
> >
> > On 19.06.20 14:11, Benjamin Marty wrote:
> >
> > Hello
> >
> > I would like to ask if someone already tried to build Kamailio for the
> Embedded Distribution Buildroot. I tried it myself but it looks like
> Kamailio is not that easy to cross compile.
> >
> > Thanks
> >
> > Benjamin
> >
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
> > --
> > Daniel-Constantin Mierla -- www.asipto.com
> > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > Funding: https://www.paypal.me/dcmierla
> >
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200707/1a4285e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.mk
Type: text/x-makefile
Size: 2909 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200707/1a4285e1/attachment.bin>


More information about the sr-users mailing list