Fixes to make it build on OSX with old gear. I have an ancient OSX laptop that uses Clang 14 and it actuall works there. Amazing.

main
Zed A. Shaw 1 month ago
parent b9c27cd6ba
commit 86c98c43c2
  1. 11
      README.md
  2. 1
      gui.cpp
  3. 1
      map.cpp
  4. 2
      map.hpp
  5. 5
      scripts/reset_build.sh

@ -1,3 +1,12 @@
# roguish # roguish
The next little game in the series where I make a fancy rogue game. The next little game in the series where I make a fancy rogue game.
# OSX Build Notes
* Quite a bad experience. Need to install Python, cmake, meson, and ninja all which are in homebrew but if you don't use homebrew then this is a problem.
* You need to run the .command script in Application/your python that updates the SSL certs.
* You have to give iTerm access to your keystrokes...because wtf it already has them?
* This points out a problem that I'm getting the keys using FTXUI but should either get them from SFML _or_ connect FTXUI to SFML's keyboard input events instead.
* Takes forever to load on older computers, and I've got no idea why SFML is like that. It seems the sound system is a pig that takes forever to load, so am I using it wrong?
* No actually this first run delay seems to be related to the security feature that blocks keyboard access on iTerm, so probably fixing that would speed it up.

@ -4,6 +4,7 @@
#include <memory> // for allocator, shared_ptr #include <memory> // for allocator, shared_ptr
#include <string> // for string, operator<< #include <string> // for string, operator<<
#include <thread> // for sleep_for #include <thread> // for sleep_for
#include <array>
#include <ftxui/dom/elements.hpp> // for hflow, paragraph, separator, hbox, vbox, filler, operator|, border, Element #include <ftxui/dom/elements.hpp> // for hflow, paragraph, separator, hbox, vbox, filler, operator|, border, Element
#include <ftxui/dom/node.hpp> // for Render #include <ftxui/dom/node.hpp> // for Render

@ -1,6 +1,7 @@
#include "map.hpp" #include "map.hpp"
#include "dbc.hpp" #include "dbc.hpp"
#include <vector> #include <vector>
#include <array>
#include <fmt/core.h> #include <fmt/core.h>
#include "rand.hpp" #include "rand.hpp"
#include <utility> #include <utility>

@ -15,8 +15,6 @@ struct Point {
size_t y = 0; size_t y = 0;
}; };
struct Room;
struct Room { struct Room {
size_t x = 0; size_t x = 0;
size_t y = 0; size_t y = 0;

@ -1,17 +1,16 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
mv -f ./subprojects/packagecache . mv -f ./subprojects/packagecache . || true
rm -rf subprojects builddir rm -rf subprojects builddir
mkdir subprojects mkdir subprojects
mv packagecache ./subprojects/ mv packagecache ./subprojects/ || true
mkdir builddir mkdir builddir
cp *.wrap subprojects cp *.wrap subprojects
meson wrap install fmt meson wrap install fmt
meson wrap install catch2 meson wrap install catch2
meson wrap install ftxui meson wrap install ftxui
meson wrap install nlohmann_json meson wrap install nlohmann_json
meson wrap install sfml
meson wrap install libpng meson wrap install libpng
meson wrap install vorbis meson wrap install vorbis
meson wrap install ogg meson wrap install ogg

Loading…
Cancel
Save