1

我对 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!")

    }
4

1 回答 1

0

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...

于 2010-05-10T08:56:36.590 回答