<div dir="auto">Thanks for the tip.  I was trying to point it to the compilation system’s libraries but your response made me realise I needed to point it to the target systems libraries and cross-compile them first. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 18 Sep 2021 at 21:26, Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sep 16, 2021, at 6:30 AM, Seb Belcher via Nut-upsdev <<a href="mailto:nut-upsdev@alioth-lists.debian.net" target="_blank">nut-upsdev@alioth-lists.debian.net</a>> wrote:<br>
> <br>
> Bit of a noob question I'm sure but would appreciate the help.  The nut package maintained for OpenWRT does not include the netxml drivers that I need for my UPS, so I'm embarking on something a little outside my comfort zone and trying to cross-compile from source.  The build system is Debian. <br>
> <br>
> I've got quite far, and was able to cross-compile nut with default options but adding the --with-neon is breaking it.  I've installed the neon dev libraries on the build system and they seem to be detected during the configure stage<br>
> ...<br>
> checking for libneon version via pkg-config (0.25.0 minimum required)... 0.30.2 found<br>
> checking for libneon cflags... -I/usr/include/neon<br>
> checking for libneon ldflags... -lneon<br>
> ...<br>
> but then it quits with an error. <br>
> configure: error: "neon libraries not found, required for neon based XML/HTTP driver"<br>
> <br>
> I've verified the neon header files are in /usr/include/neon beyond that, I'm at a loss.  Any help would be appreciated.  Thanks. <br>
> <br>
It's been a little while since I last used a cross-compiler, so maybe I am rusty on terminology. It sounds like you are building on a Debian system, but targeting OpenWRT - are they both the same architecture? (e.g. Debian on MIPS, and a WRT54G MIPS-based router)<br>
<br>
If not, I would expect that your path for libneon would be a little longer, with the target architecture/OS included in there somewhere. (The include files might work across similar architectures, but the libraries are definitely going to have to match the target architecture/OS.)<br>
<br>
For instance, you might need to install libneon into the Buildroot staging_dir if you are following these instructions:<br>
<br>
<a href="https://openwrt.org/docs/guide-developer/crosscompile" rel="noreferrer" target="_blank">https://openwrt.org/docs/guide-developer/crosscompile</a><br>
<br>
then follow their recommendations on setting LDFLAGS (which should probably show up in NUT's ./configure output).</blockquote></div></div>