-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pymeshlab can be built on linux aarch64 architecture
- Loading branch information
1 parent
803f3a4
commit 047bd79
Showing
15 changed files
with
225 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# must use ubuntu:22.04 for qt 5.15 | ||
FROM --platform=linux/aarch64 ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG USERNAME=pymeshlab | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
ARG PYTHON_VERSION=3.11 | ||
|
||
ENV LD_LIBRARY_PATH=/workspaces/pymeshlab/pymeshlab/lib/ | ||
|
||
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
build-essential \ | ||
fontconfig \ | ||
fuse \ | ||
gdb \ | ||
git \ | ||
kmod \ | ||
libboost-dev \ | ||
libdbus-1-3 \ | ||
libegl-dev \ | ||
libfuse2 \ | ||
libgmp-dev \ | ||
libglu1-mesa-dev \ | ||
libmpfr-dev \ | ||
libpulse-mainloop-glib0 \ | ||
libtbb-dev \ | ||
libxerces-c-dev \ | ||
patchelf \ | ||
qtbase5-dev \ | ||
qt5-qmake \ | ||
rsync \ | ||
# to be removed | ||
unzip \ | ||
wget | ||
|
||
# install python | ||
RUN apt-get -y install software-properties-common && \ | ||
add-apt-repository ppa:deadsnakes/ppa -y && apt-get -y update && \ | ||
apt-get -y install python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-distutils && \ | ||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 && \ | ||
wget https://bootstrap.pypa.io/get-pip.py && \ | ||
python${PYTHON_VERSION} get-pip.py && \ | ||
rm get-pip.py && \ | ||
pip install numpy | ||
|
||
# install latest cmake and embree | ||
RUN apt-get -y purge --auto-remove cmake && \ | ||
wget -qO- "https://cmake.org/files/v3.19/cmake-3.19.3-Linux-aarch64.tar.gz" \ | ||
| tar --strip-components=1 -xz -C /usr/local &&\ | ||
# wget -qO- "https://github.com/embree/embree/releases/download/v4.3.2/embree-4.3.2.x86_64.linux.tar.gz" \ | ||
# | tar -xz -C /usr/local && \ | ||
# bash /usr/local/embree-vars.sh && \ | ||
wget -q "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip" && \ | ||
unzip -o ninja-linux-aarch64.zip -d /usr/bin/ && \ | ||
rm ninja-linux-aarch64.zip && \ | ||
chmod +x /usr/bin/ninja && \ | ||
apt-get -y remove wget unzip && \ | ||
apt-get -y autoremove && \ | ||
apt-get -y clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Generating a universally unique ID for the Container | ||
RUN dbus-uuidgen > /etc/machine-id | ||
|
||
# Create the user | ||
RUN groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
# [Optional] Add sudo support. | ||
&& apt-get update \ | ||
&& apt-get install -y sudo \ | ||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
&& chmod 0440 /etc/sudoers.d/$USERNAME | ||
|
||
USER $USERNAME |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab aarch64 wheel for Python 3.10", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_x86_64", | ||
"args": { | ||
"PYTHON_VERSION": "3.10" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
4 changes: 2 additions & 2 deletions
4
...tainer/build_wheel_3_10/devcontainer.json → ...build_wheel_3_10_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab aarch64 wheel for Python 3.11", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_x86_64", | ||
"args": { | ||
"PYTHON_VERSION": "3.11" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
4 changes: 2 additions & 2 deletions
4
...tainer/build_wheel_3_11/devcontainer.json → ...build_wheel_3_11_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab aarch64 wheel for Python 3.12", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_x86_64", | ||
"args": { | ||
"PYTHON_VERSION": "3.12" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
4 changes: 2 additions & 2 deletions
4
...tainer/build_wheel_3_12/devcontainer.json → ...build_wheel_3_12_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab aarch64 wheel for Python 3.8", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_x86_64", | ||
"args": { | ||
"PYTHON_VERSION": "3.8" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
4 changes: 2 additions & 2 deletions
4
...ntainer/build_wheel_3_8/devcontainer.json → .../build_wheel_3_8_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab aarch64 wheel for Python 3.9", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_x86_64", | ||
"args": { | ||
"PYTHON_VERSION": "3.9" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
4 changes: 2 additions & 2 deletions
4
...ntainer/build_wheel_3_9/devcontainer.json → .../build_wheel_3_9_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "Develop PyMeshLab aarch64", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile_aarch64", | ||
"args": { | ||
"PYTHON_VERSION": "3.12" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-ti", | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined", | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
// vscode extensions | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"ms-vscode.cmake-tools" | ||
], | ||
"settings": { | ||
"cmake.buildDirectory": "${workspaceFolder}/build", | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
.devcontainer/develop/devcontainer.json → ...ontainer/develop_x86_64/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters