简体   繁体   中英

Link Live555 library - Qt

Currently I am working on a research project to find the best library to process RTSP streams. I'm struggling with finding how to link the Live555 library.. I have built the library using the .mak files but non of my includes work on the Qt KDE.. If anyone has experience in integrating the library please point me in the right direction. This is my .pro file:

.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

This is the error I'm getting

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

The path segment liveMedia/include seems to be duplicated in rtsp.h and INCLUDEPATH . The compiler is looking in these paths:

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

Try to add the folder C:/live555/live to INCLUDEPATH . If it's OK and you use full paths everywhere, you should remove current INCLUDEPATH contents.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM