build

在VS中配置并测试opencv

佐手、 提交于 2020-04-08 07:31:22
  什么是opencv?   opencv是一个计算机视觉库。它目前有两个分支2.4.X和3.X,2.4.X版本是经典版本,网上的教程资源大多是关于它的,所以推荐使用2.4.X。   它能帮我做什么?   这意味着你可以在自己的程序中使用计算机视觉相关功能,但不必关注具体实现。就像你使用电脑,但并不用关注电脑内部的原理。你唯一需要知道的就是如何使用它。   我该如何使用它?   这就是本文的工作^-^ 。      1,下载opencv   首先到opencv官网下载win平台的opencv,解压后你可以看到下面两个文件夹——build和sources,build是官方已经为我们编译好的可以直接使用的,而sources中是opencv的源码,仅供高级玩家尝试。   下载下来后可以大致浏览一下build文件夹下的内容:   粗略一看就看到了熟悉的x86与x64(32位用和64位用),还有vc11和vc12,虽然以前没见过但大致也可以猜出vc11和vc12是指自己的VS中vc版本,我们可以根据自己的系统与vs版本来选择。   2.配置环境变量   程序中的可执行文件,必须添加到系统环境变量PATH中才能被系统识别。这就类似一所房子,你必须登记到你的名下,才能使用它。opencv也是一样,它在某些目录中提供了一些可执行文件,所以我们必须将这个目录添加到系统环境变量中。  

opencv在VS中的配置

荒凉一梦 提交于 2020-04-08 06:40:35
添加文件 (1)项目属性->VC++目录->包含目录->(D:\opencv\opencv249\opencv\build\include\opencv),(D:\opencv\opencv249\opencv\build\include\opencv2),(D:\opencv\opencv249\opencv\build\include) (2)项目属性->VC++目录->库目录->(D:\opencv\opencv249\opencv\build\x86\vc12\lib) 添加lib 项目属性->连接器->输入->附加依赖项 opencv_ml249d.lib opencv_calib3d249d.lib opencv_contrib249d.lib opencv_core249d.lib opencv_features2d249d.lib opencv_flann249d.lib opencv_gpu249d.lib opencv_highgui249d.lib opencv_imgproc249d.lib opencv_legacy249d.lib opencv_objdetect249d.lib opencv_ts249d.lib opencv_video249d.lib opencv_nonfree249d.lib opencv_ocl249d.lib opencv

proxy.config.json is not working in Angular 4/5 when i use ng build

人走茶凉 提交于 2020-04-07 21:26:08
问题 i am using proxy api setting for API calls in angular 5 as discussed in this website .https://juristr.com/blog/2016/11/configure-proxy-api-angular-cli/ this working properly when i use npm start. but when i build this and host it on IIS. it is not working. i believe proxy.config.json is not added inside dist folder. 回答1: Proxy is working when dev server active. ng build doesn't start dev server, this command only build the project. Therefore you cannot use proxy in assembled project. You can

Could not find plugin “proposal-numeric-separator”

我只是一个虾纸丫 提交于 2020-04-07 14:41:11
问题 How to fix Could not find plugin "proposal-numeric-separator" , I get this error when I try to build my React application, I have not ejected the application yet: ./src/index.js Error: [BABEL] /home/pc/Downloads/project/src/index.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/home/pc/Downloads/project/node_modules/babel-preset-react-app/index.js$0") at Array.map (<anonymous>) at Generator.next (<anonymous

what is .d file after building with make

狂风中的少年 提交于 2020-04-07 14:25:40
问题 Sometimes, I find .d files for a given source file. For instance, if I compile test.c, I've got test.d, test.o I understand that test.o is the object file but have no idea what is test.d for. Could you give any hints or pointers? 回答1: Many build systems add automatically detected make dependencies into the .d file. In particular, for C/C++ source files they determine what #include files are required and automatically generate that information into the .d file. The .d files are then included

Nginx+Tomcat部署Angular+javaweb项目的操作

