Skip to content

Commit 309e896

Browse files
committed
fix(P1): ldconfig-index the full LichtFeld build lib tree so the binary loads
lf_stage.sh's flat -type f copy missed symlinked sonames (libusd_*.so) and external-dep libs (libnvimgcodec.so.0, libOpenMeshCore). COPY the whole build-lf tree from the CACHED builder stage into /opt/lichtfeld-build and ldconfig-index every .so dir → binary resolves all libs regardless of RUNPATH. No recompile (builder stage layer unchanged). Image-size trim (strip .o/.a) is a follow-up. Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent d2ab464 commit 309e896

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Dockerfile.consolidated

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,20 @@ ENV PATH="/opt/vcpkg:${PATH}"
148148
# the system GUI/USD runtime libs the binary links so it loads headless (Xvfb).
149149
RUN mkdir -p /opt/gaussian-toolkit
150150
COPY --from=lichtfeld-builder /src/build /opt/gaussian-toolkit/build
151+
# Full LichtFeld build tree (vcpkg USD, nvImageCodec, OpenMesh, liblfs_*) from the
152+
# CACHED builder stage — every .so dir is ldconfig-indexed so the binary resolves
153+
# them regardless of RUNPATH/symlinks (lf_stage.sh's flat copy missed symlinked
154+
# sonames + external-dep libs). Copying from the cache means NO recompile.
155+
COPY --from=lichtfeld-builder /src/build-lf /opt/lichtfeld-build
151156
RUN apt-get update && apt-get install -y --no-install-recommends \
152157
libgtk-3-0 libgdk-pixbuf-2.0-0 libglib2.0-0 libgomp1 \
153158
libwayland-client0 libwayland-cursor0 libwayland-egl1 libxkbcommon0 \
154159
libdecor-0-0 libibus-1.0-5 libdbus-1-3 libsystemd0 libglu1-mesa \
155-
&& rm -rf /var/lib/apt/lists/*
160+
&& rm -rf /var/lib/apt/lists/* \
161+
&& { echo /opt/gaussian-toolkit/build; \
162+
find /opt/lichtfeld-build \( -name '*.so' -o -name '*.so.*' \) \
163+
-exec dirname {} \; | sort -u; } > /etc/ld.so.conf.d/lichtfeld.conf \
164+
&& ldconfig
156165
ENV PATH="/opt/gaussian-toolkit/build:${PATH}"
157166

158167
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)