I was setting up local development environment for avogadrolibs and I am getting this error though I have installed all the Qt dependencies. Configuring is fine but there is a problem while building. Please help
That’s a bit odd.
Have you been following Building Source Code — Avogadro 1.99.0 documentation? There’s a fair bit of useful advice there.
In my experience these sorts of cryptic errors can often have non-obvious causes such as missing dependencies.
Yes I have followed every step of it from first cloning openchemistry then cloning avogadrolibs then avogadroapp to installing all dependencies all of it.
Moreover while configuring I get this output too.
What distro are you running?
I am running Ubuntu
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
We were compiling on Ubuntu 20.04 fairly recently. I think you need qt5-default
… but on newer Ubuntu, I think you need both qt5base-dev
and qtbase5-dev-tools
installed.
Those errors are coming up because your Qt version is too old – qt_add_resources
was added in Qt 5.15. In general Avogadro requires >=5.15, the final Qt5 LTS release (from 2020).
That kind of rules out compiling on Ubuntu 20.04, I’m afraid, as it comes with 5.13.
If you just want to make use of avogadrolibs
in your own program, you can install it from the Ubuntu repo. If you’re wanting to compile Avogadro yourself, or work on its code, then I think you might have to get a more recent development environment. The more recent the better, but Ubuntu 22.04 would be ok, it comes with 5.15.3 according to the above link.
If you have admin rights on your system and complete control over which version you are running, I heartily recommend upgrading to 24.10 and compiling against Qt6 instead, as that will give you a better experience.
Thank you so much!!! It finally worked after trying all day…I learnt a lot thanks again
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.