-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing dependencies in Open3D-viewer post-install script #7180
base: main
Are you sure you want to change the base?
Fix missing dependencies in Open3D-viewer post-install script #7180
Conversation
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
The script `cpp/apps/Open3DViewer/postinstall-linux.sh` was generating the following error messages: ```bash ``` This PR adds the necessary dependencies for installation: `update-desktop-database` is provided by `desktop-file-utils` `gtk-update-icon-cache` is provided by `gtk-update-icon-cache` Signed-off-by: Meet Gandhi <[email protected]>
27e767e
to
0279fdb
Compare
Hi @meetgandhi-dev these packages are installed in the standard Ubuntu desktop install. Which OS / variant were they missing from? |
Hi @ssheorey |
Ah I see. This is a post install script, so meant to be run on the users system after installation. I'm not sure if running it inside docker is useful. The issue with adding these 2 packages to docker is that they will pull in the entire Ubuntu desktop, which will make the docker image significantly larger. I would recommend instead modifying the post install script so that it does not run these commands if they are not found in the system. |
@ssheorey Understood. |
I don't think these should be dependencies - dependencies are supposed to be mandatory, while these are optional convenience utilities. We run them if present, else don't do anything. I think the post install script is included in the Debian package for the viewer at the moment (see the open3d-viewer deb package in github releases.) |
Got it. I will update the script accordingly.
I think the post-install script is executed during the Cmake installation process (ref) and is not part of the debian package. However, the required dependencies are not available in the Docker image, so they aren't being installed. I propose using the postinst feature of the CPack DEB to trigger the installation script during the Debian package installation. (This will only execute commands if the dependencies are available, as mentioned above.) |
Fix missing dependencies in Open3D-viewer post-install script
Type
Motivation and Context
The script
cpp/apps/Open3DViewer/postinstall-linux.sh
was generating the following error messages:This PR adds the necessary dependencies for installation:
update-desktop-database
is provided by desktop-file-utilsgtk-update-icon-cache
is provided by gtk-update-icon-cacheChecklist:
python util/check_style.py --apply
to apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
Log snippet while generating TXZ package