We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-10-24 08:44:55 +0200 |
I follw the guide: https://habr.com/en/post/329692/ to read contacts in Sailfish Os. But when building the project , I encountered some errors.
ERROR [/usr/share/harbour-app-name/qml/pages/ContactModel.qml] Import 'org.nemomobile.contacts 1.0' is not allowed
INFO [harbour-app-name] Please see our FAQ here: https://harbour.jolla.com/faq#QML_API
FAILED
Requires
========
ERROR [nemo-qml-plugin-contacts-qt5] Dependency not allowed
INFO [harbour--app-name] Please see our FAQ here: https://harbour.jolla.com/faq#2.6.0 how to use '__provides_exclude_from' and '__requires_exclude' .spec file to avoid that
FAILED
I tried modifying the .spec file but still got the same error.
# >> macros
%define __provides_exclude_from ^%{_datadir}/.*$
# list here all the libraries your RPM installs
%define __requires_exclude ^nemo-qml-plugin-contacts-qt5.*$
# << macros
Can someone help me fix it?
Thank in advance.
2 | No.2 Revision |
I follw followed the guide: instructions: https://habr.com/en/post/329692/ to read contacts in Sailfish Os. But when building the project , I encountered some errors.
ERROR [/usr/share/harbour-app-name/qml/pages/ContactModel.qml] Import 'org.nemomobile.contacts 1.0' is not allowed
INFO [harbour-app-name] Please see our FAQ here: https://harbour.jolla.com/faq#QML_API
FAILED
Requires
========
ERROR [nemo-qml-plugin-contacts-qt5] Dependency not allowed
INFO [harbour--app-name] Please see our FAQ here: https://harbour.jolla.com/faq#2.6.0 how to use '__provides_exclude_from' and '__requires_exclude' .spec file to avoid that
FAILED
I tried modifying the .spec file but still got the same error.
# >> macros
%define __provides_exclude_from ^%{_datadir}/.*$
# list here all the libraries your RPM installs
%define __requires_exclude ^nemo-qml-plugin-contacts-qt5.*$
# << macros
Can someone help me fix it?
Thank in advance.