問題描述:
1、安裝包:jrtplib-3.7.1.tar.gz jthread-1.2.1.tar.gz
2、步驟:分別解壓兩個安裝包
進入jthread-1.2.1使用./configure -host=arm-linux cc=arm-linux-gcc cxx=arm-linux-g++ 命令配置
make
make install
同樣進入
jrtplib-3.7.1 使用同樣步驟
3、錯誤資訊
rtppollthread.cpp:(.text+0x484): undefined reference to `jthread::~jthread()'
rtppollthread.cpp:(.text+0x4a4): undefined reference to `jmutex::~jmutex()'
rtppollthread.cpp:(.text+0x4ac): undefined reference to `jthread::~jthread()'
../src/.libs/libjrtp.a(rtppollthread.o): in function `rtppollthread::rtppollthread(rtpsession&, rtcpscheduler&)':
rtppollthread.cpp:(.text+0x4d4): undefined reference to `jthread::jthread()'
rtppollthread.cpp:(.text+0x4e4): undefined reference to `jmutex::jmutex()'
rtppollthread.cpp:(.text+0x510): undefined reference to `jthread::~jthread()'
../src/.libs/libjrtp.a(rtppollthread.o): in function `rtppollthread::rtppollthread(rtpsession&, rtcpscheduler&)':
rtppollthread.cpp:(.text+0x530): undefined reference to `jthread::jthread()'
rtppollthread.cpp:(.text+0x540): undefined reference to `jmutex::jmutex()'
rtppollthread.cpp:(.text+0x56c): undefined reference to `jthread::~jthread()'
../src/.libs/libjrtp.a(rtppollthread.o):(.rodata+0x34): undefined reference to `typeinfo for jthread'
collect2: ld returned 1 exit status
配置jrtplib的命令改為
./configure -host=arm-linux cc=arm-linux-gcc cxx=arm-linux-g++ --with-jthread-include=/usr/local/include/jthread ldflags=-l/usr/local/lib 就ok了
jrtplib 3 9 1 arm 交叉編譯
後,分別解壓,在解壓目錄中能看到乙個cmakelist.txt的檔案 2.修改兩個解壓目錄下的cmakelist.txt 告知當前使用的是交叉編譯方式 set cmake system name linux 設定c編譯器 set cmake c compiler arm none linux gnu...
jrtplib 3 9 1 arm 交叉編譯
後,分別解壓,在解壓目錄中能看到乙個cmakelist.txt的檔案 2.修改兩個解壓目錄下的cmakelist.txt cpp view plain copy 告知當前使用的是交叉編譯方式 set cmake system name linux 設定c編譯器 set cmake c compile...
JRTPLIB庫arm交叉編譯詳解
系統平台 ubuntu 16.04 開發板 gec6818 arm jrtplib庫 libjrtp.so.3.11.1.tar.gz jthread版本 libjthread.so.1.3.3.tar.gz 本交叉編譯是將rtp接收端放在arm開發板上執行,rtp傳送端在ubuntu系統上執行。由...