Skip to content

Milkytracker can't find submodules when building with MSYS2 UCRT64 #399

@TheRektafire

Description

@TheRektafire

Hi, so I'm on Windows 11 and trying to build milkytracker with msys2 ucrt64. I cloned the repository with --recursive so it should have all the submodules, and indeed git says it downloaded and checked them out and I cans see them in src/submodules and .git/modules. But CMake can't find them and just gives me the following errors:

$ cmake -DSCALE_NEAREST=1 ..
-- The C compiler identification is GNU 15.2.0
-- The CXX compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /ucrt64/bin/cc.exe - 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: /ucrt64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:167 (cmake_policy):
  Policy CMP0004 may not be set to OLD behavior because this version of CMake
  no longer supports it.  The policy was introduced in CMake version 2.6.0,
  and use of NEW behavior is now required.

  Please either update your CMakeLists.txt files to conform to the new
  behavior or use an older version of CMake that still supports the old
  behavior.  Run cmake --help-policy CMP0004 for more information.


-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find LHASA (missing: LHASA_LIBRARY LHASA_INCLUDE_DIR)
-- Found ZZIPLIB: /c/music/musicdev/daws/_src/MilkyTracker/build/C:/programming/tools/msys64/ucrt64/lib/libzzip.dll.a (found version "0.13.72")
LHA decompressor disabled (lhasa unavailable)
GZIP decompressor disabled (zlib unvailable)
ZIP decompressor disabled (zlib unavailable)
-- Enabled SDL2 support
-- Configuring incomplete, errors occurred!

Might it have something to do with the error about the "OLD behavior"? I do have ZLib and zzplib installed but not lhasa since I couldn't find a package for that. But I assume it should be using the submodule one anyway since that's what it's there for? It could find my installed zzplib but the path looks weird. Has anyone else tried building Milkytracker with MSYS2 and if you got it to work what did you need to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions