[Live-devel] problem in compiling simpleRtspClient

Davood Falahati d.falahati.1987 at ieee.org
Fri Apr 15 03:37:53 PDT 2016


Dear Community,

I am interested in live streaming with your precious library. I am on
MacOsx Elcaptain and I made project with the following command:

./genMakeFiles macosx
./make
./make install

everything went well and I have installed libraries in /usr/local/lib and
headers in /usr/loca/include/liveMedia . etc.

I am using xCode 7. I created a C++ project and copied testRtspClient, in
my main file.

I have added all the headers and libraries in my project settings, now I
receive the below error. I could not find a proper help covering what to do
on Internet. Would you please help me?


----------------------------
Undefined symbols for architecture x86_64:
  "strDup(char const*)", referenced from:
      DummySink::DummySink(UsageEnvironment&, MediaSubsession&, char
const*) in main.o
  "RTSPClient::sendRequest(RTSPClient::RequestRecord*)", referenced from:
      vtable for ourRTSPClient in main.o
  "RTSPClient::sendPlayCommand(MediaSession&, void (*)(RTSPClient*, int,
char*), char const*, char const*, float, Authenticator*)", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "RTSPClient::sendPlayCommand(MediaSession&, void (*)(RTSPClient*, int,
char*), double, double, float, Authenticator*)", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "RTSPClient::sendSetupCommand(MediaSubsession&, void (*)(RTSPClient*,
int, char*), unsigned char, unsigned char, unsigned char, Authenticator*)",
referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "RTSPClient::setRequestFields(RTSPClient::RequestRecord*, char*&,
unsigned char&, char const*&, char*&, unsigned char&)", referenced from:
      vtable for ourRTSPClient in main.o
  "RTSPClient::sendDescribeCommand(void (*)(RTSPClient*, int, char*),
Authenticator*)", referenced from:
      openURL(UsageEnvironment&, char const*, char const*) in main.o
  "RTSPClient::sendTeardownCommand(MediaSession&, void (*)(RTSPClient*,
int, char*), Authenticator*)", referenced from:
      shutdownStream(RTSPClient*, int) in main.o
  "RTSPClient::RTSPClient(UsageEnvironment&, char const*, int, char const*,
unsigned short, int)", referenced from:
      ourRTSPClient::ourRTSPClient(UsageEnvironment&, char const*, int,
char const*, unsigned short) in main.o
  "RTSPClient::~RTSPClient()", referenced from:
      ourRTSPClient::ourRTSPClient(UsageEnvironment&, char const*, int,
char const*, unsigned short) in main.o
      ourRTSPClient::~ourRTSPClient() in main.o
  "FramedSource::getNextFrame(unsigned char*, unsigned int, void (*)(void*,
unsigned int, unsigned int, timeval, unsigned int), void*, void (*)(void*),
void*)", referenced from:
      DummySink::continuePlaying() in main.o
  "MediaSession::createNew(UsageEnvironment&, char const*)", referenced
from:
      continueAfterDESCRIBE(RTSPClient*, int, char*) in main.o
  "RTCPInstance::setByeHandler(void (*)(void*), void*, unsigned char)",
referenced from:
      shutdownStream(RTSPClient*, int) in main.o
      continueAfterSETUP(RTSPClient*, int, char*) in main.o
  "MediaSubsession::initiate(int)", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "BasicTaskScheduler::createNew(unsigned int)", referenced from:
      _main in main.o
  "BasicUsageEnvironment::createNew(TaskScheduler&)", referenced from:
      _main in main.o
  "MediaSubsessionIterator::next()", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
      shutdownStream(RTSPClient*, int) in main.o
      subsessionAfterPlaying(void*) in main.o
  "MediaSubsessionIterator::MediaSubsessionIterator(MediaSession const&)",
referenced from:
      continueAfterDESCRIBE(RTSPClient*, int, char*) in main.o
      shutdownStream(RTSPClient*, int) in main.o
      subsessionAfterPlaying(void*) in main.o
  "MediaSubsessionIterator::~MediaSubsessionIterator()", referenced from:
      shutdownStream(RTSPClient*, int) in main.o
      subsessionAfterPlaying(void*) in main.o
  "Medium::close(Medium*)", referenced from:
      shutdownStream(RTSPClient*, int) in main.o
      subsessionAfterPlaying(void*) in main.o
      StreamClientState::~StreamClientState() in main.o
  "MediaSink::stopPlaying()", referenced from:
      vtable for DummySink in main.o
  "MediaSink::startPlaying(MediaSource&, void (*)(void*), void*)",
referenced from:
      continueAfterSETUP(RTSPClient*, int, char*) in main.o
  "MediaSink::onSourceClosure(void*)", referenced from:
      DummySink::continuePlaying() in main.o
  "MediaSink::sourceIsCompatibleWithUs(MediaSource&)", referenced from:
      vtable for DummySink in main.o
  "MediaSink::MediaSink(UsageEnvironment&)", referenced from:
      DummySink::DummySink(UsageEnvironment&, MediaSubsession&, char
const*) in main.o
  "MediaSink::~MediaSink()", referenced from:
      DummySink::DummySink(UsageEnvironment&, MediaSubsession&, char
const*) in main.o
      DummySink::~DummySink() in main.o
  "RTSPClient::isRTSPClient() const", referenced from:
      vtable for ourRTSPClient in main.o
  "MediaSession::absEndTime() const", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "MediaSession::absStartTime() const", referenced from:
      setupNextSubsession(RTSPClient*) in main.o
  "Medium::isRTSPClient() const", referenced from:
      vtable for DummySink in main.o
  "Medium::isRTSPServer() const", referenced from:
      vtable for ourRTSPClient in main.o
      vtable for DummySink in main.o
  "Medium::isMediaSession() const", referenced from:
      vtable for ourRTSPClient in main.o
      vtable for DummySink in main.o
  "Medium::isRTCPInstance() const", referenced from:
      vtable for ourRTSPClient in main.o
      vtable for DummySink in main.o
  "Medium::isServerMediaSession() const", referenced from:
      vtable for ourRTSPClient in main.o
      vtable for DummySink in main.o
  "Medium::isSink() const", referenced from:
      vtable for ourRTSPClient in main.o
  "Medium::isSource() const", referenced from:
      vtable for ourRTSPClient in main.o
      vtable for DummySink in main.o
  "MediaSink::isSink() const", referenced from:
      vtable for DummySink in main.o
  "MediaSink::isRTPSink() const", referenced from:
      vtable for DummySink in main.o
  "typeinfo for RTSPClient", referenced from:
      typeinfo for ourRTSPClient in main.o
  "typeinfo for MediaSink", referenced from:
      typeinfo for DummySink in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Davood Falahati,

Isfahan University of Technology.
d.falahati.1987 at ieee.org
http://youconnect.ir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20160415/329d4735/attachment.html>


More information about the live-devel mailing list