Maratyszcza / NNPACK

Acceleration package for neural networks on multi-core CPUs
BSD 2-Clause "Simplified" License
1.67k stars 315 forks source link

make install dont link to libcpuinfo.so #205

Closed Wanger-SJTU closed 3 years ago

Wanger-SJTU commented 3 years ago

the libnnpack is build with cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS=ON -DNNPACK_LIBRARY_TYPE=shared -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. after make the libnnpack.solinked to dependent lib correctly. but result after make install show the following

  install git:(master) ✗ ldd lib/libnnpack.so
  linux-vdso.so.1 (0x00007fff515e2000)
  libcpuinfo.so => not found
  libpthreadpool.so => not found
  libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f83221e1000)
  libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8321fef000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f8322243000)
Wanger-SJTU commented 3 years ago

fix with https://unix.stackexchange.com/questions/279397/ldd-does-not-find-path-how-to-add