openscad / docker-openscad

OpenSCAD-related docker files
BSD 2-Clause "Simplified" License
10 stars 10 forks source link

The current docker build has a "cannot open shared object file" error #17

Closed DeflateAwning closed 7 months ago

DeflateAwning commented 7 months ago

Steps to reproduce:

  1. Run docker run --entrypoint=/bin/bash -it openscad/openscad:latest (link to version)
  2. Run openscad --version
  3. See the error message:
    openscad: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

Steps to fix:

In the container, I ran these commands:

apt install binutils
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

After that, running openscad --version was successful. The fix came from this unrelated thread.

t-paul commented 7 months ago

Fixed via https://github.com/openscad/docker-openscad/pull/18. Thanks!

DeflateAwning commented 7 months ago

The current latest tag has this error still:

docker run \
>     -it \
>     --rm \
>     -v $(pwd):/openscad \
>     -u $(id -u ${USER}):$(id -g ${USER}) \
>     openscad/openscad:latest \
>     openscad -o buckle.stl buckle.scad 
openscad: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

I think you may need to rebuild the "latest" tag using this fix. Not sure how bad that is.

Can confirm that this is the fix though. Using openscad/openscad:dev works.