Skip to content

Commit

Permalink
[docker] Copy missing libassimpsceneimport.so
Browse files Browse the repository at this point in the history
`libassimpsceneimport.so` is missing from Qt 5.15.2 and must therefore
be added manually. Without it, there will be no OBJ files support in the
3D Viewer.
  • Loading branch information
cbentejac committed Jul 5, 2023
1 parent 313c7cd commit b07751d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile_centos
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ RUN source scl_source enable rh-python36 && \
${MESHROOM_BUNDLE}/lib/PySide2/rcc \
${MESHROOM_BUNDLE}/lib/PySide2/designer

# Copy missing libassimpsceneimport.so
COPY dl/libassimpsceneimport.so ${MESHROOM_BUNDLE}/lib/PySide2/Qt/plugins/sceneparsers

# Enable SSH X11 forwarding, needed when the Docker image
# is run on a remote machine
RUN yum -y install openssh-server xauth mesa-dri-drivers && \
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile_ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ RUN make "-j$(nproc)" && \
${MESHROOM_BUNDLE}/aliceVision/share/man/ \
aliceVision/share/pkgconfig

# Copy missing libassimpsceneimport.so
COPY dl/libassimpsceneimport.so ${MESHROOM_BUNDLE}/lib/PySide2/Qt/plugins/sceneparsers

# Enable SSH X11 forwarding, needed when the Docker image
# is run on a remote machine
RUN apt install ssh xauth && \
Expand Down
4 changes: 4 additions & 0 deletions docker/build-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ test -d dl || \
test -f dl/qt.run || \
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"

# Download a prebuilt assimp importer to address https://bugreports.qt.io/browse/QTBUG-88821
test -f dl/libassimpsceneimport.so || \
wget --no-check-certificate "https://gdirect.cc/d/bBomG&type=1" -O "dl/libassimpsceneimport.so"


# DEPENDENCIES

Expand Down
4 changes: 4 additions & 0 deletions docker/build-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ test -d dl || \
test -f dl/qt.run || \
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"

# Download a prebuilt assimp importer to address https://bugreports.qt.io/browse/QTBUG-88821
test -f dl/libassimpsceneimport.so || \
wget --no-check-certificate "https://gdirect.cc/d/bBomG&type=1" -O "dl/libassimpsceneimport.so"

# DEPENDENCIES
docker build \
--rm \
Expand Down

0 comments on commit b07751d

Please sign in to comment.