mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
Add GLOMAP to Dockerfile (#3565)
add GLOMAP to dockerfile Co-authored-by: Jonáš Kulhánek <jonas.kulhanek@live.com>
This commit is contained in:
1 parent
66cd6817f9
commit
62ab373f7e
1 file changed
+23
-1
+23
-1
@@ -24,7 +24,7 @@ ENV QT_XCB_GL_INTEGRATION=xcb_egl
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends --no-install-suggests \
|
apt-get install -y --no-install-recommends --no-install-suggests \
|
||||||
git \
|
git \
|
||||||
cmake \
|
wget \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
build-essential \
|
build-essential \
|
||||||
libboost-program-options-dev \
|
libboost-program-options-dev \
|
||||||
@@ -46,6 +46,27 @@ RUN apt-get update && \
|
|||||||
python3.10-dev \
|
python3.10-dev \
|
||||||
python3-pip
|
python3-pip
|
||||||
|
|
||||||
|
# Build and install CMake
|
||||||
|
RUN wget https://github.com/Kitware/CMake/releases/download/v3.31.3/cmake-3.31.3-linux-x86_64.sh \
|
||||||
|
-q -O /tmp/cmake-install.sh \
|
||||||
|
&& chmod u+x /tmp/cmake-install.sh \
|
||||||
|
&& mkdir /opt/cmake-3.31.3 \
|
||||||
|
&& /tmp/cmake-install.sh --skip-license --prefix=/opt/cmake-3.31.3 \
|
||||||
|
&& rm /tmp/cmake-install.sh \
|
||||||
|
&& ln -s /opt/cmake-3.31.3/bin/* /usr/local/bin
|
||||||
|
|
||||||
|
# Build and install GLOMAP.
|
||||||
|
RUN git clone https://github.com/colmap/glomap.git && \
|
||||||
|
cd glomap && \
|
||||||
|
git checkout "1.0.0" && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
mkdir -p /build && \
|
||||||
|
cmake .. -GNinja "-DCMAKE_CUDA_ARCHITECTURES=${CUDA_ARCHITECTURES}" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/build/glomap && \
|
||||||
|
ninja install -j1 && \
|
||||||
|
cd ~
|
||||||
|
|
||||||
# Build and install COLMAP.
|
# Build and install COLMAP.
|
||||||
RUN git clone https://github.com/colmap/colmap.git && \
|
RUN git clone https://github.com/colmap/colmap.git && \
|
||||||
cd colmap && \
|
cd colmap && \
|
||||||
@@ -123,6 +144,7 @@ RUN apt-get update && \
|
|||||||
|
|
||||||
# Copy packages from builder stage.
|
# Copy packages from builder stage.
|
||||||
COPY --from=builder /build/colmap/ /usr/local/
|
COPY --from=builder /build/colmap/ /usr/local/
|
||||||
|
COPY --from=builder /build/glomap/ /usr/local/
|
||||||
COPY --from=builder /usr/local/lib/python3.10/dist-packages/ /usr/local/lib/python3.10/dist-packages/
|
COPY --from=builder /usr/local/lib/python3.10/dist-packages/ /usr/local/lib/python3.10/dist-packages/
|
||||||
COPY --from=builder /usr/local/bin/ns* /usr/local/bin/
|
COPY --from=builder /usr/local/bin/ns* /usr/local/bin/
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user