jocover / OpenUSRP

using LimeSDR to simulate USRP B210
GNU General Public License v3.0
107 stars 52 forks source link

执行cmake ..的时候报错 #2

Closed cn0xroot closed 7 years ago

cn0xroot commented 7 years ago
cmake ..
-- The C compiler identification is AppleClang 8.1.0.8020038
-- The CXX compiler identification is AppleClang 8.1.0.8020038
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:23 (LIBUHD_APPEND_SOURCES):
  Unknown CMake command "LIBUHD_APPEND_SOURCES".

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.7)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/Users/cn0xroot/sdr/uhd/host/lib/usrp/build/CMakeFiles/CMakeOutput.log"
cn0xroot commented 7 years ago

系统:OS X 10.12.4

cn0xroot commented 7 years ago

解决方法:

  1. 源码编译安装limeSuit
  2. 然后参考:http://files.ettus.com/manual/page_build_guide.html 补全依赖包。
jocover commented 7 years ago

也可以直接用UHD MODULE方式编译编译

brew tap jocover/homebrew-limesdr
brew install limesuite uhd cmake
git clone https://github.com/jocover/OpenUSRP.git
mkdir build && cd build
cmake ..
make -j4
sudo make install
cn0xroot commented 7 years ago

哈哈,貌似这样也行,不过习惯源码编译了

zbahadi commented 6 years ago

Thank you , I succed to install it