缺少用于从 N97 诺基亚设备收集传感器数据的 rrsensorapi.h
我对 symbian 和 c++ 很陌生。我尝试在 N97 设备上使用传感器。我收到错误消息,找不到 rrsensorapi.h。我检查过 epoc 文件夹,它也不在那里。在这种情况下,如何找到rrsensorapi?
我有这样的sensor.pri 文件
INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE
HEADERS += xqsensor.h \
xqaccsensor.h \
xqdeviceorientation.h \
xqdeviceorientation_p.h
SOURCES += xqsensor.cpp \
xqaccsensor.cpp \
xqdeviceorientation.cpp \
xqdeviceorientation_p.cpp
exists($${EPOCROOT}epoc32/release/winscw/udeb/RRSensorApi.lib)| \
exists($${EPOCROOT}epoc32/release/armv5/lib/RRSensorApi.lib) {
message( "Building for Sensor plugin" )
DEPENDPATH += .\plugin
HEADERS += xqsensor_p.h \
xqaccsensor_p.h
SOURCES += xqsensor_p.cpp \
xqaccsensor_p.cpp
symbian:LIBS += -lRRSensorApi
} else {
message("Warning: Sensor API not found!")
}
I am quite new with symbian and c++. I try to use sensor on N97 device. I got error that rrsensorapi.h is not found. I have check through epoc folder it not there either. In this case, how can I find rrsensorapi?
I have sensor.pri file like this
INCLUDEPATH += $APP_LAYER_SYSTEMINCLUDE
HEADERS += xqsensor.h \
xqaccsensor.h \
xqdeviceorientation.h \
xqdeviceorientation_p.h
SOURCES += xqsensor.cpp \
xqaccsensor.cpp \
xqdeviceorientation.cpp \
xqdeviceorientation_p.cpp
exists(${EPOCROOT}epoc32/release/winscw/udeb/RRSensorApi.lib)| \
exists(${EPOCROOT}epoc32/release/armv5/lib/RRSensorApi.lib) {
message( "Building for Sensor plugin" )
DEPENDPATH += .\plugin
HEADERS += xqsensor_p.h \
xqaccsensor_p.h
SOURCES += xqsensor_p.cpp \
xqaccsensor_p.cpp
symbian:LIBS += -lRRSensorApi
} else {
message("Warning: Sensor API not found!")
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如诺基亚论坛讨论网站上所引用的,RRSensorAPI 仅适用于某些 S60 第三版 FP1 设备...信息 此处。
S60v5 上传感器的 API 已更改...要解决在 N97(S60 第五版)上使用传感器的问题,请参阅 此诺基亚论坛上的 wiki 文档。
希望这有帮助...
As quoted on the Forum Nokia Discussions website, the RRSensorAPI works only with SOME S60 3rd Edition FP1 devices... Info here.
The API's for sensors on S60v5 have been changed... To solve your question of using sensors with the N97 (S60 5th Edition), refer to this wiki document on Forum Nokia.
Hope this helps...