When trying to build the test project using the latest Android Studio 2.3.3, the StockfishService sub project compilation fails with the:
StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/feature_tests.cxx
Error:(405) multiple definition of main' StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/feature_tests.c Error:(34) multiple definition of main'
StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/feature_tests.cxx
Error:(405) multiple definition of main' StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/feature_tests.cxx Error:(405) multiple definition of main'
seems like there are plenty of feature_tests.cxx files generated for various architectures, and they clash with each other. how can this be solved?
CMakeLists.txt includes
file(GLOB_RECURSE engine_SRCS ./*.c*)
which may be the reason why all these files are collected recursively.
When trying to build the test project using the latest Android Studio 2.3.3, the StockfishService sub project compilation fails with the:
seems like there are plenty of feature_tests.cxx files generated for various architectures, and they clash with each other. how can this be solved?
CMakeLists.txt includes
which may be the reason why all these files are collected recursively.