首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

编译jrtplib解决办法

2012-04-13 
编译jrtplib编译jrtplib和jthread时,出现如下错误:arm-uclibc-linux-g++ -O2 -o example1 example1.o../sr

编译jrtplib
编译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()'

[解决办法]
应该是线程库的路径错了吧,jthread

热点排行