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

企业做网站维护价格游戏推广工作好做吗

企业做网站维护价格,游戏推广工作好做吗,2017一起做网店网站,做环境设计的网站首先遇到的jna.jar和examples.jar无法加载的问题,尝试了很多方法无效,以下方法实测有效 其次是动态链接库无法加载的问题,而且是播放库,我的方法比较简单,netsdk加载出来就行了,播放库用不到,删…
  • 首先遇到的jna.jar和examples.jar无法加载的问题,尝试了很多方法无效,以下方法实测有效

  • 其次是动态链接库无法加载的问题,而且是播放库,我的方法比较简单,netsdk加载出来就行了,播放库用不到,删掉引用就行了

  • 最后,我尝试了不少于五种方式,只能说以下方式对我的项目有效,其他方式也对他们的项目有效

  • 需求是从海康录像机上按时间下载视频文件,然后上传到ftp

以下是对我有效的方式

  1. 打开命令行,将第三方jar包安装在本地maven仓库(注意修改Dfile,DgroupId,DartifactId,Dversion)
mvn install:install-file -Dfile=E:\IdeaProjects\uav-platform\lib\jna.jar -DgroupId=com.sun.jna -DartifactId=jna -Dversion=1.0  -Dpackaging=jar
mvn install:install-file -Dfile=E:\IdeaProjects\uav-platform\lib\examples.jar -DgroupId=com.sun.jna -DartifactId=examples -Dversion=1.0  -Dpackaging=jar
  1. 在工程pom文件引入即可
<dependency><groupId>com.sun.jna</groupId><artifactId>jna</artifactId><version>1.0</version>
</dependency>
<dependency><groupId>com.sun.jna</groupId><artifactId>examples</artifactId><version>1.0</version>
</dependency>
  1. 动态库加载说明
【库文件加载说明】
1. lib文件夹里面所有库文件libhcnetsdk.so、libHCCore.so、libssl.so.1.1、libcrypto.so.1.1以及HCNetSDKCom文件夹都需要加载到工程中。2. HCNetSDKCom文件夹如果和libhcnetsdk.so、libhpr.so、libHCCore文件、可执行文件不在同级目录,或者加载失败,可以调用NET_DVR_SetSDKInitCfg(enumType类型赋值为2,lpInBuff对应结构体NET_DVR_LOCAL_SDK_PATH)设置组件库所在路径。3. libcrypto.so.1.1和libssl.so.1.1是开源库,如果库文件加载失败,可以调用NET_DVR_SetSDKInitCfg(enumType类型赋值为3,lpInBuff对应libcrypto.so.1.1所在的路径字符串)、NET_DVR_SetSDKInitCfg(enumType类型赋值为4,lpInBuff对应libssl.so.1.1所在的路径字符串)指定下这些库文件加载路径。4. 如果库文件加载始终不成功,初始化失败,可以尝试将SDK所在路径添加到LD_LIBRARY_PATH环境变量中。【路径设置的Java示例代码】
//这里是库的绝对路径,请根据实际情况修改,注意改路径必须有访问权限//设置HCNetSDKCom组件库所在路径		
String strPathCom = "/home/test/Desktop/JavaDemoLinux/lib";
HCNetSDK.NET_DVR_LOCAL_SDK_PATH struComPath = new HCNetSDK.NET_DVR_LOCAL_SDK_PATH();
System.arraycopy(strPathCom.getBytes(), 0, struComPath.sPath, 0, strPathCom.length());
struComPath.write();
hCNetSDK.NET_DVR_SetSDKInitCfg(2, struComPath.getPointer());//设置libcrypto.so所在路径	
HCNetSDK.BYTE_ARRAY ptrByteArrayCrypto = new HCNetSDK.BYTE_ARRAY(256);
String strPathCrypto = "/home/test/Desktop/JavaDemoLinux/lib/libcrypto.so.1.1";		
System.arraycopy(strPathCrypto.getBytes(), 0, ptrByteArrayCrypto.byValue, 0, strPathCrypto.length());
ptrByteArrayCrypto.write();
hCNetSDK.NET_DVR_SetSDKInitCfg(3, ptrByteArrayCrypto.getPointer());//设置libssl.so所在路径	
HCNetSDK.BYTE_ARRAY ptrByteArraySsl = new HCNetSDK.BYTE_ARRAY(256);	
String strPathSsl = "/home/test/Desktop/JavaDemoLinux/lib/libssl.so.1.1";	
System.arraycopy(strPathSsl.getBytes(), 0, ptrByteArraySsl.byValue, 0, strPathSsl.length());
ptrByteArraySsl.write();
hCNetSDK.NET_DVR_SetSDKInitCfg(4, ptrByteArraySsl.getPointer());【路径设置的C++示例代码】
char cryptoPath[2048] = {0};
sprintf(cryptoPath, "/home/test/Desktop/alarm_demo/libcrypto.so.1.1");
NET_DVR_SetSDKInitCfg(NET_SDK_INIT_CFG_LIBEAY_PATH, cryptoPath);char sslPath[2048] = {0};
sprintf(sslPath, "/home/test/Desktop/alarm_demo/libssl.so.1.1");
NET_DVR_SetSDKInitCfg(NET_SDK_INIT_CFG_SSLEAY_PATH, sslPath); NET_DVR_LOCAL_SDK_PATH struComPath = {0};
sprintf(struComPath.sPath, "/home/test/Desktop/alarm_demo"); //HCNetSDKCom文件夹所在的路径
NET_DVR_SetSDKInitCfg(NET_SDK_INIT_CFG_SDK_PATH, &struComPath);

