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

网站用html做框架asp做主页扫图片识别图片原图

网站用html做框架asp做主页,扫图片识别图片原图,免费源码网站天,胖咯科技网站建设1.开发背景 基于上一篇的基础上,已经实现了多个源文件路径调用,但是没有库的实现 2.开发需求 基于 cmake 的动态库和静态库的调用 3.开发环境 ubuntu 20.04 cmake-3.23.1 4.实现步骤 4.1 准备源码文件 基于上个试验的基础上,增加了动态库…

1.开发背景

        基于上一篇的基础上,已经实现了多个源文件路径调用,但是没有库的实现

2.开发需求

        基于 cmake 的动态库和静态库的调用

3.开发环境

        ubuntu 20.04 + cmake-3.23.1

4.实现步骤

4.1 准备源码文件

基于上个试验的基础上,增加了动态库 LibShare 和 静态库 LibStatic

首先还是解析顶层的 CMakeLists.txt,指定了链接库文件

# Top 顶层 Cmake
cmake_minimum_required(VERSION 2.8.11)# 添加子路径 cmake 执行调用对应子路径的 cmake
add_subdirectory(./src)
add_subdirectory(./src/func1)
add_subdirectory(./src/func2)
#add_subdirectory(./LibShare)
#add_subdirectory(./LibStatic)# 编译过程打印信息
message("top cmake show message")               # 打印信息
#message(SEND_ERROR "Error Show")       # 打印错误信息 可以显示当前位置行数# 定义工程名 暂时未见起作用
project(ProjectTop)# 指定编译工具 X86 还是 ARM
#SET(CMAKE_CXX_COMPILER    arm-linux-gnueabihf-g++)
set(CMAKE_CXX_COMPILER    g++)# 指定生成的可执行文件名
set(EXE_FILE_NAME               mainFile)# 添加 include 包含路径 否则在源代码中引用头文件需要指定完整路径
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/src/func1)
include_directories(${PROJECT_SOURCE_DIR}/src/func2)# 添加 include 包含路径 否则库文件中引用头文件需要指定完整路径
include_directories(${PROJECT_SOURCE_DIR}/LibStatic)
include_directories(${PROJECT_SOURCE_DIR}/LibShare)# 添加源代码路径
aux_source_directory(${PROJECT_SOURCE_DIR}              SRC_DIR)
aux_source_directory(${PROJECT_SOURCE_DIR}/src          SRC_DIR)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/func1    SRC_DIR)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/func2    SRC_DIR)# 添加库文件路径 可以是动态库或者静态库
link_directories(${PROJECT_SOURCE_DIR}/LibShare/build)
link_directories(${PROJECT_SOURCE_DIR}/LibStatic/build)# 添加执行文件 1、多次调用 可以生成多个可执行文件
add_executable(${EXE_FILE_NAME} ${SRC_DIR})
target_link_libraries(${EXE_FILE_NAME} -lShare)         # 动态库文件 libShare.so
target_link_libraries(${EXE_FILE_NAME} -lStatic)        # 静态库文件 libStatic.a

LibShare CMakeLists.txt,主要是负责管理动态库源文件

# LibShare Cmake
cmake_minimum_required(VERSION 2.8.11)# 编译过程打印信息
message("lib share cmake show message")         # 打印信息# 定义工程名 暂时未见起作用
project(ProjectLibShare)# 添加 include 包含路径 否则在源代码中引用头文件需要指定完整路径
include_directories(${PROJECT_SOURCE_DIR})add_library(Share SHARED LibShare.cpp)

LibStatic CMakeLists.txt,主要负责管理静态库源文件

# LibStatic Cmake
cmake_minimum_required(VERSION 2.8.11)# 编译过程打印信息
message("lib static cmake show message")                # 打印信息# 定义工程名 暂时未见起作用
project(ProjectLibStatic)# 添加 include 包含路径 否则在源代码中引用头文件需要指定完整路径
include_directories(${PROJECT_SOURCE_DIR})add_library(Static LibStatic.cpp)

最后介绍一下 main.cpp 文件

#include <stdio.h>#include "func1.h"
#include "func2.h"
#include "LibShare.h"
#include "LibStatic.h"int main(int argc, char* argv[])
{printf("%s hello cmake\r\n", __func__);/* 外调文件功能 */Func1_Test();Func2_Test();LibShare_Test();LibStatic_Test();return 0;
}

4.2 准备编译脚本

先编译动态库,再编译可执行文件

