Docker build issues
Is there an existing issue for this problem?
- [X] I have searched the existing issues
OrcaSlicer Version
v2.0.0
Operating System (OS)
Linux
OS Version
Docker (ubuntu:22.04)
Additional system information
No response
Printer
Bambu Lab X1C
How to reproduce
Run DockerBuild.sh
Actual results
Build fails at "RUN ./BuildLinux.sh -s" due to missing dependency OpenVDB.
Expected results
Build succeed, image created.
Project file & Debug log uploads
N/A
Checklist of files to include
- [ ] Log file
- [ ] Project file
Anything else?
The dependency phase of the docker build ("RUN ./BuildLinux.sh -d") is failing but masked by an "exit 0". The deps aren't fully built resulting in the slicer phase failing.
Comparing with BambuStudio, it looks like the MPFR dependency cmake file (deps/MPFR/MPFR.cmake) was altered, adding autoreconf:
33c33,34
< CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
---
> CONFIGURE_COMMAND autoreconf -f -i &&
> env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
This requires libtoolize which is not installed in the Dockerfile. There also seem to be some workarounds that can be removed once libtool is added (masking BuildLinux.sh -d with exit 0, installing libcgal-dev).
Opened PR #5139 to fix