当前位置:网站首页>QT creator.Pro file adds the corresponding library according to the kit
QT creator.Pro file adds the corresponding library according to the kit
2022-07-23 13:41:00 【Zhuge hammer who loves learning】
background
I made a double version before ffmpeg, Thinking about ubuntu Run up , No problem, compile and run in Arm Development board
Cross compilation ffmpeg+x264+x265 (x86、arm-linux Dual version ) Close test effectively
Because the libraries of the two versions are different ,Qt Creator It's troublesome to switch when compiling
Think about configuring .pro Files make it possible to build according to the current kit To select the corresponding library
To configure Build
The author has two kit, One is x86_64, One is arm

Find this place , add to Additional parameters , For this arm kit Add a macro definition "DEFINES+=PLATFORM_ARM"

Empathy , For another x86 kit Add another macro definition "DEFINES+=PLATFORM_X86"
modify .pro file
if(contains(DEFINES,PLATFORM_X86)){
message("compile for x86")
INCLUDEPATH += xxxxxxx
LIBS += xxxxxxx
}else{
message("compile for arm")
INCLUDEPATH += xxxxxxx
LIBS += xxxxxxx
}
That is to add one if sentence , According to the macro definition Alias Judge the currently built kit , Then choose to add the corresponding library
Conclusion
Very practical , Remember briefly
边栏推荐
- Notes du jour 7
- Google Play应用商店可能会删除应用权限概述 转而使用新的数据安全信息组合
- Shooting games lesson 1-2: using sprites
- Beifu PLC and C # regularly refresh IO through ads communication
- Kept dual machine hot standby
- Beifu PLC and C transmit int array type variables through ads communication
- Introduction to radar part vii 1 radar and resolution
- 高中语文教资考试大纲
- [jzof] 10 Fibonacci series
- Knowledge map: basic concepts
猜你喜欢
![[JS advanced] basics of regular expressions - about regular expressions you want to know_ 01](/img/b8/7961a3c4375c93971ddd74b1a2473f.jpg)
[JS advanced] basics of regular expressions - about regular expressions you want to know_ 01

Day 8 notes

0722~ thread pool extension

Special topic of MIMO Radar (0) - General Chapter

Shell operator, $((expression)) "or" $[expression], expr method, condition judgment, test condition, [condition], comparison between two integers, judgment according to file permission, judgment accor

中国在又一个新兴科技领域领先美国,站在科技创新制高点

Evaluation of classification model

【可视化调度软件】上海道宁为SMB组织带来NETRONIC下载、试用、教程

Google面试题原理解析 12个乒乓球其中有1个次品,用天平称重3次找出

Beifu PLC and C transmit bool type variables through ads communication
随机推荐
[noi simulation race] I don't know which CF paper title it is (probability expectation, martingale's stop time theorem)
Why choose AMD epyc for cloud solutions?
kubernetes 的这几种存储卷,别再傻傻分不清了
Power BI----综合应用
【可视化调度软件】上海道宁为SMB组织带来NETRONIC下载、试用、教程
浅谈Anroid设备的CPU类型以及so文件的放置目录
Feynman learning method (redis summary)
Learn about canvas
Wu Enda machine learning series p31~p42
ES6 - weekly examination questions
Knowledge map: basic concepts
Uncaught (in promise) Neo4jError: WebSocket connection failure. Due to security constraints in your
Ros2 self study notes: gazebo physical simulation platform
回溯法解决 八皇后问题
Special lecture 5 combinatorial mathematics learning experience (long-term update)
Beifu PLC and C transmit bool array variables through ads communication
Don't be silly to distinguish these kinds of storage volumes of kubernetes
Notes du jour 7
0722~ thread pool extension
了解canvas