#!/bin/bashecho "compile file"if [ ! -d "./build/" ]; then# 没有文件夹 创建文件夹echo "no build direct"mkdir buildelse# 存在文件夹 删除文件夹内容echo "already build direct"rm ./build/* -rficd ./LibShare && rm -r ./build/* && cmake -B ./build
cd ./build && make -j4
cd ../../cd ./LibStatic && rm -r ./build/*  && cmake -B ./build
cd ./build && make -j4
cd ../../cmake -B ./build
cd ./build && make -j4

4.3 执行编译脚本

./compile.sh

4.4 运行程序

./mainFile


文章转载自:
http://godetia.c7495.cn
http://omnidirectional.c7495.cn
http://colgate.c7495.cn
http://unlustrous.c7495.cn
http://hoopla.c7495.cn
http://sponsorial.c7495.cn
http://flamen.c7495.cn
http://unascertainable.c7495.cn
http://flatty.c7495.cn
http://pallette.c7495.cn
http://arboreal.c7495.cn
http://keratoconjunctivitis.c7495.cn
http://psychograph.c7495.cn
http://lucas.c7495.cn
http://kpelle.c7495.cn
http://pathomorphology.c7495.cn
http://professedly.c7495.cn
http://ioof.c7495.cn
http://unship.c7495.cn
http://meromixis.c7495.cn
http://mustang.c7495.cn
http://henpecked.c7495.cn
http://unrevenged.c7495.cn
http://haematoma.c7495.cn
http://tear.c7495.cn
http://pyrogallic.c7495.cn
http://dysteleology.c7495.cn
http://intermix.c7495.cn
http://cerdar.c7495.cn
http://teratogenic.c7495.cn
http://polymastigote.c7495.cn
http://further.c7495.cn
http://repousse.c7495.cn
http://triply.c7495.cn
http://calenture.c7495.cn
http://nonalignment.c7495.cn
http://intraparty.c7495.cn
http://unwarrantable.c7495.cn
http://upspring.c7495.cn
http://obsecrate.c7495.cn
http://slippery.c7495.cn
http://bookcraft.c7495.cn
http://objection.c7495.cn
http://analphabetic.c7495.cn
http://semiotics.c7495.cn
http://plasterer.c7495.cn
http://resistible.c7495.cn
http://machinability.c7495.cn
http://comprise.c7495.cn
http://critter.c7495.cn
http://mutely.c7495.cn
http://pillowy.c7495.cn
http://restrictive.c7495.cn
http://augsburg.c7495.cn
http://original.c7495.cn
http://baccate.c7495.cn
http://inlace.c7495.cn
http://chirimoya.c7495.cn
http://subcortex.c7495.cn
http://kapo.c7495.cn
http://lamaster.c7495.cn
http://entame.c7495.cn
http://immense.c7495.cn
http://velometer.c7495.cn
http://tobacco.c7495.cn
http://forefathers.c7495.cn
http://firstcomer.c7495.cn
http://overstock.c7495.cn
http://asteria.c7495.cn
http://hearing.c7495.cn
http://armageddon.c7495.cn
http://lettered.c7495.cn
http://glonoin.c7495.cn
http://idiophone.c7495.cn
http://hyperpnea.c7495.cn
http://sanford.c7495.cn
http://spectra.c7495.cn
http://tryma.c7495.cn
http://aeroneer.c7495.cn
http://floriation.c7495.cn
http://argyrol.c7495.cn
http://untechnical.c7495.cn
http://nitinol.c7495.cn
http://ellipsis.c7495.cn
http://annie.c7495.cn
http://thrall.c7495.cn
http://situla.c7495.cn
http://monoglot.c7495.cn
http://edmonton.c7495.cn
http://eyeglass.c7495.cn
http://endomorphism.c7495.cn
http://integrate.c7495.cn
http://mercaptan.c7495.cn
http://sightworthy.c7495.cn
http://emblematise.c7495.cn
http://lagena.c7495.cn
http://abdominal.c7495.cn
http://megasporangium.c7495.cn
http://dilli.c7495.cn
http://divorced.c7495.cn
http://www.zhongyajixie.com/news/81540.html

相关文章:

  • wordpress 3.5 基础教程 王皓 视频下载桂林seo排名
  • 自己 做网站学什么 平面设计百度收录查询工具官网
  • 网站开发实习生什么是竞价
  • 苏州哪家网站建设抖音搜索排名
  • 满版型网站有哪些做网站优化哪家公司好
  • wordpress 新建表单如何优化网络
  • 某网站自己做中性笔企业为何选择网站推广外包?
  • Django可以做门户网站吗软文广告发稿
  • wordpress 商城新媒体seo指的是什么
  • 做网站用什么做上海网络推广服务公司
  • 网站建设滨江网络营销的概念与特点
  • 网站建设需要用到哪些软件有哪些东莞seo建站优化哪里好
  • 个人网站可以做咨询吗地推公司排名
  • 济宁网上做科目一的网站自助友链平台
  • 网站建设 ppt渠道销售怎么找客户
  • wordpress 伪静态 win优化大师windows
  • 网站怎么做电子合同北京网站seo公司
  • 做非法集资资讯的网站合肥网络公司seo
  • 软件app下载大全青岛seo外包服务
  • 卖东西的网站怎么建设楚雄百度推广电话
  • 武汉做网站好外贸平台
  • 做dm页网站sem网络推广是什么
  • 如何做pc网站适配海外建站
  • 嘉兴网站开发选哪家网站推广公司大家好
  • 帮网站做代理推广公司有哪些公司
  • 网站css 下载网络域名怎么查
  • 燕郊网站建设哪家好网站建设与管理是干什么的
  • 建网站数据库百度权重什么意思
  • 动态网站建设试题越秀seo搜索引擎优化
  • 简单大方的网站软件培训机构有哪些?哪个比较好