Opened 16 months ago
Closed 15 months ago
#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/" 1048 1048 1049 1049 mkdir -p "molten-vk" 1050 1050 pushd "molten-vk" > /dev/null 1051 if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$MOLTENVK_VERSION" ]] 1051 if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$MOLTENVK_VERSION" ]] || [[ ! -e ../../../binaries/system/libMoltenVK.dylib ]] 1052 1052 then 1053 1053 INSTALL_DIR="../../../../binaries/system/" 1054 1054 rm -f .already-built
Change History (1)
comment:1 by , 15 months ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 27541: