中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

asp 做網(wǎng)站的缺點世界排名前十位

asp 做網(wǎng)站的缺點,世界排名前十位,江蘇建筑職業(yè)技術(shù)學(xué)院,領(lǐng)創(chuàng)科技網(wǎng)站開發(fā)1.添加環(huán)境變量 D:\mingw64\bin 2.安裝vscode 3.下載opencv 4.8.0 4.程序引用第三方庫(opencv為例) 打開CMakeLists.txt,引入頭文件,使用include_directories 加入頭文件所在目錄。靜態(tài)鏈接庫link_directories # 頭文件 include_directories(D:/ope…

1.添加環(huán)境變量
D:\mingw64\bin

2.安裝vscode

3.下載opencv 4.8.0

4.程序引用第三方庫(opencv為例)

打開CMakeLists.txt,引入頭文件,使用include_directories 加入頭文件所在目錄。靜態(tài)鏈接庫link_directories

# 頭文件
include_directories(D:/opencv4.8.0/opencv/build/include)
# 靜態(tài)鏈接庫
link_directories(D:/opencv4.8.0/opencv/build/x64/vc16/lib)

在main 函數(shù)所在文件 添加 #pragma comment(lib,“xxx.lib”),如果當(dāng)前程序是Debug
加 opencv_world480d.lib;否則加opencv_world480.lib

#pragma comment(lib, "opencv_world480d.lib")

5.測試代碼

#include <opencv2/opencv.hpp>
#include <iostream>
#pragma comment(lib, "opencv_world480d.lib")
using namespace cv;
using namespace std;int main(int argc, char** argv) {Mat src = imread("D:/Work/opencv_test/images/1.jpeg");if (src.empty()) {cout << "could not load image..." << endl;return -1;}imshow("input", src);waitKey(0);return 0;
}

CMakeLists.txt

cmake_minimum_required(VERSION 3.28.0)
project(cpp_test)set(CMAKE_GENERATOR "MinGW Makefiles")
# 頭文件
include_directories(D:/opencv4.8.0/opencv/build/include)
# 靜態(tài)鏈接庫
link_directories(D:/opencv4.8.0/opencv/build/x64/vc16/lib)
add_executable(app test01.cpp)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

tasks.json

{"version": "2.0.0","options": {"cwd": "${workspaceFolder}/build"},"tasks": [{"type": "shell","label": "cmake","command": "cmake","args": [".."]},{"label": "make","group": "build","command": "make","args": [],"problemMatcher": []},{"label": "Build","dependsOrder": "sequence","dependsOn": ["cmake","make"]},{"type": "cppbuild",//"label": "C/C++: g++ 生成活動文件","label": "Build",// "command": "/usr/bin/g++","command": "D://mingw64//bin//g++.exe","args": ["-fdiagnostics-color=always","-g","-o","${workspaceFolder}/bin/Debug/app.exe","-fexec-charset=GBK"],"options": {"cwd": "${workspaceFolder}"},"problemMatcher": ["$gcc"],"group": {"kind": "build","isDefault": true},"detail": "D://mingw64//bin//g++.exe"}]
}

launch.json

{// 使用 IntelliSense 了解相關(guān)屬性。 // 懸停以查看現(xiàn)有屬性的描述。// 欲了解更多信息,請訪問: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(gdb) 啟動","type": "cppdbg","request": "launch","program": "${workspaceFolder}/bin/Debug/app.exe","args": ["-I", "D:\\opencv4.8.0\\opencv\\build\\include",//改成你自己的"-I", "D:\\opencv4.8.0\\opencv\\build\\include\\opencv2",//改成你自己的],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "為 gdb 啟用整齊打印","text": "-enable-pretty-printing","ignoreFailures": true},],"preLaunchTask": "Build","miDebuggerPath": "D://mingw64//bin//gdb.exe", // 修改為你的 gdb 路徑},]
}

參考文章:

VScode編寫C++概述(VScode 使用opencv與Eigen為例)_vscode c++使用opencv msvc-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/euphorias/article/details/120783669

windows環(huán)境下cmake創(chuàng)建MinGW類型makefile報錯_cmake error: error: generator : mingw makefiles-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/weixin_48876595/article/details/129414407

http://www.risenshineclean.com/news/947.html

相關(guān)文章:

  • 小語種網(wǎng)站建設(shè)鎮(zhèn)江市網(wǎng)站
  • 做吃穿住行網(wǎng)站seo提升排名
  • 網(wǎng)站建設(shè)新零售上海百度
  • 上海網(wǎng)站備案流程app下載注冊量推廣平臺
  • wordpress頁面的排序長沙百家號seo
  • 江陰 網(wǎng)站開發(fā)新東方烹飪學(xué)校學(xué)費價目表
  • 旅游網(wǎng)站建設(shè)內(nèi)容網(wǎng)站搜索排名優(yōu)化怎么做
  • 網(wǎng)站開發(fā)中的網(wǎng)頁上傳和網(wǎng)站發(fā)布網(wǎng)站點擊量與排名
  • 公司做網(wǎng)站的費用如何記賬軟文文案范文
  • iapp怎么把網(wǎng)站做軟件網(wǎng)站推廣計劃書范文500字
  • 設(shè)計建設(shè)網(wǎng)站搜索排名怎么做
  • 化妝品網(wǎng)站開發(fā)流程和進度安排網(wǎng)絡(luò)營銷模式有哪些
  • 新余做網(wǎng)站沈陽網(wǎng)絡(luò)營銷推廣的公司
  • 怎么用java 做網(wǎng)站互聯(lián)網(wǎng)推廣怎么找渠道
  • 如何做網(wǎng)站與網(wǎng)頁微信營銷軟件
  • 陜西省建設(shè)監(jiān)理協(xié)會證書查詢網(wǎng)站寧波網(wǎng)站推廣怎么做
  • 管理咨詢公司稅收優(yōu)惠青島seo優(yōu)化
  • 鎮(zhèn)江網(wǎng)站推廣南寧seo外包要求
  • 網(wǎng)站有了訂單郵箱提醒代碼營銷策略模板
  • 這么做國外網(wǎng)站的國內(nèi)鏡像站甘肅搜索引擎網(wǎng)絡(luò)優(yōu)化
  • 西安網(wǎng)絡(luò)公司網(wǎng)站建設(shè)小紅書推廣平臺
  • 網(wǎng)站開發(fā)基于什么平臺自己代理一款手游需要多少錢
  • go語言怎么搭建網(wǎng)頁東莞網(wǎng)站優(yōu)化關(guān)鍵詞排名
  • 用jsp做網(wǎng)站的難點云優(yōu)化
  • index.html網(wǎng)站怎么做重慶seo優(yōu)化公司
  • 免費下載建設(shè)銀行官方網(wǎng)站濟南優(yōu)化網(wǎng)站的哪家好
  • 岳陽網(wǎng)站開發(fā)商城網(wǎng)絡(luò)推廣項目計劃書
  • 校園網(wǎng)站建設(shè)模板上海網(wǎng)站排名seo公司哪家好
  • 做網(wǎng)站賭博代理違法嗎品牌推廣是做什么的
  • 做營銷網(wǎng)站制作seo綜合查詢是什么意思