1

当我尝试为我从https://github.com/myriadrf/LoRa-SDR克隆的 Pothos 安装 LoRa SDR 块时,出现以下错误:

-- Poco_VERSION: 1.7.2
-- Poco_INCLUDE_DIRS: 
-- Poco_LIBRARIES: Poco::Foundation;Poco::Util;Poco::JSON;Poco::XML;Poco::Net
-- PothosSerialization_VERSION: 0.2.0
-- PothosSerialization_INCLUDE_DIRS: /usr/include
-- PothosSerialization_LIBRARIES: /usr/lib/x86_64-linux-gnu/libPothosSerialization.so
CMake Error at /home/jernej/pothos/cmake/PothosConfig.cmake:82 (file):
  file failed to open for reading (No such file or directory):

    /home/jernej/LoRa-SDR/POTHOS_INCLUDE_DIR-NOTFOUND/Pothos/System/Version.hpp
Call Stack (most recent call first):
  /home/jernej/pothos/cmake/PothosConfig.cmake:240 (_POTHOS_GET_ABI_VERSION)
  CMakeLists.txt:7 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POTHOS_INCLUDE_DIR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR

如果我插入文件的完整路径

/Pothos/System/Version.hpp

在 PothosConfig.cmake 中,第一个错误消失了,但这仍然显示:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POTHOS_INCLUDE_DIR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR
   used as include directory in directory /home/jernej/LoRa-SDR

在我的例子中,Pothos 和 LoRa-SDR 目录位于 /home/jernej/ 文件夹中。

我必须将 POTHOS_INCLUDE_DIR 设置到哪个路径,还是必须做其他事情?

4

0 回答 0