编译jrtplib

lggboy 2008-12-10 04:54:13
编译jrtplib和jthread时,出现如下错误:

arm-uclibc-linux-g++ -O2 -o example1 example1.o ../src/.libs/libjrtp.a
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::GetLocalSSRC()':
rtpsession.cpp:(.text+0x58): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x88): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SendPacket(void const*, unsigned int)':
rtpsession.cpp:(.text+0x2b4): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x2c4): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x2dc): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x2fc): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x314): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x334): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x348): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SendPacket(void const*, unsigned int, unsigned char, bool, unsigned int)':
rtpsession.cpp:(.text+0x444): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x454): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x464): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x47c): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x49c): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x4b4): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x4c8): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SendPacketEx(void const*, unsigned int, unsigned short, void const*, unsigned int)':
rtpsession.cpp:(.text+0x5c8): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x5d8): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x5e8): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x600): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x620): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x638): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x64c): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SendPacketEx(void const*, unsigned int, unsigned char, bool, unsigned int, unsigned short, void const*, unsigned int)':
rtpsession.cpp:(.text+0x76c): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x77c): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x78c): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x7a4): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x7c4): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x7dc): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x7f0): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SendRTCPAPPPacket(unsigned char, unsigned char const*, void const*, unsigned int)':
rtpsession.cpp:(.text+0x9a0): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xa64): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xac8): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xae0): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xb40): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xb5c): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xba8): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetDefaultPayloadType(unsigned char)':
rtpsession.cpp:(.text+0xc24): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xc34): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetDefaultMark(bool)':
rtpsession.cpp:(.text+0xca8): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xcb8): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetDefaultTimestampIncrement(unsigned int)':
rtpsession.cpp:(.text+0xd2c): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xd3c): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::IncrementTimestamp(unsigned int)':
rtpsession.cpp:(.text+0xdac): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0xdc0): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::IncrementTimestampDefault()':
rtpsession.cpp:(.text+0xe48): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xe5c): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetPreTransmissionDelay(RTPTime const&)':
rtpsession.cpp:(.text+0xed8): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xeec): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::GetRTCPDelay()':
rtpsession.cpp:(.text+0x1070): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x1088): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::BeginDataAccess()':
rtpsession.cpp:(.text+0x10c4): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::EndDataAccess()':
rtpsession.cpp:(.text+0x12e0): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetMaximumPacketSize(unsigned int)':
rtpsession.cpp:(.text+0x14f4): undefined reference to `JMutex::Lock()'
rtpsession.cpp:(.text+0x1540): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x1558): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetSessionBandwidth(double)':
rtpsession.cpp:(.text+0x16a8): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x1714): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetTimestampUnit(double)':
rtpsession.cpp:(.text+0x17ac): undefined reference to `JMutex::Lock()'
...全文
300 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Lovelife_Lovejob 2011-08-02
  • 打赏
  • 举报
回复
ddddddddddddddddddddddddd
满衣兄 2008-12-11
  • 打赏
  • 举报
回复
为啥我下下来的直接就能编译同过呢。
UDX协议 2008-12-11
  • 打赏
  • 举报
回复
应该是线程库的路径错了吧,jthread

2,543

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