当前位置:网站首页>海思调用接口之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)
边栏推荐
- pytorch训练CPU占用持续增长(bug)
- [羊城杯2020]easyphp
- Go语言sqlx库操作SQLite3数据库增删改查
- antd组件upload上传xlsx文件,并读取文件内容
- Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
- [chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
- Lambda表达式:一篇文章带你通透
- Jielizhi, production line assembly link [chapter]
- Jerry's built-in short press and long press, no matter how long it is, it is a short press [chapter]
- 20220524_数据库过程_语句留档
猜你喜欢

Jinglianwen technology's low price strategy helps AI enterprises reduce model training costs
![[chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements](/img/b1/1fae909fb6a9231096a93d741d6426.png)
[chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements

Kubernetes uses the host name to allocate the pod on the specified node
![[Yangcheng cup 2020] easyphp](/img/12/da28f738e50e625b0a66a94af3703d.png)
[Yangcheng cup 2020] easyphp

Niuke network: maximum submatrix

Addition, deletion, modification and query of handwritten ORM (object relationship mapping)

Qt QScrollArea

Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code

Xshell configuration xforward forwarding Firefox browser

中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
随机推荐
Go condition variable
数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用
P1007 single log bridge
[Solved] Splunk: Cannot get username when all users are selected“
Jatpack------LiveData
Niuke network: maximum submatrix
Qt QProgressBar详解
静态文件显示问题
[favorite poems] OK, song
AES高級加密協議的動機闡述
数据标注典型案例,景联文科技如何助力企业搭建数据方案
Introduction to the latest plan of horizon in April 2022
深度剖析数据在内存中的存储----C语言篇
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:
QT qpprogressbar details
Distributed monitoring system ZABBIX
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!
Gas station [problem analysis - > problem conversion - > greed]
Introduction and response to high concurrency