live555ProxyServerEx
live555ProxyServerEx copied to clipboard
building over debian fail
Hello,
I followed your step from linux64 but end up having:
c++ -c -I/usr/include/UsageEnvironment -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -m64 -fPIC -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -Wno-deprecated -DBSD=1 live555ProxyServerEx.cpp
live555ProxyServerEx.cpp: In function 'RTSPServer* createRTSPServer(Port)':
live555ProxyServerEx.cpp:78:54: error: no matching function for call to 'RTSPServerWithREGISTERProxying::createNew(UsageEnvironment&, Port&, UserAuthenticationDatabase*&, UserAuthenticationDatabase*&, int, Boolean&, int&, const char*, const char*)'
password.length() > 0 ? password.c_str() : NULL);
^
In file included from /usr/include/liveMedia/RTSPClient.hh:35:0,
from /usr/include/liveMedia/RTSPRegisterSender.hh:26,
from /usr/include/liveMedia/liveMedia.hh:100,
from live555ProxyServerEx.cpp:28:
/usr/include/liveMedia/RTSPServer.hh:308:42: note: candidate: static RTSPServerWithREGISTERProxying* RTSPServerWithREGISTERProxying::createNew(UsageEnvironment&, Port, UserAuthenticationDatabase*, UserAuthenticationDatabase*, unsigned int, Boolean, int)
static RTSPServerWithREGISTERProxying* createNew(UsageEnvironment& env, Port ourPort = 554,
^~~~~~~~~
/usr/include/liveMedia/RTSPServer.hh:308:42: note: candidate expects 7 arguments, 9 provided
Makefile:30: recipe for target 'live555ProxyServerEx.o' failed
make: *** [live555ProxyServerEx.o] Error 1
Do you have any idea on what could cause this ?
here is the version of live555 that i have:
root@2f8f163d9e44:/live555ProxyServerEx# apt-get install livemedia-utils liblivemedia-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblivemedia-dev is already the newest version (2016.11.28-1).
livemedia-utils is already the newest version (2016.11.28-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and here my debian version:
root@2f8f163d9e44:/live555ProxyServerEx# cat /etc/debian_version
9.5
2016.11.28 is too old, use latest version from the official website (2018.10.10)
I actually use this makefile/Cmake https://github.com/mpromonet/live555helper/tree/de09337bcf8a23ca15f57ce21f88ddeb5ab3378b To make it compile with your code, worked flawlessly, thanks