OpenUSRP icon indicating copy to clipboard operation
OpenUSRP copied to clipboard

cmake issue - OSX 10.13.1

Open minkione opened this issue 7 years ago • 1 comments

xxx:~ xxx$ git clone https://github.com/jocover/OpenUSRP.git
xxx:~ xxx$ echo "INCLUDE_SUBDIRECTORY(OpenUSRP)" >> CMakeLists.txt
xxx:~ xxx$ mkdir build && cd build
xxx:build xxx$ cmake ..
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- 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:1 (INCLUDE_SUBDIRECTORY):
  Unknown CMake command "INCLUDE_SUBDIRECTORY".


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

    cmake_minimum_required(VERSION 3.10)

  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/xxx/build/CMakeFiles/CMakeOutput.log".

minkione avatar Jan 22 '18 22:01 minkione

Hi @minkione,

xxx:~ xxx$ git clone https://github.com/jocover/OpenUSRP.git xxx:~ xxx$ echo "INCLUDE_SUBDIRECTORY(OpenUSRP)" >> CMakeLists.txt

You should add this line in uhd/host/lib/usrp/CMakeLists.txt and not in OpenUSRP/CMakeLists.txt. You should execute all commands exactly as described in https://github.com/jocover/OpenUSRP#libuhd-mode

See also https://github.com/jocover/OpenUSRP/blob/6f6028c30161f1ce63222722b0da8e6d68b203af/.travis.yml#L50-L60

velichkov avatar Apr 15 '19 23:04 velichkov