Skip to content

CMake gives versioning and missing file errors, fails to configure build #153

@Chasyxx

Description

@Chasyxx

I tried to build this again today to see if I had sound (#138) and now CMake is complaining:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.                                                                                                                                                                         
                                                                                                                                                                                                                                      
  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax                                                                                                                                                          
  to tell CMake that the project requires at least <min> but has been updated                                                                                                                                                         
  to work with policies introduced by <max> or earlier.                                                                                                                                                                               
                                                                                                                                                                                                                                      
  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.                                                                                                                                                               
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      
-- Configuring incomplete, errors occurred!

Changing the minimum version in the CMakeLisis or adding the flag it gives gives it's own errors now:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- 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
-- Found Git: /usr/bin/git (found version "2.49.0")
CMake Error: File /home/user1/git/ggwave/bindings/ios/Makefile-tmpl does not exist.
CMake Error at CMakeLists.txt:19 (configure_file):
  configure_file Problem configuring file                                                                                                                                                                                             
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- SDL2_INCLUDE_DIRS = /usr/include;/usr/include/SDL2
-- SDL2_LIBRARIES = SDL2::SDL2main;SDL2::SDL2
-- Found OpenGL: /usr/lib/libOpenGL.so
CMake Error at examples/third-party/CMakeLists.txt:5 (add_subdirectory):
  The source directory                                                                                                                                                                                                                
                                                                                                                                                                                                                                      
    /home/user1/git/ggwave/examples/third-party/ggsock                                                                                                                                                                                
                                                                                                                                                                                                                                      
  does not contain a CMakeLists.txt file.                                                                                                                                                                                             
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      
-- Configuring incomplete, errors occurred!

Either way I can't even start the actual build because of these issues. I was in an empty build directory running cmake .., and I did try on a tagged commit. Oddly enough on the latest commit it also modifies the README.md file according to git.

Linux chassis 6.13.5chasyxx1#3 SMP PREEMPT_DYNAMIC Fri Mar 7 02:38:37 MST 2025 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions