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

multiple definition of 'main' when trying to build the StockfishServiceTest project #1

Open
lazydroid opened this issue Jun 25, 2017 · 0 comments

Comments

@lazydroid
Copy link

lazydroid commented Jun 25, 2017

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.

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

1 participant