Closed hartmark closed 1 year ago
Added workaround in 78accf379042e662676a5754e162f53ab90f2c08, please test.
It doesn't compile on latest on main,
/usr/bin/ld: CMakeFiles/GLSMAC.dir/src/game/world/map_generator/SimplePerlin.cpp.o: warning: relocation against `_ZN4game5world3map4Tile9R_ROLLINGE' in read-only section `.text'
/usr/bin/ld: CMakeFiles/GLSMAC.dir/src/game/world/map_generator/SimplePerlin.cpp.o: in function `game::world::map_generator::SimplePerlin::Generate(game::world::map::Tiles*)::{lambda(game::world::map::Tile*)#1}::operator()(game::world::map::Tile*) const':
/home/markus/code/glsmac/src/game/world/map_generator/SimplePerlin.cpp:74: undefined reference to `game::world::map::Tile::R_ROLLING'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/GLSMAC.dir/build.make:2097: bin/GLSMAC] Error 1
make[1]: *** [CMakeFiles/Makefile2:961: CMakeFiles/GLSMAC.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
make -j24 121.06s user 10.18s system 1591% cpu 8.246 total
% git bisect good
b4cfa5dd621b8dfb19c0583c6828325731a97e46 is the first bad commit
commit b4cfa5dd621b8dfb19c0583c6828325731a97e46
Author: afwbkbc <afwbkbc@inbox.lv>
Date: Sun Jan 29 03:31:48 2023 +0200
SimplePerlin map generator (press QuickStart to test)
src/game/world/World.cpp | 9 +-
src/game/world/map/Map.cpp | 2 +-
src/game/world/map/Tile.cpp | 4 +
src/game/world/map/Tile.h | 4 +-
src/game/world/map_generator/CMakeLists.txt | 1 +
src/game/world/map_generator/SimplePerlin.cpp | 85 +++++++++++++++++++
src/game/world/map_generator/SimplePerlin.h | 18 ++++
src/types/Vec2.h | 11 ++-
src/util/CMakeLists.txt | 1 +
src/util/Clamper.h | 6 ++
src/util/Perlin.cpp | 115 ++++++++++++++++++++++++++
src/util/Perlin.h | 34 ++++++++
12 files changed, 284 insertions(+), 6 deletions(-)
create mode 100644 src/game/world/map_generator/SimplePerlin.cpp
create mode 100644 src/game/world/map_generator/SimplePerlin.h
create mode 100644 src/util/Perlin.cpp
create mode 100644 src/util/Perlin.h
I can start the game however if I revert that commit.
I had it too, already fixed. GCC behaved funny when I tried to do min( ... ) or max( ... ) with typedefed uint8_t.
It seems to be missing arialn.ttf, it is there however, but it's named ARIALN.TTF, so the same with uppercase. The folder is on btrfs partition so it has case sensitive mode of filenames.