<div dir="ltr"><div class="gmail_default" style="color:rgb(51,102,102)">Thanks Simon. I have tried doing that actually, but the arm64 version doesn't seem to be available. I'm on Ubuntu 16.04 fwiw.</div><div class="gmail_default" style="color:rgb(51,102,102)"><br></div><div class="gmail_default" style="color:rgb(51,102,102)">Here's the output I get from trying to install it:</div><div class="gmail_default" style="color:rgb(51,102,102)">--------</div><div class="gmail_default"><div class="gmail_default"><font color="#336666">$ sudo apt-get install libudev-dev:arm64</font></div><div class="gmail_default"><font color="#336666">[sudo] password for kevin: </font></div><div class="gmail_default"><font color="#336666">Reading package lists... Done</font></div><div class="gmail_default"><font color="#336666">Building dependency tree </font></div><div class="gmail_default"><font color="#336666">Reading state information... Done</font></div><div class="gmail_default"><font color="#336666">Package libudev-dev:arm64 is not available, but is referred to by another package.</font></div><div class="gmail_default"><font color="#336666">This may mean that the package is missing, has been obsoleted, or</font></div><div class="gmail_default"><font color="#336666">is only available from another source</font></div><div class="gmail_default"><font color="#336666"><br></font></div><div class="gmail_default"><font color="#336666">E: Package 'libudev-dev:arm64' has no installation candidate</font></div><div style="color:rgb(51,102,102)">--------</div><div style="color:rgb(51,102,102)"><br></div><div style="color:rgb(51,102,102)">I have installed other arm64 binaries for cross-compiling, so I'm not sure why the libudev-dev package isn't installable. For that matter, I'd like to not build libusb from source either, but it has the same problem.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-04 12:34 GMT-07:00 Simon McVittie <span dir="ltr"><<a href="mailto:smcv@collabora.com" target="_blank">smcv@collabora.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, 04 Jul 2018 at 11:36:23 -0700, Kevin Greene wrote:<br>
> 2018-07-03 18:18 GMT-07:00 Mike Gilbert <<a href="mailto:floppym@gentoo.org" target="_blank">floppym@gentoo.org</a>>:<br>
</span><span>> Why not just install the libudev-dev package on a Ubuntu dev<br>
> system/chroot? That would be much simpler than building libudev from<br>
> scratch, and would ensure you build against the actual library Ubuntu<br>
> uses.<br>
> <br>
> <br>
> I appreciate the suggestion. I would definitely much prefer to do that, but<br>
> I'm cross-compiling, and there doesn't appear to be a way to install arm64<br>
> libudev-dev on x86_64<br>
<br>
</span>You can add arm64 as a "foreign architecture" and install the arm64<br>
libudev-dev that way, in a chroot/container that is based on the same<br>
release of Ubuntu as your target platform, but amd64 (x86_64) instead<br>
of arm64:<br>
<br>
sudo dpkg --add-architecture arm64<br>
sudo apt-get update<br>
sudo apt-get install libudev-dev:arm64<br>
<br>
(Depending on the Ubuntu release of interest, you might also be able<br>
to install an entire cross-toolchain by installing<br>
crossbuild-essential-arm64 in the same chroot/container.)<br>
<br>
See also<br>
<a href="https://enricozini.org/blog/2017/debian/qt-cross-architecture-development-in-debian/" rel="noreferrer" target="_blank">https://enricozini.org/blog/20<wbr>17/debian/qt-cross-architectur<wbr>e-development-in-debian/</a><br>
(that's Debian armhf not Ubuntu arm64, but the principle is the same).<br>
<br>
smcv<br>
______________________________<wbr>_________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedeskto<wbr>p.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/systemd-devel</a><br>
</blockquote></div><br></div></div>