缺少用于从 N97 诺基亚设备收集传感器数据的 rrsensorapi.h

发布于 2024-08-30 00:48:09 字数 851 浏览 2 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千纸鹤 2024-09-06 00:48:09

正如诺基亚论坛讨论网站上所引用的,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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文