OctoPrint-Klipper-mjpg-Dockerfile icon indicating copy to clipboard operation
OctoPrint-Klipper-mjpg-Dockerfile copied to clipboard

Update Dockerfile

Open Gerrit-KMeier opened this issue 2 years ago • 0 comments

Had to add libffi-dev else the build process unexpectectly aborts with this nasty error for some reason.

 arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/octoprint/venv/include -I/usr/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.8/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
         15 | #include <ffi.h>
            |          ^~~~~~~
      compilation terminated.
      error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
      ----------------------------------------

Gerrit-KMeier avatar Feb 09 '23 20:02 Gerrit-KMeier