Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake issue - OSX 10.13.1 #8

Open
minkione opened this issue Jan 22, 2018 · 1 comment
Open

cmake issue - OSX 10.13.1 #8

minkione opened this issue Jan 22, 2018 · 1 comment

Comments

@minkione
Copy link

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".

@velichkov
Copy link

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

OpenUSRP/.travis.yml

Lines 50 to 60 in 6f6028c

- git clone --depth=1 https://github.com/EttusResearch/uhd.git
- pushd uhd/host
- pushd lib/usrp
- git clone https://github.com/jocover/OpenUSRP.git
- echo "INCLUDE_SUBDIRECTORY(OpenUSRP)">>CMakeLists.txt
- popd
- mkdir build && cd build
- cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make -j4
- sudo make install
- popd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants