> > >add sailfishapp also to the PKGCONFIG
Before you answered, I tried removing CONFIG += link_pkgconfig and only kept
PKGCONFIG += Qt5SystemInfo and it builds and works just fine!
Thank you guys!
___
SailfishOS.org Devel mailing list
To unsubscri
or just add sailfishapp in config AFTER link_pkgconfig entry ;)
-- Исходное сообщение --
От: "Kimmo Lindholm"
Кому: "Sailfish OS Developers"
Отправлено: 17.09.2015 1:58:51
Тема: Re: [SailfishDevel] Can't use QDeviceInfo
add sailfish
: [SailfishDevel] Can't use QDeviceInfo
> do you have such in your .pro
> CONFIG += link_pkgconfig
> PKGCONFIG += Qt5SystemInfo
Just added:
CONFIG += sailfishapp \
link_pkgconfig
PKGCONFIG += Qt5SystemInfo
Now I get:
undefined reference to `SailfishApp::m
> do you have such in your .pro
> CONFIG += link_pkgconfig
> PKGCONFIG += Qt5SystemInfo
Just added:
CONFIG += sailfishapp \
link_pkgconfig
PKGCONFIG += Qt5SystemInfo
Now I get:
undefined reference to `SailfishApp::main(int&, char**)'
___
Sailf
:41
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Can't use QDeviceInfo
Guys, PLEASE, help me, or soon I'll go nuts.
For days I've been struggling to use QtSystemInfo/QDeviceInfo to get IMEI. I
need to do it in C++, not in QML.
It is properly imported
Guys, PLEASE, help me, or soon I'll go nuts.
For days I've been struggling to use QtSystemInfo/QDeviceInfo to get IMEI. I
need to do it in C++, not in QML.
It is properly imported (e.g. #include ), QtCreator
recognizes it, but every time I try to build the project I end up with
"undefined refe