easy_mace icon indicating copy to clipboard operation
easy_mace copied to clipboard

how to build test_example.cc

Open zhangkom opened this issue 6 years ago • 6 comments

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!

zhangkom avatar Jul 26 '18 08:07 zhangkom

show me the system and cmake version.

conansherry avatar Jul 26 '18 11:07 conansherry

@conansherry How to run test_example.cc?

sfzhoujob avatar Aug 11 '18 07:08 sfzhoujob

@sfzhoujob which platform do you use?

conansherry avatar Aug 11 '18 07:08 conansherry

@conansherry windonws

sfzhoujob avatar Aug 11 '18 07:08 sfzhoujob

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

conansherry avatar Aug 11 '18 07:08 conansherry

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

xchsh avatar Jan 11 '19 03:01 xchsh