[How To] Install BennuGD in Ubuntu 64 bits

Started by JaViS, April 11, 2018, 07:55:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JaViS

Recently I had to install Bennu in my Ubuntu machine, so I'm posting here the steps I took for doing so:


Download the latest release from the homepage:
wget http://www.bennugd.org/downloads/bgd-1.0.0-r348-linux.tar.gz


Extract the files:
tar -zxvf bgd-1.0.0-r348-linux.tar.gz


Set execution permissions
chmod +x bin/*


Move files to the right folders
sudo mv bin/* /usr/local/bin/
sudo mv lib/* /usr/local/lib/


Refresh lib cache
sudo ldconfig -v



Install compatibility with 32 bits

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386
sudo apt-get install libncurses5:i386
sudo apt-get install libstdc++6:i386


Install BennuGD dependencies

sudo apt-get install zlib1g:i386
sudo apt-get install libssl1.0.0:i386
sudo apt-get install libsdl1.2debian:i386
sudo apt-get install libsdl-mixer1.2:i386
sudo apt-get install libpng12-0:i386
sudo apt-get install libssl1.0.0:i386



LibPNG12 isn't included on the latest Ubuntu release, so you might need to manually download it and install.

Hope it helps!
Working on Anarkade. A couch multiplayer 2D shooter.

Ryo Suzuki

Gracias, a ver si lo consigo.

Lo tengo en Win7 y me gustaría trabajar en Ubuntu mejor...

humbertodias

For debian x64
I usually use the following script:

BENNGD_VERSION=r333
dpkg --add-architecture i386 && \
apt update && \
apt install -y --no-install-recommends \
libc6:i386 libstdc++6:i386 libx11-6:i386 zlib1g:i386 \
libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-mixer1.2:i386 wget ca-certificates && \
\
wget https://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.13_i386.deb && \
dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.13_i386.deb && \
\
wget https://www.bennugd.org/downloads/old/bennugd-$BENNGD_VERSION-i386-linux-gnu.tar.gz && \
tar xvf bennugd-$BENNGD_VERSION-i386-linux-gnu.tar.gz && \
rm -f *.tar.gz *.deb

For macOS https://github.com/humbertodias/docker-bennugd-compiler