From deb235dbc546ab0fd8c12868e84922ff6abe658e Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Mon, 17 Feb 2025 05:26:47 -0500 Subject: [PATCH] This gets the project to compile on OSX with Clang 16 (OSX version 14.7.x) but there's missing libraries for the linking stage. --- meson.build | 4 ++-- raycaster.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 62f81d1..32a85de 100644 --- a/meson.build +++ b/meson.build @@ -8,12 +8,12 @@ project('raycaster', 'cpp', # use this for common options only for our executables cpp_args=[] # these are passed as override_defaults -exe_defaults = ['warning_level=2', 'werror=true'] +exe_defaults = ['warning_level=2', 'werror=false'] cc = meson.get_compiler('cpp') catch2 = dependency('catch2-with-main') -fmt = dependency('fmt', allow_fallback: true) +fmt = subproject('fmt').get_variable('fmt_dep') json = dependency('nlohmann_json') freetype2 = dependency('freetype2') diff --git a/raycaster.cpp b/raycaster.cpp index c3079c1..672d4e5 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -35,7 +35,7 @@ inline uint32_t new_lighting(uint32_t pixel, int level) { Raycaster::Raycaster(TexturePack &textures, int width, int height) : $textures(textures), - $view_texture({(unsigned int)width, (unsigned int)height}), + $view_texture(sf::Vector2u{(unsigned int)width, (unsigned int)height}), $view_sprite($view_texture), $width(width), $height(height), $zbuffer(width),