[systemd-devel] How to build only udev

Kevin Greene kgreenek at gmail.com
Wed Jul 4 19:42:51 UTC 2018


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.

Here's the output I get from trying to install it:
--------
$ sudo apt-get install libudev-dev:arm64
[sudo] password for kevin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libudev-dev:arm64 is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libudev-dev:arm64' has no installation candidate
--------

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.

2018-07-04 12:34 GMT-07:00 Simon McVittie <smcv at collabora.com>:

> On Wed, 04 Jul 2018 at 11:36:23 -0700, Kevin Greene wrote:
> > 2018-07-03 18:18 GMT-07:00 Mike Gilbert <floppym at gentoo.org>:
> >     Why not just install the libudev-dev package on a Ubuntu dev
> >     system/chroot? That would be much simpler than building libudev from
> >     scratch, and would ensure you build against the actual library Ubuntu
> >     uses.
> >
> >
> > I appreciate the suggestion. I would definitely much prefer to do that,
> but
> > I'm cross-compiling, and there doesn't appear to be a way to install
> arm64
> > libudev-dev on x86_64
>
> You can add arm64 as a "foreign architecture" and install the arm64
> libudev-dev that way, in a chroot/container that is based on the same
> release of Ubuntu as your target platform, but amd64 (x86_64) instead
> of arm64:
>
> sudo dpkg --add-architecture arm64
> sudo apt-get update
> sudo apt-get install libudev-dev:arm64
>
> (Depending on the Ubuntu release of interest, you might also be able
> to install an entire cross-toolchain by installing
> crossbuild-essential-arm64 in the same chroot/container.)
>
> See also
> https://enricozini.org/blog/2017/debian/qt-cross-architectur
> e-development-in-debian/
> (that's Debian armhf not Ubuntu arm64, but the principle is the same).
>
>     smcv
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180704/9f9d1907/attachment.html>


More information about the systemd-devel mailing list