当前位置:网站首页>海思调用接口之Makefile配置
海思调用接口之Makefile配置
2022-07-02 22:10:00 【天未及海宽】
记录一下: 单独写一个简单的测试代码,其中调用海思的一些接口;其Makefile如下:
default:
arm-himix410-linux-gcc -I/home/wbk/640_pro/mpp/include
-L/home/wbk/640_pro/mpp/lib -L/home/wbk/640_pro/mpp/userApp/lib
-lpthread -lm lcd_move.c -o lcd_move
-lmpi -live -lupvqe -ldnvqe -lVoiceEngine -lpthread -lsecurec -ltde
clean:
rm lcd_move *.o -rf
其中
-I 指定头文件
-L指定库路径
-o 编译后生成的可执行程序名
链接参数: -lmpi -live -lupvqe -ldnvqe -lVoiceEngine -lpthread -lsecurec 不然报一些错误找不到; 如错误:undefined reference to `xxx'
补充:-tde需要用到tde工具才加;
举一反三:
当调用一些开源库时;
(1) -I/指定头文件
(2) -L/指定 .a或.so
(3) 一些库很可能需要-l指定库名;如faac库, mp4v2库,sdl库等等..
-lpthread -ldl -lm -lfreetype -lSDL2 -lSDL2_ttf -lfaac -lmp4v2 -lsecurec -D$(ISP_VERSION) -L$(SDL_LIB) -L$(MP4V2_LIB) -L$(FAAC_LIB) -L$(AV_LIB)
边栏推荐
- Construction of Hisilicon 3559 universal platform: draw a frame on the captured YUV image
- [leetcode] reverse string [344]
- [羊城杯2020]easyphp
- Jinglianwen technology's low price strategy helps AI enterprises reduce model training costs
- 创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
- psnr,ssim,rmse三个指标的定量分析
- mysql重置密码,忘记密码,重置root密码,重置mysql密码
- Freshman learning sharing
- 损失函数~
- 20220527_数据库过程_语句留档
猜你喜欢
Introduction to the latest plan of horizon in April 2022
Splunk audit setting
Looking at Ctrip's toughness and vision from the Q1 financial report in 2022
LeetCode 968. 监控二叉树
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code
Successfully changed Splunk default URL root path
[chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
PMP project integration management
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
随机推荐
力扣刷题(2022-6-28)
P1007 single log bridge
Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - packaging based on thinkphp5 - detailed guidance of the author - July 1, 2022 08:43:
景联文科技低价策略帮助AI企业降低模型训练成本
STM32之ADC
创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
Splunk audit 的设定
Qt QScrollArea
ServletContext learning diary 1
【硬件】标准阻值的由来
STM32串口DAM接收253字节就死机原因排查
[favorite poems] OK, song
Antd component upload uploads xlsx files and reads the contents of the files
MySQL queries nearby data And sort by distance
Qt QScrollArea
Loss function~
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
地平线2022年4月最新方案介绍
[chestnut sugar GIS] ArcScene - how to make elevation map with height