Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Gerry_BB
Posts: 38
Registered: ‎12-06-2011
My Device: Playbook 64GB, Curve 9360, BB Z10 LE
My Carrier: Koodo

Location Diagnostics doesn't build

Hi,

 

I created a project called Location Diagnostics and copied the code from http://blackberry.github.com/Cascades-Samples/geo-locationdiagnostics.html for each file. However the project doesn't build unless I comment out these two lines : (in LocationSession.cpp ~line 42 & 43)

connect(m_satelliteSource, SIGNAL(satellitesInUseUpdated(const QList<QGeoSatelliteInfo> &)), this, SLOT(satellitesInUseUpdatedSlot(const QList<QGeoSatelliteInfo> &)));
                connect(m_satelliteSource, SIGNAL(satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &)), this, SLOT(satellitesInViewUpdatedSlot(const QList<QGeoSatelliteInfo> &)));

 After commenting out these lines the app builds and "seems" to work without issue. Looking at the API's for QGeoSatelliteInfoSource these two lines should not cause an issue. Any reason why this build error might be occurring?

 

Thanks,

 

Gerry

Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Location Diagnostics doesn't build

Whats the error? Its probably a namespace issue

Like all of my posts
Please use plain text.
Developer
Gerry_BB
Posts: 38
Registered: ‎12-06-2011
My Device: Playbook 64GB, Curve 9360, BB Z10 LE
My Carrier: Koodo

Re: Location Diagnostics doesn't build

The errors are : 

Description Resource Path Location Type
Signal/Slot "LocationSession.satellitesInUseUpdatedSlot(const QList<QGeoSatelliteInfo> &)" is not defined LocationSession.cpp /LocationDiagnostics/src line 42 QT C/C++ Problem

Description Resource Path Location Type
Signal/Slot "LocationSession.satellitesInViewUpdatedSlot(const QList<QGeoSatelliteInfo> &)" is not defined LocationSession.cpp /LocationDiagnostics/src line 43 QT C/C++ Problem

Description Resource Path Location Type
Signal/Slot "QGeoSatelliteInfoSource.satellitesInUseUpdated(const QList<QGeoSatelliteInfo> &)" is not defined LocationSession.cpp /LocationDiagnostics/src line 42 QT C/C++ Problem

Description Resource Path Location Type
Signal/Slot "QGeoSatelliteInfoSource.satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &)" is not defined LocationSession.cpp /LocationDiagnostics/src line 43 QT C/C++ Problem

 

Gerry

 

Please use plain text.