#6729 closed enhancement (fixed)

[macOS] Check for the existence of libMoltenVK

Reported by: Langbart Owned by: Stan
Priority: If Time Permits Milestone: Alpha 27
Component: Build & Packages Keywords:
Cc: Patch:

Description

Check if the libMoltenVK.dylib still exists in the binaries/system/ folder.

reason

  • was looking for a bug
  • had some problems building
  • deleted the binaries/system/ folder and made a clean build
  • got some errors when trying to start Vulkan

errors

0 A.D. (0.0.27) Main log (warnings and errors only)
WARNING: Failed to load @executable_path/libMoltenVK.dylib.

ERROR: Unable to create device for Vulkan backend, switching to GL.

Engine exited successfully on 2023-02-08 at 07:37:26 with 1035 message(s), 1 error(s) and 1 warning(s).

workaround

# delete the file
rm -rf libraries/osx/molten-vk/.already-built
# run the script again
./libraries/osx/build-osx-libs.sh
# start vulkan
pyrogenesis -mod=public -mod=0ad-spirv -conf=rendererbackend:vulkan

possible solution

  • libraries/osx/build-osx-libs.sh

    a b LIB_URL="https://releases.wildfiregames.com/libs/"  
    10481048
    10491049mkdir -p "molten-vk"
    10501050pushd "molten-vk" > /dev/null
    1051 if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$MOLTENVK_VERSION" ]]
     1051if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$MOLTENVK_VERSION" ]] || [[ ! -e ../../../binaries/system/libMoltenVK.dylib ]]
    10521052then
    10531053  INSTALL_DIR="../../../../binaries/system/"
    10541054  rm -f .already-built

Change History (1)

comment:1 by Stan, 15 months ago

Owner: set to Stan
Resolution: fixed
Status: newclosed

In 27541:

Check for the existence of libMoltenVK
Patch by: @Langbart
Fixes #6729

Note: See TracTickets for help on using tickets.