I create here a workaround with docker like this:
Install docker: https://www.docker.com/get-started, i will not explain too much about how to install docker but have alot of information on the internet, if some of get's stucked can contact me here, docker is nice container solution using LXC, where you can create `sudo` isolated enviroviments sharing the linux kernel but using base and diferent libraries, o this case the problem is the libc6, and downgrade is not possible, and compile using a diferent libc6 could be a pin a ***.
$ sudo apt install docker-engine
Install docker-compose:
sudo apt install docker-compose
1. Create a directory inside your game folder here a will call: docker-build
`mkdir docker-build`
2. Create inside the `docker-build` folder a file with name `Dockerfile` and paste this contents:
FROM ubuntu:18.04
RUN apt update
RUN apt install -y -qq build-essential \
libopenal-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libx11-dev \
libxext-dev \
libxrender-dev \
libxft-dev \
libcurl4-openssl-dev
RUN useradd leadwerks
ADD ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
RUN mkdir -p /home/leadwerks/.steam
USER leadwerks
WORKDIR /home/leadwerks/
ENTRYPOINT [ "/docker-entrypoint.sh" ]
3. Create inside the `docker-build` folder a file with name `docker-entrypoint` and paste this contents:
This is just place holder to keep the container always up
#!/bin/bash
while true; do
sleep 1
done
4. Create inside of your game folder root a file with name `docker-compose.yml` and paste this contents and modify the place holders on the text to your machine paths:
version: '2'
services:
leadwerks-build:
build: ./docker-build
volumes:
- ".:/home/leadwerks/<your-game-folder-inside-the-container>"
- "/home/<your-linux-host-ueser>/.steam:/home/leadwerks/.steam"
5. Run inside your game root folder to build, create and run the container:
$ sudo docker-compose up --build -d leadwerks-build
with it done your will have the env ready to compile your project.
6. Acessing the container to build your game:
$ sudo docker-compose exec leadwerks-build bash
After this command you will be inside your container, if you do not understand containers just keep in your mind its like a "virtual machine" but alot more efficient and lite and faster...
Anyway now you can just compile your project inside the container and it will build and the build results will inside your game folder.
When your finish you can stop the container by just to free memory:
$ sudo docker-compose stop leadwerks-build
i hope was helpful