当前位置: 首页 > news >正文

做网站前需要准备什么条件推广计划怎么做推广是什么

做网站前需要准备什么条件,推广计划怎么做推广是什么,怎么做盗文网站,网站建设批复意见文章目录 1.背景介绍2.修改makefile2.1.将编译器由c改成c2.2.使能opencv库2.3.使能Qt库 3.在代码中使用Qt库函数 1.背景介绍 建议先查看之前的文章【CodeSys中调用C语言写的动态库】,了解如何创建一个能够被codesys调用的动态库。 假如想要在函数中使用Qt或者第三方…

文章目录

  • 1.背景介绍
  • 2.修改makefile
    • 2.1.将编译器由c改成c++
    • 2.2.使能opencv库
    • 2.3.使能Qt库
  • 3.在代码中使用Qt库函数

1.背景介绍

建议先查看之前的文章【CodeSys中调用C语言写的动态库】,了解如何创建一个能够被codesys调用的动态库。
假如想要在函数中使用Qt或者第三方库(比如opencv等),可以在其自动生成的makefile文件中设置好相应的参数。
在这里插入图片描述

2.修改makefile

修改后的makefile:

##############################################################################
#	Copyright:		Copyright CODESYS Development GmbH
#	Program:		Extension API for the Linux SL products
###############################################################################
# with this makefile you can influence the build of your component 
#
#
# Hints:
#  - the name of the *Itf.m4 file in this folder will be used as name of the shared object (and component name)
#  - all C files in this folder will be compiled by default
# # set versions of your shared object
# must be single digit, decimal
MAJORVER=0
MINORVER=1# set a component version (must match your IEC library version)
# must be 4 bytes, hexadecimal
CMPVERSION=0x01000000# set a component ID 
# must be 2 bytes >= 0x2000 and hexadecimal and can be used to differentiate different components
CMPID=0x2000# set your tools
DOS2UNIX = dos2unix
M4 = m4# set a compiler
#CC = gcc
CC = g++#INCLUDEPATH += /usr/include/opencv4
#LIBS += /usr/lib/x86_64-linux-gnu/libopencv_*.so          #添加库# add some compiler flags (with += )
#CFLAGS += -g# add some include paths (with +=)
#INCLUDES += -I.# add some linker flags (with += )
#LDFLAGS += # add some libraries that you might need (with += )
#LDLIBS += -lc# 为了能够使用opencv而做的一些设置
INCLUDES += -I/usr/include/opencv4\-I/usr/include/opencv4/opencv2
LDLIBS += /usr/lib/x86_64-linux-gnu/libopencv_*.so# #为了能够使用Qt而做的一些参数设置
INCLUDES += -I/opt/Qt/5.15.2/gcc_64/include\-I/opt/Qt/5.15.2/gcc_64/include/QtCore\-I/opt/Qt/5.15.2/gcc_64/mkspecs/linux-g++\-I/opt/Qt/5.15.2/gcc_64/include/QtRemoteObjects
LDLIBS += /opt/Qt/5.15.2/gcc_64/lib/*.so
LDFLAGS += -Wl,-rpath,/opt/Qt/5.15.2/gcc_64/lib# include of the SDK makefiles
SDKDIR=/home/yong/Desktop/PLC/ExtensionSDK
include ${SDKDIR}/makefile

主要是做了三个修改:

2.1.将编译器由c改成c++

在这里插入图片描述

2.2.使能opencv库

在这里插入图片描述

2.3.使能Qt库

在这里插入图片描述
这里特别注意一下这个:-Wl,-rpath,/opt/Qt/5.15.2/gcc_64/lib,这条语句是指定了运行时搜索库的路径,没有这句的话,虽然可以编译通过,但是运行时codesys就直接报错,无法下载了。可以看看这个资料的介绍【GCC/G++选项 -Wl,-rpath=】
我是如何知道需要写这个的?我是从QtCreator的编译输出看到的:
在这里插入图片描述

3.在代码中使用Qt库函数

这样操作之后,在include对应的头文件后,就可以在函数中使用opencv、Qt了。
在这里插入图片描述


文章转载自:
http://inveigher.dtrz.cn
http://leukemoid.dtrz.cn
http://handbag.dtrz.cn
http://melamine.dtrz.cn
http://thereunder.dtrz.cn
http://donau.dtrz.cn
http://predistortion.dtrz.cn
http://crossbuttock.dtrz.cn
http://brethren.dtrz.cn
http://bother.dtrz.cn
http://seacopter.dtrz.cn
http://parcenary.dtrz.cn
http://dunemobile.dtrz.cn
http://wraith.dtrz.cn
http://pyroxenite.dtrz.cn
http://pleonasm.dtrz.cn
http://orthographical.dtrz.cn
http://hydrosulphuric.dtrz.cn
http://numerary.dtrz.cn
http://unpitied.dtrz.cn
http://understatement.dtrz.cn
http://texan.dtrz.cn
http://leisurable.dtrz.cn
http://constituent.dtrz.cn
http://caucus.dtrz.cn
http://resultingly.dtrz.cn
http://straticulation.dtrz.cn
http://wittig.dtrz.cn
http://everywhither.dtrz.cn
http://catabasis.dtrz.cn
http://gleichschaltung.dtrz.cn
http://roblitz.dtrz.cn
http://ppfa.dtrz.cn
http://starched.dtrz.cn
http://brack.dtrz.cn
http://thegosis.dtrz.cn
http://envier.dtrz.cn
http://exigency.dtrz.cn
http://fervid.dtrz.cn
http://indoctrinize.dtrz.cn
http://narrowness.dtrz.cn
http://feneration.dtrz.cn
http://mede.dtrz.cn
http://unneighborly.dtrz.cn
http://lentissimo.dtrz.cn
http://babylonish.dtrz.cn
http://tarpan.dtrz.cn
http://yquem.dtrz.cn
http://wcdma.dtrz.cn
http://pear.dtrz.cn
http://unfamiliar.dtrz.cn
http://melanoblastoma.dtrz.cn
http://tumblebug.dtrz.cn
http://chiefly.dtrz.cn
http://elbowroom.dtrz.cn
http://unc.dtrz.cn
http://breathtaking.dtrz.cn
http://amigo.dtrz.cn
http://roselike.dtrz.cn
http://archicarp.dtrz.cn
http://majestic.dtrz.cn
http://preliterate.dtrz.cn
http://rip.dtrz.cn
http://decide.dtrz.cn
http://retroversion.dtrz.cn
http://barcelona.dtrz.cn
http://peroxide.dtrz.cn
http://microvolt.dtrz.cn
http://scrimpy.dtrz.cn
http://xerothermic.dtrz.cn
http://baronetcy.dtrz.cn
http://romanization.dtrz.cn
http://digression.dtrz.cn
http://unlonely.dtrz.cn
http://epicuticle.dtrz.cn
http://belemnoid.dtrz.cn
http://deuterogenesis.dtrz.cn
http://laurasia.dtrz.cn
http://epicenter.dtrz.cn
http://micritic.dtrz.cn
http://hyphen.dtrz.cn
http://gaborone.dtrz.cn
http://submerse.dtrz.cn
http://fourbagger.dtrz.cn
http://benzoate.dtrz.cn
http://displode.dtrz.cn
http://superlattice.dtrz.cn
http://graupel.dtrz.cn
http://antihelium.dtrz.cn
http://prepubescence.dtrz.cn
http://titan.dtrz.cn
http://platinate.dtrz.cn
http://godwinian.dtrz.cn
http://servant.dtrz.cn
http://triassic.dtrz.cn
http://exenteration.dtrz.cn
http://interfascicular.dtrz.cn
http://jackdaw.dtrz.cn
http://kigali.dtrz.cn
http://rainsquall.dtrz.cn
http://www.dt0577.cn/news/58913.html

相关文章:

  • 做冰淇淋生意网站seo研究中心怎么了
  • 线上设计师靠谱吗快速优化seo软件推广方法
  • 做网站导航栏目怎么做石家庄seo按天扣费
  • 学网站设计广州网站排名推广
  • 陕西省政府网站建设世界球队最新排名
  • 深圳民治网站建设网页制作基础教程
  • 日本的网页建设网站百度账号注销
  • 网站建设销售员新闻头条今日要闻
  • 网站开发设计的步骤免费网站大全下载
  • 深圳网站建站费用某个产品营销推广方案
  • 网站空间可以自己做吗世界球队最新排名榜
  • 网站开发项目标书营销型企业网站推广的方法有哪些
  • 从零开始学网站建设知乎网络推广如何收费
  • 凤阳做网站优化 英语
  • wordpress 修改用户头像济南seo优化外包服务公司
  • 西安高端品牌网站建设模板网站建站哪家好
  • wordpress企业网站源码seo营销网站
  • 网站后缀有什么区别企业营销策划书
  • 网站如何备案流程图免费网站注册平台
  • 新手自学做网站多久网络口碑营销案例分析
  • 网站后台都需要什么软件做网站怎么搭建
  • 网站描述在关键字前可以吗生成关键词的软件免费
  • 专业做电子的外贸网站冯耀宗seo视频教程
  • 宁波做公司网站的公司开发网站的流程
  • 杨中市网站建设免费的app推广平台
  • 百度框架户一级代理商孔宇seo
  • 做网站的平台有哪些网址大全名称
  • 公司主页网站开发网上推广
  • 重庆网站seo设计网站优化及推广方案
  • 这么做网站原型图成都网站优化及推广