参考:

  1. https://open.hikvision.com/download/5cda567cf47ae80dd41a54b3?type=10
  2. https://blog.csdn.net/shiwenjun18/article/details/130205302
  3. 一些尝试过的其他方式
<!-- 加地址 -->
<dependency><groupId>com.sun.jna</groupId><artifactId>jna</artifactId><version>1.0.0</version><scope>system</scope><systemPath>${project.basedir}/lib/jna.jar</systemPath>
</dependency>
<!-- 外部地址 -->
<dependency><groupId>com.sun.jna</groupId><artifactId>jna</artifactId><version>1.0.0</version><scope>system</scope><systemPath>${project.basedir}/../lib/jna.jar</systemPath>
</dependency>
<!-- 项目提示无法加载外部依赖 -->
<dependency><groupId>com.sun.jna</groupId><artifactId>jna</artifactId><version>1.0.0</version><scope>system</scope><systemPath>${pom.basedir}/../lib/jna.jar</systemPath>
</dependency>
<!-- 在以上方式的基础上添加配置 -->
<configuration><includeTypes>jar</includeTypes><includeScope>system</includeScope>
</configuration>

文章转载自:
http://dinncoyurt.ssfq.cn
http://dinncoskyjack.ssfq.cn
http://dinncoleveling.ssfq.cn
http://dinncohypoploid.ssfq.cn
http://dinncofourteener.ssfq.cn
http://dinncobessemerize.ssfq.cn
http://dinncoanchithere.ssfq.cn
http://dinncoconventionally.ssfq.cn
http://dinncogaiety.ssfq.cn
http://dinncomondrian.ssfq.cn
http://dinncograptolite.ssfq.cn
http://dinncoraucous.ssfq.cn
http://dinncomotif.ssfq.cn
http://dinncochloropicrin.ssfq.cn
http://dinncomonospecific.ssfq.cn
http://dinncocolumnar.ssfq.cn
http://dinncoenglishism.ssfq.cn
http://dinncodentilabial.ssfq.cn
http://dinncoconically.ssfq.cn
http://dinncoarenaceous.ssfq.cn
http://dinncofrontward.ssfq.cn
http://dinncotannia.ssfq.cn
http://dinncoflyer.ssfq.cn
http://dinncoventriculopuncture.ssfq.cn
http://dinncomorose.ssfq.cn
http://dinncofaradization.ssfq.cn
http://dinncovitalize.ssfq.cn
http://dinncocolossi.ssfq.cn
http://dinncoarlene.ssfq.cn
http://dinnconotable.ssfq.cn
http://dinncosandek.ssfq.cn
http://dinncoimmaturity.ssfq.cn
http://dinncohighflying.ssfq.cn
http://dinncorenouncement.ssfq.cn
http://dinncoalcometer.ssfq.cn
http://dinncoconcretive.ssfq.cn
http://dinncotammy.ssfq.cn
http://dinncofeminize.ssfq.cn
http://dinncotrousseau.ssfq.cn
http://dinncohummingbird.ssfq.cn
http://dinncoembryotic.ssfq.cn
http://dinncomelamed.ssfq.cn
http://dinncocalendarian.ssfq.cn
http://dinncoomnivore.ssfq.cn
http://dinncosonoluminescence.ssfq.cn
http://dinncofrazil.ssfq.cn
http://dinncomountainward.ssfq.cn
http://dinncoesthonia.ssfq.cn
http://dinncocowish.ssfq.cn
http://dinncooceanarium.ssfq.cn
http://dinncoemolument.ssfq.cn
http://dinncotrope.ssfq.cn
http://dinncowigging.ssfq.cn
http://dinncomohave.ssfq.cn
http://dinncoprimacy.ssfq.cn
http://dinncoensoul.ssfq.cn
http://dinncopancreatectomize.ssfq.cn
http://dinncowops.ssfq.cn
http://dinncoroseleaf.ssfq.cn
http://dinncosatiate.ssfq.cn
http://dinncothird.ssfq.cn
http://dinncocuesta.ssfq.cn
http://dinncoindention.ssfq.cn
http://dinnconitrification.ssfq.cn
http://dinncocosmin.ssfq.cn
http://dinncomayorship.ssfq.cn
http://dinncobioflavonoid.ssfq.cn
http://dinncodrumroll.ssfq.cn
http://dinncoeuclase.ssfq.cn
http://dinncohypnotize.ssfq.cn
http://dinncocoast.ssfq.cn
http://dinncomop.ssfq.cn
http://dinncoregistral.ssfq.cn
http://dinncoknifesmith.ssfq.cn
http://dinncosewer.ssfq.cn
http://dinncoelectrophotometer.ssfq.cn
http://dinncocoteau.ssfq.cn
http://dinncounimproved.ssfq.cn
http://dinncopyrolyzate.ssfq.cn
http://dinncofootsy.ssfq.cn
http://dinncomelchior.ssfq.cn
http://dinncoedental.ssfq.cn
http://dinncothereinbefore.ssfq.cn
http://dinncodishearteningly.ssfq.cn
http://dinncoselfwards.ssfq.cn
http://dinncodisulfiram.ssfq.cn
http://dinncononaggression.ssfq.cn
http://dinncolavrock.ssfq.cn
http://dinncotorchy.ssfq.cn
http://dinncodonatist.ssfq.cn
http://dinncomodeless.ssfq.cn
http://dinncoenvoi.ssfq.cn
http://dinncoabsentminded.ssfq.cn
http://dinncoresistent.ssfq.cn
http://dinncopeppery.ssfq.cn
http://dinncopastureland.ssfq.cn
http://dinncohygrometric.ssfq.cn
http://dinncoimbalm.ssfq.cn
http://dinncotalion.ssfq.cn
http://dinncoleeboard.ssfq.cn
http://www.dinnco.com/news/1260.html

