当前位置:网站首页>WinDriver compilation summary
WinDriver compilation summary
2022-06-11 00:03:00 【Supernatural prayer】
windriver Compile settings
Project right click Properties ,Build Properties in Build Macros Next DEFINES Next, set the macro definition
Project right click Properties ,c/c++ General Next Indexer Next Paths and Symbol in ,Include Paths In frame Build Click the small triangle on the left to display the project dependency header file path , It is red x A path that does not exist , If you want to add or delete a path, click on the right Edit Enter the editing interface , You can modify the path .
Project right click Properties ,Build Properties in Libraries Add the library you want to depend on .
Project right click Properties ,Build Properties in Build Paths Add the path of the header file .
Possible problems at compile time
Before compiling clear
Compilation of include route \ The dynamic library path is set
Generate intermediate files before compiling
The Tao system introduces an external dynamic library : The header file + Dynamic library ( Kylin won't compile ,vxworks Unpack and compile macro definitions )
The dynamic library of Tao system is .so suffix \ Executable file .vxe
Subject to the Tao system , You have to find your own way to play audio and video
The sub folders should be clearer
There are some ui_XXX.h Will contain relative paths , As a result, it cannot be introduced normally , We need to pay attention to
The conclusion drawn from the compilation experiment :windriver Just a tool for cross compiling , Compile .so still .vxe I don't know how to set the command
raw material :【 Source code 】【 Dependency Library 】【 Intermediate document ( Mainly QT The middle of generation .h.cpp)】
Set up : Right click the project settings to configure the dependent path ( There are sequence requirements ) and T Dependency Library 】
structure : Find the compiled file in the folder worthy of the name of the compilation environment .
in addition , At the same time, I said that intermediate files are generated “ Don't cover ”, There is no problem in compiling , Can be lazy not to delete some useless cpp Or header file .
But in 20201207 The background error reporting during deployment of is similar to
[Undefined PLT symbol"_ZN14MainWindowTIHS18InitunHandledTableEv"]
Such mistakes (……ZN14, Delegate followed by 14 Characters are information ,18 Empathy )
MainWindowTIHS Is an old but useless interface file , use “ No coverage , The original ui_ Put the files in the folder ” The compiled version will have this problem , After my experiment of error reporting and deletion one by one , After the compilation passes, only the dynamic library fails to load ( Is there a dynamic library we rely on vx Version of )
Many configuration files in the software are written in the same directory , It needs to be placed in the same level directory with the compiled executable , In this deployment, people in the cooperative unit told me that the last deployment had a large number of redundant dynamic libraries , In fact, they put a large number of general libraries together , It is recommended to write the necessary loading file at startup in the form of configuration file and directory splicing , It is convenient to modify the deployment rather than recompile when the deployment environment changes .
—— This time I saw the directory structure of other people's units , It is placed in the folder where the configuration is written , All called dynamic libraries are placed in one folder ( Including our software generated dynamic libraries ), Because our configuration files and resource files are placed at the same level, their directory structure is polluted , They suggest that you name your configuration file and put it under the same level directory .
also , The previous classification was always classified by model , In fact, it should be classified as "vxworks edition ” and "kylin edition ”, This can be well matched in the dynamic library given by the overall cooperation unit , And it is easy to reorganize the dynamic library bin Directory and the configuration file of the development plug-in .
actually , There are also some dynamic libraries that are not referenced 、 Dynamic libraries that reference but do not know the system version , And some configuration files that are not used but dare not be deleted , After these problems are solved, the bottom layer that is easy to change the system version can be dismantled to realize rapid multi platform deployment .
We can't use anything similar to what we compiled “libXXXXcd.so” This kind of belt d Dynamic library
边栏推荐
- LabVIEW或MAX下的VISA测试面板中串口无法工作
- 【二叉树】二叉树剪枝
- [pyGame collection] memory killing - "Childhood Games", how many shots did you get? (attach five source codes for self access)
- LabVIEW调用DLL时出现异常0xc0000005代码
- 基于CenterOS7安装Redis及常见问题解决(带图讲解)
- Method of converting file to multipartfile
- OpenResty安装
- Unity script cannot display Chinese comments of C # source code or the script created by vs does not have comments of C # source code
- Dark horse headlines - Tencent's salary system reform has caused controversy; Intel expanded the recruitment of female engineers nationwide; Black horse is 100% employed really
- How to handle the database query error with Emoji expression in Typecho- Xingze V Club
猜你喜欢

HyperLeger Fabric安装

IGBT and third generation semiconductor SiC double pulse test scheme

【Pygame小游戏】别找了,休闲游戏专题来了丨泡泡龙小程序——休闲游戏研发推荐

【Opencv实战】寒冷的冬季,也会迎来漫天彩虹,这特效你爱了嘛?

LabVIEW change the shape or color of point ROI overlay

LabVIEW和VDM提取色彩和生成灰度图像

What is the workflow of dry goods MapReduce?

黑马头条丨腾讯薪酬制度改革引争议;英特尔全国扩招女工程师;黑马100%就业真的吗......

Error 1046 when LabVIEW uses MathScript node or matlab script

Basic introduction and core components of kubernetes
随机推荐
LabVIEW执行串行回送测试
Top ten information security principles
LabVIEW获取Clamp函数找到的所有点的信息
Difference between oscilloscope and spectrum analyzer
Ilruntime hotfix framework installation and breakpoint debugging
[auto reply Script] happy new year. I typed every word myself, not forwarded it~
【Pygame小游戏】这款经典的炸弹人超能游戏上线,你爱了嘛?(附源码)
长投学堂开户安全吗?靠谱吗?
LabVIEW programming specification
[new version] new pseudo personal homepage v2.0- starze V Club
都说验证码是爬虫中的一道坎,看我只用五行代码就突破它。
MultipartFile重命名上传
What is the workflow of dry goods MapReduce?
【自动回复or提醒小助手】妈妈再也不用担心我漏掉消息了(10行代码系列)
MySQL命令行导入导出数据
[pyGame] can the little dinosaur on chrome be played with code? It looks like fun~
Common settings for vs
[AI card player] for the first time to see such an "exciting" landowner, the key factor for a high winning rate is
Dark horse headlines - Tencent's salary system reform has caused controversy; Intel expanded the recruitment of female engineers nationwide; Black horse is 100% employed really
csdn每日一练——找出最接近元素并输出下标