致命错误:netlink/genl/genl.h:交叉编译期间没有此文件或目录

致命错误:netlink/genl/genl.h:交叉编译期间没有此文件或目录

我需要交叉编译 hostapd,即使在编辑 makefile 进行交叉编译后,仍然会出现上述错误

答案1

如果我们在这里谈论 Ubuntu,所需的标头位于libnl-3-dev包中(完整路径为/usr/include/libnl3/netlink/genl/genl.h)。

在 Ubuntu 16.04 LTS 上hostapd需要以下构建依赖项:

  android-headers android-headers-19 autotools-dev debhelper
  dh-strip-nondeterminism docbook docbook-dsssl docbook-to-man docbook-utils
  jadetex libdbus-1-dev libfile-stripnondeterminism-perl libncurses5-dev
  libnl-3-dev libnl-genl-3-dev libnl-route-3-200 libnl-route-3-dev libosp5
  libostyle1c2 libpcsclite-dev libpotrace0 libptexenc1 libqt4-designer
  libqt4-dev libqt4-dev-bin libqt4-help libqt4-qt3support libqt4-scripttools
  libqt4-svg libqt4-test libreadline-dev libreadline6-dev libsgmls-perl
  libsp1c2 libssl-dev libsynctex1 libtexlua52 libtexluajit2 libtinfo-dev
  libzzip-0-13 lynx lynx-common openjade po-debconf qt4-linguist-tools
  qt4-qmake sgml-data sgmlspl sp tex-common texlive-base texlive-binaries
  texlive-fonts-recommended texlive-generic-recommended texlive-latex-base
  texlive-latex-recommended tipa zlib1g-dev

您应该调整您的构建系统以满足这些依赖关系。

相关内容