请教个编译jrtplib的问题!
我从网上下载了 jrtplib-3.7.1.tar.bz2 和jthread-1.2.1.tar.bz2,
解压;
进入jthread-1.2.,
root@ubuntu:/home/jiangmb/test_dir/jrtplib/jthread-1.2.1# ./configure --prefix=/home/jiangmb/test_dir/jrtplib/ --host=arm-montavista-linux CC=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc CXX=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++
生成makefile,然后make ,make install 编译通过!
但编译jrtplib时,
root@ubuntu:/home/jiangmb/test_dir/jrtplib/jrtplib-3.7.1# ./configure --prefix=/home/jiangmb/test_dir/jrtplib/jrtpinstall/ --host=arm-montavista-linux CC=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc CXX=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++
生成makefile,然后make,提示如下错误,请大家帮忙看一样,为什么?应该不止一个人遇到和我同样的问题的吧!
/bin/bash ../libtool --tag=CXX --mode=link /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ -O2 -o example1 example1.o ../src/.libs/libjrtp.a
mkdir .libs
/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ -O2 -o example1 example1.o ../src/.libs/libjrtp.a
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::BeginDataAccess()':
rtpsession.cpp:(.text+0x53c): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetNoteInterval(int)':
rtpsession.cpp:(.text+0x5a4): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x5b0): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetToolInterval(int)':
rtpsession.cpp:(.text+0x638): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x644): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetPhoneInterval(int)':
rtpsession.cpp:(.text+0x6cc): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x6d8): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetLocationInterval(int)':
rtpsession.cpp:(.text+0x760): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x76c): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetEMailInterval(int)':
rtpsession.cpp:(.text+0x7f4): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x800): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetNameInterval(int)':
rtpsession.cpp:(.text+0x888): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x894): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetTimestampUnit(double)':
rtpsession.cpp:(.text+0x950): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0x960): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::EndDataAccess()':
rtpsession.cpp:(.text+0x9bc): undefined reference to `JMutex::Unlock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::SetPreTransmissionDelay(RTPTime const&)':
rtpsession.cpp:(.text+0xa34): undefined reference to `JMutex::Unlock()'
rtpsession.cpp:(.text+0xa44): undefined reference to `JMutex::Lock()'
../src/.libs/libjrtp.a(rtpsession.o): In function `RTPSession::IncrementTimestampDefault()':
[解决办法]
jthread没有链接进来
[解决办法]
http://wenku.baidu.com/view/4983d064caaedd3383c4d309.html