Not sure if it is applicable, but I got Paraview to work. Which it install its icon like this.
foreach (iconsize IN ITEMS 22x22 32x32 96x96 128x128)
install(
FILES "pvIcon-${iconsize}.png"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${iconsize}/apps"
RENAME paraview.png
COMPONENT runtime)
endforeach ()
I will try manually patching Avogadro and see if I can do it this way.
Update:
I ended up doing this to install icons for Flatpak.
/app dir is unique to Flatpak. I think it replaces /usr.
install -Dm644 avogadro/icons/avogadro2_64.png /app/share/icons/hicolor/64x64/apps/avogadro2.png
- install -Dm644 avogadro/icons/avogadro2_128.png /app/share/icons/hicolor/128x128/apps/avogadro2.png
- install -Dm644 avogadro/icons/avogadro2_256.png /app/share/icons/hicolor/256x256/apps/avogadro2.png
- install -Dm644 avogadro/icons/avogadro2_512.png /app/share/icons/hicolor/512x512/apps/avogadro2.png
Hi,
Do you know if VTK that Avogadro use can compile on ARM CPU?
Edit: I got it to build. Adding -DVTK_BUILD_COMPILE_TOOLS_ONLY:BOOL=ON solve it.
I also got it to build in Flathub now.
flathub:new-pr
← kevinsmia1939:org.openchemistry.Avogadro2
opened 04:25PM - 31 Mar 21 UTC
### Please confirm your submission meets all the criteria
- [x] I have read t… he [App Requirements][reqs] and [App Maintenance][maint] pages.
- [x] My pull request follows the instructions at [App Submission][submission].
- [x] I am using only the minimal set of permissions. *(If not, please explain each non-standard permission.)*
- [x] All assets referenced in the manifest are redistributable by any party. If not, the unredistributable parts are using an extra-data source type.
- [x] I am an upstream contributor to the project. If not, I contacted upstream developers about submitting their software to Flathub. **Link:** https://discuss.avogadro.cc/t/im-creating-flatpak-for-avogadro2-need-help-on-spglib/3456/17
- [ ] I own the domain used in the application ID or the domain has a policy for delegating subdomains (e.g. GitHub, SourceForge).
- [x] Any additional patches or files have been submitted to the upstream projects concerned. *(If not, explain why.)*
[reqs]: https://github.com/flathub/flathub/wiki/App-Requirements
[maint]: https://github.com/flathub/flathub/wiki/App-Maintenance
[submission]: https://github.com/flathub/flathub/wiki/App-Submission
Can try install it with
flatpak install --user https://dl.flathub.org/build-repo/42811/org.openchemistry.Avogadro2.flatpakref
Also, do you need protocall?
1 Like
Hi I could not compile protocall. Not sure why.
I got many kind of this error.
undefined reference to `google::protobuf::DescriptorPool::DescriptorPool()’