当前位置:网站首页>海思调用接口之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)
边栏推荐
猜你喜欢
随机推荐
[leetcode] reverse the word III in the string [557]
Methods to solve the tampering of Chrome browser and edeg browser homepage
psnr,ssim,rmse三个指标的定量分析
在SOUI里使用真窗口时使用SOUI的滚动条
QT qsplitter splitter
深度剖析数据在内存中的存储----C语言篇
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?
Golang's learning route
Niuke network: maximum submatrix
电路设计者常用的学习网站
成功改变splunk 默认URL root path
Splunk audit 的设定
[羊城杯2020]easyphp
Introduction to the latest plan of horizon in April 2022
Looking at Ctrip's toughness and vision from the Q1 financial report in 2022
How does Jerry test the wrong touch rate of keys [chapter]
Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code
[chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
Value sequence < detailed explanation of daily question >
Jatpack------LiveData







![[羊城杯2020]easyphp](/img/12/da28f738e50e625b0a66a94af3703d.png)