a 夏天 提交于 2020-04-07 13:15:09
导读 最近项目进入了即将验收阶段,项目部署是必不可少的。由于某些原因,我们把前端项目(Angular4)和后端项目(JavaWeb),由于要部署了四个项目:Angular4(微信端),微信端数据服务,JavaWeb(PC端)*2,并且是放在同一个服务器下。Java项目比较好部署,Tomcat/Jetty都可以轻松部署好。但是Angular部署起来不是那么的容易(当然是对于我这种菜鸟而言),我先说下为什么我说不容易的原因。 最初时,我用ng build –prod –aot编译打包的时候。这里注意一下,由于现在官方已经内置了,所以打包的时候只需要输入ng build –prod即可了。这里可以以我的项目体积相比较一下: ng build : 8,348,761字节 ng build –aot : 9,232,405字节 ng build –prod : 1,839,811字节 ng build –prod –aot : 1,839,811字节 最后可以看出,ng build –prod即可完成产品化最小打包。这里我有一点不懂,预编译构建反而比常规构建的体积还要大,希望大神可以帮忙解答。 这里就不再讲如何让项目更小了。 当我把dist里面的文件拷到Tomcat的ROOT文件夹下,打开http://127.0.0.1的时候,熟悉的项目页面展示了出来。习惯性按了F5刷新

python程序打包

假如想象 提交于 2020-04-07 11:33:20
1.Setuptools基础 2.打包 3.编译扩展 4.使用py2exe创建可执行文件 1.Setuptools基础 使用Setuptools可以完成很多任务,只需编写如下这样简单的脚本即可(如果没有安装Setuptools,可食用pip安装) from Setuptools import setup setup(name = 'Hello', version = '1.0', description = 'A simple example', author = 'Magnus Lie Hetland', py_modules = ['hello'] 并非一定要向函数setup提供上面列出的所有信息(实际上,可以不提供任何参数);也可以提供其他的信息(例如author_email 或者url) 注意:安装脚本运行时,将在当前目录中创建新的文件和子目录,因此你需要将其存储在一个新目录中,以免覆盖既有的文件。 python setup.py build running build running build_py creating build creating build/lib copying hello.py ->build/lib Setuptools创建了一个名为build的目录; 且包含子目录lib 且将hello.py复制到了这个子目录中 install: python

Gradle这篇文章就够用了11-Gradle与CI/CD插件集成

倾然丶 夕夏残阳落幕 提交于 2020-04-06 17:59:56
Gradle与CI/CD插件集成 结合JUnit进行单体测试 在build.gradle中添加testImplementation,例如 buildscript { ext { springBootVersion = '2.1.1.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' group = 'com.orrincn' version = '0.0.1-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { implementation('org.springframework.boot:spring-boot-starter-web') testImplementation('org

Gradle这篇文章就够用了09-使用gradle init进行初始化

白昼怎懂夜的黑 提交于 2020-04-06 17:32:29
使用gradle init进行初始化 很多工具都有创建创建项目骨架的初期化的功能,比如前端框架的angular,使用它的cli可以快速创建一个包含接近30个文件的骨架能让你快速的搭建项目。maven在创建pom的时候也可以通过命令行交互的方式进行简化,而gradle则提供了gradle init来进行创建。 事前准备 只需要创建一个新的目录,这里的名称为init liumiaocn:init liumiao$ ls liumiaocn:init liumiao$ gradle init 使用gradle init即可创建一个gradle项目的骨架 liumiaocn:init liumiao$ gradle init BUILD SUCCESSFUL in 0s 2 actionable tasks: 2 executed liumiaocn:init liumiao$ 内容确认 文件说明 可以看到一共创建了2个目录和6个文件,其中2个目录和4个文件都跟wrapper有关: liumiaocn:init liumiao$ ls build.gradle gradle gradlew gradlew.bat settings.gradle liumiaocn:init liumiao$ tree . ├── build.gradle ├── gradle │ └── wrapper

How to fix Unsupported class file major version 57 in maven for Java 13 and Spring

浪尽此生 提交于 2020-04-06 07:18:13
问题 I have this error How to fix it? Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57 I have such POM <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.5.RELEASE</version> </parent> <properties> <java.version>13</java.version> </properties> Project has many literals, so Java 13 is required. 回答1: Changing Spring boot version in the pom.xml solved this issue for me. <parent> <groupId>org