intel / iotg_tsn_ref_sw

IOTG Time-Sensitive Networking Reference Software
BSD 3-Clause "New" or "Revised" License
141 stars 68 forks source link

Build fails: libelf not found #21

Open dietWall opened 3 years ago

dietWall commented 3 years ago

Build fails on Debian 10 with

checking dependency style of gcc... gcc3
./configure: line 3410: syntax error near unexpected token `libelf,'
./configure: line 3410: `PKG_CHECK_MODULES(libelf, libelf)'
Configure failed

System:

$ lsb_release -d
Description:    Debian GNU/Linux 10 (buster)

libelf is installed:

~/iotg_tsn_ref_sw$ sudo apt list --installed | grep libelf

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libelf++0/stable,now 0.3-1 amd64  [installiert]
libelf-dev/stable,now 0.176-1.1 amd64  [installiert]
libelf1/stable,now 0.176-1.1 amd64  [installiert]
libelfin-dev/stable,now 0.3-1 amd64  [installiert]
yin-n commented 3 years ago

I have the same problem.

tkalceca commented 3 years ago

Just came across the same issue recently. For some reason installing pkg-config sudo apt install pkg-config solved above error. Finally checking that libelf find / -name libelf*.pc is within paths as reported by pkg-config --variable pc_path pkg-config. In my case it was under /usr/lib/x86_64-linux-gnu/pkgconfig/