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

how to build test_example.cc #6

Open
zhangkom opened this issue Jul 26, 2018 · 6 comments
Open

how to build test_example.cc #6

zhangkom opened this issue Jul 26, 2018 · 6 comments

Comments

@zhangkom
Copy link

test_example kom$ cmake .
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- The C compiler identification is AppleClang 9.1.0.9020039
-- 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
-- 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
CMake Error at CMakeLists.txt:17 (easy_mace_build_test):
Unknown CMake command "easy_mace_build_test".

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!

@conansherry
Copy link
Owner

show me the system and cmake version.

@sfzhoujob
Copy link

@conansherry How to run test_example.cc?

@conansherry
Copy link
Owner

@sfzhoujob which platform do you use?

@sfzhoujob
Copy link

@conansherry windonws

@conansherry
Copy link
Owner

enable BUILD_TEST in cmake config.
@sfzhoujob use mace model an change some code about the model. use visual studio to build the test_example

@xchsh
Copy link

xchsh commented Jan 11, 2019

i meet the same error about "Unknown CMake command "easy_mace_build_test"." when i try to build test_example.cc on Ubuntu. Do your know how to fix it

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

4 participants