0

I'm trying to use the QtContacts module. I'm using ubuntu artful and qt 5.10

I've tried this:

sudo apt-get install qml-module-qtcontacts

and this:

sudo apt-get install qtdeclarative5-qtcontacts-plugin

I put in the .pro file: QT += androidextras contacts, but I get the message: Project ERROR: Unknown module(s) in QT: contacts

I also tried this answer: How to install a missing Qt module?

But the module doesn't appear in the modules list:

enter image description here

What did I miss?

QtVersion: enter image description here

I downloaded the qt-unified-linux-x64-3.0.2-online.run in this link: https://www.qt.io/download

Fagner Fonseca
  • 293
  • 1
  • 4
  • 15

1 Answers1

1

I would try fetching from here, and install with configure/make/make install.

Looking at this documentation, it seems that there is a Contacts API, and a Contacts QML plugin.

Looking at the pro file in this example, there is no contact module appended to QT, but a CONFIG entry like this:

 CONFIG += mobility
 MOBILITY = contacts
p-a-o-l-o
  • 9,807
  • 2
  • 22
  • 35
  • In the github link you shared the last commit was made 7 years ago. Are you sure this version should compile successfully? – Fagner Fonseca Feb 27 '18 at 02:18
  • I tried make the project from github, but I got the messages: `recipe for target '../../build/Debug/QtSystemInfo/qsysteminfo_linux.o' failed` and `recipe for target 'sub-systeminfo-make_default' failed`. Thanks for your tips, they were very valuable and helped me a lot. I'm trying to install the QtMobility some how. Maybe the problem is my ubuntu version. It seems the qtmobility was not released in artful: launchpad.net/ubuntu/artful/+source/qtmobility – Fagner Fonseca Feb 27 '18 at 02:30