INCLUDEPATH += $$PWD/../onviflibs/onvifcore/OnvifDiscoveryLib/onvif\ $$PWD/../onviflibs/onvifcore/OnvifDeviceLib/onvif\ $$PWD/../onviflibs/onvifcore/OnvifEventLib/onvif\ $$PWD/../onviflibs/OnvifAnalyticsLib/onvif\ $$PWD/../onviflibs/OnvifReceiverLib/onvif\ $$PWD/../onviflibs/OnvifVideoAnalyticsDeviceLib/onvif\ $$PWD/../onviflibs/OnvifRecordingControlLib/onvif\ $$PWD/../onviflibs/OnvifRecordingSearchLib/onvif\ $$PWD/../onviflibs/OnvifReplayControlLib/onvif\ $$PWD/../onviflibs/OnvifDisplayLib/onvif\ $$PWD/../onviflibs/OnvifPTZLib/onvif\ $$PWD/../onviflibs/OnvifMediaLib/onvif,上面代码正确吗
时间: 2023-08-01 17:07:02 浏览: 111
这段代码看起来也没有语法错误,但是同样需要将路径中的反斜杠`\`改成斜杠`/`。因此正确的写法是:
```
INCLUDEPATH += $$PWD/../onviflibs/onvifcore/OnvifDiscoveryLib/onvif \
$$PWD/../onviflibs/onvifcore/OnvifDeviceLib/onvif \
$$PWD/../onviflibs/onvifcore/OnvifEventLib/onvif \
$$PWD/../onviflibs/OnvifAnalyticsLib/onvif \
$$PWD/../onviflibs/OnvifReceiverLib/onvif \
$$PWD/../onviflibs/OnvifVideoAnalyticsDeviceLib/onvif \
$$PWD/../onviflibs/OnvifRecordingControlLib/onvif \
$$PWD/../onviflibs/OnvifRecordingSearchLib/onvif \
$$PWD/../onviflibs/OnvifReplayControlLib/onvif \
$$PWD/../onviflibs/OnvifDisplayLib/onvif \
$$PWD/../onviflibs/OnvifPTZLib/onvif \
$$PWD/../onviflibs/OnvifMediaLib/onvif
```
需要注意的是,这个代码片段中的`$$PWD`表示当前文件所在的目录。
阅读全文