OpenLara
OpenLara copied to clipboard
Linux - can't compile
in Ubuntu 22.10 cloned with --recursive
copied a correct and working SuperMario64.z64 file renamed as /OpenLara/src/libs/libsm64/baserom.us.z64
when I build with /OpenLara/src/platform/sdl2/build.sh
it fails with the following error:
(...)
In file included from ../../level.h:7,
from ../../game.h:71:
../../levelsm64.h: In member function ‘void LevelSM64::discardDistantPortals(SM64::MarioPlayer*, vec3)’:
../../levelsm64.h:1279:63: error: ‘INT_MAX’ was not declared in this scope
1279 | cportal->limits[j][0]=INT_MAX;
| ^~~~~~~
../../levelsm64.h:20:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
19 | #include "objects.h"
+++ |+#include <climits>
20 |
../../levelsm64.h:1280:63: error: ‘INT_MIN’ was not declared in this scope
1280 | cportal->limits[j][1]=INT_MIN;
| ^~~~~~~
../../levelsm64.h:1280:63: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
So it doesn't create the executable.
build with src/platform/nix/build-gcc.sh
or src/platform/nix/build.sh
for clang instead