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.

master
Zed A. Shaw 10 months ago
parent 2a4ada81bb
commit deb235dbc5
  1. 4
      meson.build
  2. 2
      raycaster.cpp

@ -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')

@ -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),