Cross Compiling Component That Uses autoreconf

Hello,

I am trying to create a new component that uses a 3rd party C library. I have been using lighttpd as a template by having a Component.cdef file that calls a make.sh file that essentially goes through the build process for cross-compiling the library. The library I’m using is libcoap: https://github.com/obgm/libcoap and followed the BUILDING text file.

When I attempt to build an app that uses the library there is a fault as the library is being cross compiled. The library’s autogen.sh script calls autoreconf which ends up calling wp77-toolchain_SWI9X06Y_02.22.12.00-linux64/sysroots/x86_64-pokysdk-linux/usr/bin/autoheader --force, however there is an error: gnu-configize: 'configure.ac' or 'configure.in' is required.

Does anyone have any ideas how to solve this?

Thanks!
Jack

Hi,

I succeeded to build libcoap using Yocto by using the following recipe:
https://www.toradex.com/community/questions/28135/yocto-autotools-library-cmake-application-linker-e.html

If you are not familiar with Yocto or if don’t want to use it then you can try to edit the “autogen.sh” file and replace the line:
autoreconf --force --install --verbose "$srcdir"
By this one:
autoreconf --force --install --verbose --exclude=gnu-configize "$srcdir"


Jay