How do we install a missing module?
-
I was following a tutorial that calls for Charts, and got an error on attempting to add it to the .pro file.
I can find no way to install it. The Maintenance Tool apparently isn't it. This is on Mac OS, latest version (Mojave).
Any ideas on this? Thanks!
-
Hi,
IIRC, QtCharts is part of Qt 5.12.0.
Are you sure you are building your project with the version of Qt ?
-
Thanks for your reply. Yes, it's the only version I've ever installed.
-
Then you already have the module at hand.
What exact problem do you have ?
-
If I put this in my .pro file:
QT += core gui charts
I get this:
Project ERROR: Unknown module(s) in QT: charts
-
Can you show your Kit and Qt versions panel in the preferences ?
-
Sure:
-
Good, do you see QtCharts in /Developer/Qt/5.12.0/clang_64/lib/` ?
-
Nope. It goes from QtBluetooth to QtConcurrent... no QtCharts in between.
-
Start the MaintenanceTool application and go in add/remove components. Deploy Qt 5.12.0, you'll see the Qt Charts module as an option there. Just check it, continue and you'll have it.
-
Unfortunately not. See my original post; there are no individual modules shown in the maintenance tool.
-
Are you using the online of offline installer ?
If you run the installer in place of the MaintenanceTool do you see Qt Charts as an option ?
-
Offline, and nope; there are no components shown in the installer.
Correction: It won't let me get that far, because it complains that Qt is already installed in the destination directory.
Just tried the online installer and it behaves the same way.
-
@Stokestack Using online installer you can install QtCharts but not into your existing Qt installation. You can remove your existing Qt and use online installer instead.
-
@jsulm Thanks. I had to uninstall the entire thing and re-install.
I used the offline installer again, and it does offer options for the components. So I installed them all, and now Charts is there.
It seems that the maintenance app is defective, since the "add" function doesn't show anything that isn't already installed.
-
@Stokestack Can be, I don't use offline installer, so can't comment on that