相关文章:

  • 已有域名 搭建网站东莞seo快速排名
  • 专业网站建设系统制作网页一般多少钱
  • 巴城镇建设网站百度人气榜
  • 怎么让学生在网站上做问卷调查竞价推广营销
  • wordpress dealers东莞seo整站优化
  • 龙岗做商城网站建设百度搜索网址
  • 政府网站建设调查网络软文广告
  • 网站建设方面的优劣势分析广东清远今天疫情实时动态防控
  • 365建站器全媒体广告加盟
  • 做简单网站的框架友情链接是什么意思
  • 贵州做网站的绍兴seo计费管理
  • 企业网站的类型有哪些互联网广告代理商
  • wordpress 下划线 快捷键双桥seo排名优化培训
  • 给赌博网站做设计百度搜索竞价推广
  • 用别人的二级域名做网站网站设计制作培训
  • 网站建设安全吗青岛网站优化
  • 网站建设实训总结2000字佣金高的推广平台
  • 网站建设的收费标准成都黑帽seo
  • 如何用php做网站广州 关于进一步优化
  • 做网站推广和头条推广成品app直播源码有什么用
  • 信息类网站制作深圳外包seo
  • lnmp用端口做网站百度2019旧版本下载
  • 泉州做网站的企业个人如何优化网站有哪些方法
  • 金湖网页设计多少钱seo关键词排名报价
  • 怎么做色情充值网站怎么优化自己网站
  • 网站服务器上的跳转选择怎么做整合营销传播的六种方法
  • 东莞网站建设 兼职国际新闻头条今日要闻
  • 做地铁建设的公司网站网络营销属于什么专业类型
  • 做鞋的垂直网站苏州seo整站优化
  • 淘宝卖家 打电话 做网站企业网站推广策划