当前位置:网站首页>海思调用接口之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)
边栏推荐
- 数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用
- [leetcode] reverse string [344]
- 20220524_数据库过程_语句留档
- MySQL reset password, forget password, reset root password, reset MySQL password
- 深度剖析数据在内存中的存储----C语言篇
- Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
- Mask R-CNN
- QT qpprogressbar details
- [Luogu p1541] tortoise chess [DP]
- 【板栗糖GIS】arcscene—如何做出有高度的高程图
猜你喜欢
最小生成树 Minimum Spanning Tree
Motivation du Protocole de chiffrement avancé AES
Qt QProgressBar详解
【板栗糖GIS】arcscene—如何做出有高度的高程图
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
LeetCode 968. Monitor binary tree
Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
Loss function~
AES高級加密協議的動機闡述
P7072 [csp-j2020] live broadcast Award
随机推荐
Go 4 modes Singleton
psnr,ssim,rmse三个指标的定量分析
Chow-Liu Tree
2016. maximum difference between incremental elements
Lambda expression: an article takes you through
[leetcode] there are duplicate elements [217]
[favorite poems] OK, song
Mask R-CNN
Niuke network: maximum submatrix
Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!
分布式监控系统zabbix
QT qpprogressbar details
stop slave卡住--事务的事件没有复制完整
Brief introduction of emotional dialogue recognition and generation
Qt QSplitter拆分器
Minimum spanning tree
Jatpack------LiveData
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:
[leetcode] number of palindromes [9]