A Docker Image for BennuGD Development
616
A lightweight Docker image for cross-compiling BennuGD applications on any platform.
Docker Hub: hldtux/bennugd-compiler
Add the following aliases to your shell (~/.bashrc or ~/.zshrc):
bgdc() {
docker run --rm -it \
-v "$PWD":/workdir \
hldtux/bennugd-compiler:r348 \
bash -ic "bgdc \"$@\""
}
bgdi() {
docker run --rm -it \
-v "$PWD":/workdir \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
hldtux/bennugd-compiler:r348 \
bash -ic "bgdi \"$@\""
}
Reload your shell:
source ~/.bashrc # or ~/.zshrc
Once the aliases are loaded, you can compile and run BennuGD projects directly from the current directory.
cd samples/mod_say
bgdc main.prg # Compile
bgdi main.dcb # Run
Output
BGDC 1.0.0 (Feb 12 2018 17:41:12)
Bennu Game Development Compiler
Copyright (c) 2006-2016 SplinterGU (Fenix/BennuGD)
Copyright (c) 2002-2006 Fenix Team (Fenix)
Copyright (c) 1999-2002 José Luis Cebrián Pagüe (Fenix)
File main.dcb compiled (13211 bytes):
Processes 1
Global data 140 bytes
Local data 44 bytes
Private data 0 bytes
Public data 0 bytes
Code 20 bytes
System processes 5
Globals vars 3
Locals vars 7
Private vars 0
Publics vars 0
Identifiers 184
Structs 1
Strings 5 (42 bytes)
Hello World!
xhost +
cd samples/mod_text
bgdc main.prg
bgdi main.dcb
Output

Content type
Image
Digest
sha256:9230c1c2d…
Size
59.1 MB
Last updated
about 1 month ago
docker pull hldtux/bennugd-compiler:r348