hi3516a之makefile

编译文件很重要,特别是链接一些开源库,需要提前配置好,并且放到交叉编译环境下

[root@demo arm]# make
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/box.o ..//src/box.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
..//src/box.cpp:41:15: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 char *rtmpurl="rtmp://114.215.121.106:1935/live/540_17";
               ^
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi3516a_comm_audio.o ..//src/hi3516a_comm_audio.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi3516a_comm_sys.o ..//src/hi3516a_comm_sys.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi3516a_comm_venc.o ..//src/hi3516a_comm_venc.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi3516a_comm_vi.o ..//src/hi3516a_comm_vi.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi3516a_comm_vpss.o ..//src/hi3516a_comm_vpss.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/hi35xxx_enc.o ..//src/hi35xxx_enc.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
arm-hisiv300-linux-gcc  -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -o box objs/box.o objs/hi3516a_comm_audio.o objs/hi3516a_comm_sys.o objs/hi3516a_comm_venc.o objs/hi3516a_comm_vi.o objs/hi3516a_comm_vpss.o objs/hi35xxx_enc.o ./libs/hisiv300-hi3516a-mpp030/lib/libmpi.a ./libs/hisiv300-hi3516a-mpp030/lib/libVoiceEngine.a ./libs/hisiv300-hi3516a-mpp030/lib/libvqev2.a ./libs/hisiv300-hi3516a-mpp030/lib/libresampler.a ./libs/hisiv300-hi3516a-mpp030/lib/libdvqe.a ./libs/hisiv300-hi3516a-mpp030/lib/libisp.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_cmoscfg.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_iniparser.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_hiae.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_hiawb.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_hiaf.a ./libs/hisiv300-hi3516a-mpp030/lib/lib_hidefog.a ./libs/hisiv300-hi3516a-mpp030/lib/libfaac.a ./libs/hisiv300-hi3516a-mpp030/lib/librtmp.a  -lpthread -lm -lrt -Llibrtmp -lrtmp -lssl -lcrypto -lz  -Dhi3516a -DHICHIP=0x3516A100 -DHI_DEBUG -DHI_XXXX -DISP_V2 -D__STDC_CONSTANT_MACROS -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations
/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: cannot find -lrtmp
collect2: error: ld returned 1 exit status
make: *** [box] 错误 1
[root@demo arm]# 

拷贝librtmp.so库文件放到指定路径下


你可能感兴趣的:(hi3516a之makefile)