mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
Install the icon of the application in the hicolor XDG icon theme; this way it can be properly loaded by XDG menus in the currently set XDG icon theme, without looking in the legacy pixmaps location. As result, adapt the desktop file by removing the full path to the icon (which was already buggy for installations in prefixes different than /usr), so the bare icon name will be searched in the XDG icon theme as expected. Also, remove the manual icon copying in a bundle script, as the icon is installed in the right place now.
Linux Scripts
This folder contains a series of scripts to build and deploy MeshLab under a Linux environment (tested on Ubuntu 16.04, 18.04 and 20.04).
0_setup_env_ubuntu.sh: this script installs all the required dependencies that are necessary to build MeshLab in an Ubuntu distro (tested in 16.04, 18.04 and 20.04). If you never installed Qt and other libraries, you should run it before any other script;1_build.sh: this script builds MeshLab in a Linux environment:- it requires a properly set Qt environment (see
0_setup_env_ubuntu.sh); - takes as arguments:
- the build directory (default:
src/build):--build_path=path/to/build - the install directory (default:
src/install):--install_path=path/to/install - the number of cores used to build MeshLab (default:
-j4)` - the possibility to build MeshLab with double precision scalar:
--double_precision
- the build directory (default:
- it requires a properly set Qt environment (see
2_deploy.sh: this script makes the given path a portable version of MeshLab. Takes as arguments:- the path where the output install path of the
1_build.shscript is placed (default:src/install):--install_path=path/to/install
- the path where the output install path of the
3_appimage.sh: this script computes, starting from the portable folder of MeshLab, an AppImage that can be run in a Linux Environment without dependencies. Takes as arguments:- the path where the output install path of the
2_deploy.shscript is placed (default:src/install):--install_path=path/to/install - if MeshLab has been built with double precision scalar, add:
--double_precision
- the path where the output install path of the
make_it.sh: this script builds, deploys and generates an AppImage that can be run in a Linux Environment without dependencies. Arguments are the same of the1_build.shscript.
NOTE: linux_deploy.shand linux_make_it.sh use LinuxDeployQt, which allows to deploy applications only running the oldest supported linux distro (see this) in order to guarantee the largest support possible. Therefore, before running these scripts, be sure that your Linux distribution is the oldest supported one.
Examples
Building MeshLab on a clean Linux environment (build placed in meshlab/src/build):
git clone --recursive https://github.com/cnr-isti-vclab/meshlab
bash meshlab/scripts/Linux/0_setup_env_ubuntu.sh
bash meshlab/scripts/Linux/1_build.sh
Building and generating AppImage on a clean Ubuntu 16.04 (last supported distro) environment:
- build directory:
./meshlab-build - install directory:
./meshlab-install - AppImage path:
./
git clone --recursive https://github.com/cnr-isti-vclab/meshlab
bash meshlab/scripts/Linux/0_setup_env_ubuntu.sh
bash meshlab/scripts/Linux/make_it.sh --build_path="./meshlab-build" --install_path="./meshlab-install"