链接Live555库 - Qt

时间:2015-11-10 14:27:02

标签: c++ qt live555

目前,我正在开展一项研究项目,以找到处理RTSP流的最佳库。我正在努力寻找如何链接Live555库..我已经使用.mak文件构建了库但不包括我在Qt KDE上的工作..如果有人有集成库的经验,请指出我在右边方向。 这是我的.pro文件:

的.pro

TEMPLATE = app

QT += qml quick widgets

SOURCES += main.cpp \
    rtsp.cpp

RESOURCES += qml.qrc

LIVE555_LIBRARY_PATH = C:/live555/live

INCLUDEPATH +=
C:/live555/live/BasicUsageEnvironment/include
C:/live555/live/groupsock/include
C:/live555/live/liveMedia/include
C:/live555/live/UsageEnvironment/include

LIBS +=
C:/live555/live/BasicUsageEnvironment/libBasicUsageEnvironment.lib
C:/live555/live/groupsock/libgroupsock.lib
C:/live555/live/liveMedia/libliveMedia.lib
C:/live555/live/UsageEnvironment/libUsageEnvironment.lib

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Default rules for deployment.
include(deployment.pri)

HEADERS += \
    rtsp.h

这是我得到的错误

Live555QML\rtsp.h:3: error: C1083: 
Cannot open include file: 'liveMedia/include/AC3AudioRTPSink.hh': No such file or directory

2 个答案:

答案 0 :(得分:1)

路径段liveMedia/include似乎在rtsp.hINCLUDEPATH中重复。编译器正在查看这些路径:

C:/live555/live/BasicUsageEnvironment/include/liveMedia/include/AC3AudioRTPSink.hh
C:/live555/live/groupsock/include/liveMedia/include/AC3AudioRTPSink.hh
C:/live555/live/liveMedia/include/liveMedia/include/AC3AudioRTPSink.hh
C:/live555/live/UsageEnvironment/include/liveMedia/include/AC3AudioRTPSink.hh

尝试将文件夹C:/live555/live添加到INCLUDEPATH。如果没有问题,并且您在任何地方都使用完整路径,则应删除当前的INCLUDEPATH内容。

答案 1 :(得分:0)

INCLUDEPATH + = C:\ live555 \ live \ liveMedia \ include \     C:\ live555 \ live \ groupsock \ include \     C:\ live555 \ live \ UsageEnvironment \ include \     C:\ live555 \ live \ BasicUsageEnvironment \ include