Search Unity

xvfp-run missing UnityPlayer.so error

Discussion in 'Unity Simulation' started by iosphere, Sep 26, 2020.

Thread Status:
Not open for further replies.
  1. iosphere

    iosphere

    Joined:
    Dec 28, 2019
    Posts:
    13
    SOLVED: Running this tutorial: https://github.com/Unity-Technologies/Unity-Simulation-Docs/blob/master/doc/testing.md , xvfb-run inside my Docker container is failing with this error message:

    upload_2020-9-25_22-13-20.png

    This is fixed by another update to Dockerfile, which should look like this:

    # What is the base image to pull
    FROM python:3.7.2-stretch

    # Update package lists
    RUN apt-get update

    # Install xvfb to execute the Unity build on the container
    RUN apt-get install -y xvfb

    # Copy the executable and _Data directory to /tmp
    COPY RollaballLinuxBuild/rollaball_linux_build/rollaball.x86_64 /tmp/linux_build.x86_64
    COPY RollaballLinuxBuild/rollaball_linux_build/rollaball_Data /tmp/linux_build_Data

    # Copy the UnityPlayer shared object file to /tmp
    COPY RollaballLinuxBuild/rollaball_linux_build/UnityPlayer.so /tmp/UnityPlayer.so


    (Note that the code above also incorporates the fix I reported at https://forum.unity.com/threads/solved-copy-failed-on-docker-build.977481/ )
     

    Attached Files:

    Last edited: Sep 26, 2020
  2. stevenke_unity

    stevenke_unity

    Joined:
    Nov 13, 2018
    Posts:
    30
Thread Status:
Not open for further replies.