Fixes for linux

This commit is contained in:
Terry Hearst 2024-08-30 17:23:49 -04:00
parent 4c956235e2
commit f26c7b91e1
5 changed files with 22 additions and 2 deletions

View file

@ -1,7 +1,10 @@
-cp src
-lib heaps
-lib hlsdl
-lib colyseus-websocket
-lib datachannel
-D highDPI
-D flow_border
-D analyzer-optimize
-hl native/marblegame.c
--main Main

View file

@ -2,5 +2,6 @@
haxe compile-linux.hxml
cd native
gcc -o marblegame -g -I . -L /usr/local/lib marblegame.c /usr/local/lib/{ui.hdll,openal.hdll,fmt.hdll,sdl.hdll,uv.hdll,ssl.hdll} -lSDL2 -lhl -lm
gcc -o marblegame -O2 -I . -L /usr/local/lib marblegame.c /usr/local/lib/{ui.hdll,openal.hdll,fmt.hdll,sdl.hdll,uv.hdll,ssl.hdll,datachannel.hdll} -lSDL2 -lhl -lm -luv
strip marblegame
cp marblegame ..

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
./hl marblegame.hl

12
linux-dist/run-marblegame.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
# Add the current directory to the linker path so the .hdll files can be loaded
if [ "x$LD_LIBRARY_PATH" = "x" ]; then
export LD_LIBRARY_PATH=.
else
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
fi
./marblegame $@

View file

@ -14,7 +14,7 @@ class PresentsGui extends GuiImage {
this.position = new Vector();
this.extent = new Vector(640, 480);
var ggLogo = new GuiImage(ResourceLoader.getResource('data/ui/GG_logo.png', ResourceLoader.getImage, this.imageResources).toTile());
var ggLogo = new GuiImage(ResourceLoader.getResource('data/ui/GG_Logo.png', ResourceLoader.getImage, this.imageResources).toTile());
ggLogo.horizSizing = Center;
ggLogo.vertSizing = Center;
ggLogo.position = new Vector(69, 99);