Skip to content

Instantly share code, notes, and snippets.

@strangesast
Created December 3, 2021 23:21
Show Gist options
  • Save strangesast/970324077f0942627fc4b93462748e75 to your computer and use it in GitHub Desktop.
Save strangesast/970324077f0942627fc4b93462748e75 to your computer and use it in GitHub Desktop.
qemu fwlib x86 on arm
from debian
run apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
g++-i686-linux-gnu \
gcc-i686-linux-gnu \
qemu-user
run git clone https://github.com/strangesast/fwlib.git /usr/src/fwlib
workdir /usr/src/fwlib
run ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so && \
ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so.1 && \
ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so.1.0.0 && \
/usr/bin/i686-linux-gnu-g++ -L./ -Wl,-rpath . examples/c-minimal/main.c -lfwlib32 -lm -lpthread -o fanuc_minimal
env QEMU_LD_PREFIX=/usr/i686-linux-gnu/
cmd ["qemu-i386", "fanuc_minimal"]
#!/bin/bash
docker run --rm $(docker build -f Dockerfile -q .)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment