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 build #6

Closed
dpt opened this issue Jun 5, 2021 · 3 comments
Closed

CMake build #6

dpt opened this issue Jun 5, 2021 · 3 comments
Assignees

Comments

@dpt
Copy link
Owner

dpt commented Jun 5, 2021

Complete the CMake build work. In particular CMake builds on Windows will need to be supported.

@dpt dpt created this issue from a note in The Great Escape (In progress) Jun 5, 2021
@dpt dpt self-assigned this Jun 5, 2021
@dpt dpt closed this as completed Apr 17, 2022
@dpt dpt moved this from In progress to Done in The Great Escape Apr 17, 2022
@efa
Copy link

efa commented Jan 19, 2024

hello Spectrum enthusiast.
On first try on Linux Debian, I got this error:

efa@08i7-2500:~/c/The-Great-Escape-in-C$ build.sh 
Configuring...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at platform/generic/CMakeLists.txt:3 (add_executable):
  add_executable cannot create target "TheGreatEscape" because another target
  with the same name already exists.  The existing target is a static library
  created in source directory
  "/home/efa/c/The-Great-Escape-in-C/libraries/TheGreatEscape".  See
  documentation for policy CMP0002 for more details.

-- Configuring incomplete, errors occurred!
See also "/home/efa/c/The-Great-Escape-in-C/build/CMakeFiles/CMakeOutput.log".

I cannot identify what is the "existing target is a static library", there is only directories in /libraries

@dpt
Copy link
Owner Author

dpt commented Jan 19, 2024

There's a clash between library and executable in that build. I've pushed a fix which renames the executable.

@efa
Copy link

efa commented Jan 20, 2024

OK thank you, now work well:

The-Great-Escape-in-C/build/platform/generic$ TheGreatEscapeApp 
THE GREAT ESCAPE
================
Initialising...
Running setup 1...
Running menu...
(ran 2 iterations)
Running setup 2...
Running game...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
100000 iterations in 385ms = 259740.26iters/sec
(quit)

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

No branches or pull requests

2 participants