为什么在安装protobuf软件包后,它仍显示PROTOBUF_PROTOC_LIBRARY-NOTFOUND?

时间:2018-07-02 14:21:48

标签: python-3.x cmake protocol-buffers ubuntu-16.04 hdf5

嗨,我正在尝试使用python 3的{​​{1}}安装软件。当我运行以下命令时,它显示的是那些找不到的软件包。但是我已经通过以下命令cmake

安装了protobuf和hdf5
sudo apt-get install libprotobuf-dev protobuf-compiler libhdf5-serial-dev

是什么原因?

cmake -LA .. | grep NOTFOUND
HDF5_DIR:PATH=HDF5_DIR-NOTFOUND
HDF5_dl_LIBRARY_DEBUG:FILEPATH=HDF5_dl_LIBRARY_DEBUG-NOTFOUND
HDF5_hdf5_LIBRARY_DEBUG:FILEPATH=HDF5_hdf5_LIBRARY_DEBUG-NOTFOUND
HDF5_hdf5_hl_LIBRARY_DEBUG:FILEPATH=HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND
HDF5_m_LIBRARY_DEBUG:FILEPATH=HDF5_m_LIBRARY_DEBUG-NOTFOUND
HDF5_pthread_LIBRARY_DEBUG:FILEPATH=HDF5_pthread_LIBRARY_DEBUG-NOTFOUND
HDF5_sz_LIBRARY_DEBUG:FILEPATH=HDF5_sz_LIBRARY_DEBUG-NOTFOUND
HDF5_z_LIBRARY_DEBUG:FILEPATH=HDF5_z_LIBRARY_DEBUG-NOTFOUND
PROTOBUF_PROTOC_LIBRARY:FILEPATH=PROTOBUF_PROTOC_LIBRARY-NOTFOUND
PROTOBUF_PROTOC_LIBRARY_DEBUG:FILEPATH=PROTOBUF_PROTOC_LIBRARY_DEBUG-NOTFOUND

对于hdf5:

/usr/lib/x86_64-linux-gnu$ ls libproto*
libprotobuf.a          libprotobuf-lite.so.9.0.1  libprotoc.so.9
libprotobuf-lite.a     libprotobuf.so             libprotoc.so.9.0.1
libprotobuf-lite.so    libprotobuf.so.9
libprotobuf-lite.so.9  libprotobuf.so.9.0.1

我应该怎么做,是否应该在不使用命令行安装的情况下编译这些软件的二进制代码?如果是,如何在命令行中导出cmake的PATH?

0 个答案:

没有答案