编译jrtplib
./configure -host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g++ CPPFLAGS=-I/usr/local/include/jthread LDFLAGS=-L/usr/local/lib
make
make install
实验
arm-linux-g++ -o example1 ./examples/example1.cpp -I/usr/local/include/jrtplib3 -ljrtp
库和头文件发在
/usr/local/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/include
/usr/local/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib
工程的Makefile添加相应的头文件和库
CFLAGS := -Wall -O2 -g
CFLAGS += -I $(shell pwd)/include
CFLAGS += -I/usr/local/arm-opencv/include
CFLAGS += -I/usr/local/arm-opencv/include/opencv
CFLAGS += -I/usr/local/include/jrtplib3
CFLAGS += -I/usr/local/include/jthread
LDFLAGS := -lm -ljpeg -lpthread -lrt -ljrtp
LDFLAGS += -L/usr/local/arm-opencv/lib -lopencv_videostab -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lopencv_gpu -lopencv_nonfree -lopencv_photo -lopencv_stitching -lopencv_ts