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
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

MapView project from cascade sample doesn't find header file

The following header file can't be found by the compiler

#include <bb/platform/geo/Marker>

 Also here

http://developer.blackberry.com/cascades/reference/bb__platform__geo__marker.html

 

It says to add the library 

lbbcascadesmaps

Its already added in the project. The project is downloaded from 

https://github.com/blackberry/Cascades-Samples/tree/master/mapview

 

but the compiler says

Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATOR../src/MapViewDemo.cpp:26:34: fatal error: bb/platform/geo/Marker: No such file or directory

 I also could not find 

lbbcascadesmaps

 this library in the add library option of the project. I cleaned the project several times and also built it too. But it still shows that error.

Please use plain text.
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: MapView project from cascade sample doesn't find header file

Hi,

> Could not find qmake configuration directory

It seems that something is broken in project configuration. Try creating a new project in Momentics and moving everything from that sample project to it (including relevant directives in .pro file).

The header is present even in old SDK-s:
./target_10_0_9_2372/qnx6/usr/include/bb/platform/geo/Marker
./target_10_1_0_1020/qnx6/usr/include/bb/platform/geo/Marker

Andrey Fidrya, @zmeyc on twitter
Please use plain text.
BlackBerry Development Advisor (Retired)
garydev
Posts: 83
Registered: ‎10-10-2012
My Device: Z30
My Carrier: Bell

Re: MapView project from cascade sample doesn't find header file

jayvd - thanks for bringing this to our attention.

 

I'll check internally - watch this thread for an update to be posted wrt the fix.

 

g

Please use plain text.
BlackBerry Development Advisor (Retired)
garydev
Posts: 83
Registered: ‎10-10-2012
My Device: Z30
My Carrier: Bell

Re: MapView project from cascade sample doesn't find header file

Do you have the most recent version of our development environment?

 

Please download and try - and please let me know if this is still an issue.

 

Thanks,

 

-g

Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: MapView project from cascade sample doesn't find header file

Yes I have been using the most recent version of the environment. When I go to help->about QNX Momentics IDE, it shows that the version is 10.2.0. When I look into the installation details I see the version is 10.2.0.v201306031341. When I check for software update it shows there are no updates.

 

Now I have the same issue with the geofencing library. When I try to add library from configure->add library->standard blackberry platfrom library, I don't see libgeomonitor in there. I search for it but nothing is found. I have manually added libgeomonitor in my pro file. This is the console output when I build the project with #include<bps/geomonitor.h>

 

13:22:11 **** Auto Build of configuration Simulator-Debug for project GeoNotification ****
make Simulator-Debug 
make -C .//translations -f Makefile update
make[1]: Entering directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/translations'
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lupdate GeoNotification.pro
Updating 'GeoNotification.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
make[1]: Leaving directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/translations'
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lrelease GeoNotification.pro
The directory name is invalid.
Updating 'G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/translations/GeoNotification.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make[1]: Leaving directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/x86'
make -f Makefile.Debug
make[2]: Entering directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/x86'
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/GeoNotification -Wno-psabi -lang-c++ -fstack-protector-strong -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../GeoNotification -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtSql -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4 -I../src -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/qt4/QtSql -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/bb/data -I../src -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/bb/system -I../src -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/wifi -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/wifi -IC:/bbndk/target_10_0_9_1673/qnx6/usr/include/bb/system -I../src -Io-g/.moc -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include -Ic:/bbndk/target_10_0_9_1673/qnx6/usr/include/freetype2 -I. -o o-g/.obj/LocationMonitor.o ../src/LocationMonitor.cpp
Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATORIn file included from ../src/LocationMonitor.cpp:8:0:
make[2]: Leaving directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/x86'
../src/LocationMonitor.hpp:11:28: fatal error: bps/geomonitor.h: No such file or directory
make[1]: Leaving directory `G:/Google Drive/BB10_WORKSPACE/ndk-10.2.0-workspace/GeoNotification/x86'
compilation terminated.
cc: C:/bbndk/host_10_0_9_404/win32/x86/usr/lib/gcc/i486-pc-nto-qnx8.0.0/4.6.3/cc1plus caught signal 1
make[2]: *** [o-g/.obj/LocationMonitor.o] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2

13:22:12 Build Finished (took 951ms)

I have also tried adding #include <geomonitor.h>. Doesn't work either. The pro file is

APP_NAME = GeoNotification

CONFIG += qt warn_on cascades10

LIBS += -lsqlite3 -lbbdata -lbbpim -lbbcascadesplaces -lbtapi -lbbsystem -lwifi -libgeomonitor
QT+= sql

INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtSql ${QNX_TARGET}/usr/include/bb/data
INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/bb/system
INCLUDEPATH += ../src ${QNX_TARGET}/usr/include/wifi
 
 
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/qt4/QtSql ${QNX_TARGET}/usr/include/bb/data
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/bb/system
DEPENDPATH += ../src ${QNX_TARGET}/usr/include/wifi

include(config.pri)

 I am really stuck on this problem. And I really need help. Thanks.

 

Please use plain text.