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

网站配置域名这样做如何制作一个简单的网页

网站配置域名这样做,如何制作一个简单的网页,哈尔滨制作手机网站,劵妈妈这种网站怎么做【学习笔记】解决编译 Serial Communication Library 时的 Catkin 依赖问题 Serial Communication Library 是一个用 C 编写的用于连接类似 rs-232 串口的跨平台库。它提供了一个现代的 C 接口,它的工作流程设计在外观和感觉上与 PySerial 相似,但串口速…

【学习笔记】解决编译 Serial Communication Library 时的 Catkin 依赖问题

Serial Communication Library 是一个用 C++ 编写的用于连接类似 rs-232 串口的跨平台库。它提供了一个现代的 C++ 接口,它的工作流程设计在外观和感觉上与 PySerial 相似,但串口速率和控制由 C++ 提供。

github 地址:

https://github.com/wjwwood/serial

Serial Communication Library 在多个机器人相关项目中使用,可以像大多数 unix 库一样通过 make 和 sudo make install 构建并安装到操作系统中,但因为它是一个 catkin 项目,所以也可以在 catkin 工作区中与其他 catkin 项目一起构建。

我使用 cmake 来编译这个工程,会有如下的错误:

CMake Error at CMakeLists.txt:5 (find_package):By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project hasasked CMake to find a package configuration file provided by "catkin", butCMake did not find one.Could not find a package configuration file provided by "catkin" with anyof the following names:catkinConfig.cmakecatkin-config.cmakeAdd the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set"catkin_DIR" to a directory containing one of the above files.  If "catkin"provides a separate development package or SDK, be sure it has beeninstalled.

可以看到,必须安装相应的 Catkin 环境才可以编译,因为我没有安装 Catkin 环境,所以没办法编译成功。但是我不想依赖 Catkin,所以就去寻找了去除 Catkin 依赖的方法。

我在这个github项目的 Issues 中看到了很多人也有这个需求,最后在这里Remove Catkin dependency while keeping CMake’s find_package() feature by dbolkensteyn · Pull Request #133 · wjwwood/serial · GitHub中找到了解决方案,只需要修改 CMakeLists.txt 就可以删除Catkin依赖。

CMakeLists.txt 中需要修改的地方对比图如下:

对比图1
对比图2

最后将 CMakeLists.txt 修改成如下:

cmake_minimum_required(VERSION 2.8.3)
project(serial)if(APPLE)find_library(IOKIT_LIBRARY IOKit)find_library(FOUNDATION_LIBRARY Foundation)
endif()## Sources
set(serial_SRCSsrc/serial.ccinclude/serial/serial.hinclude/serial/v8stdint.h
)
if(APPLE)# If OSXlist(APPEND serial_SRCS src/impl/unix.cc)list(APPEND serial_SRCS src/impl/list_ports/list_ports_osx.cc)
elseif(UNIX)# If unixlist(APPEND serial_SRCS src/impl/unix.cc)list(APPEND serial_SRCS src/impl/list_ports/list_ports_linux.cc)
else()# If windowslist(APPEND serial_SRCS src/impl/win.cc)list(APPEND serial_SRCS src/impl/list_ports/list_ports_win.cc)
endif()## Add serial library
add_library(${PROJECT_NAME} STATIC ${serial_SRCS})
if(APPLE)target_link_libraries(${PROJECT_NAME} ${FOUNDATION_LIBRARY} ${IOKIT_LIBRARY})
elseif(UNIX)target_link_libraries(${PROJECT_NAME} rt pthread)
else()target_link_libraries(${PROJECT_NAME} setupapi)
endif()## Add example project
add_executable(serial_example examples/serial_example.cc)
add_dependencies(serial_example ${PROJECT_NAME})
target_link_libraries(serial_example ${PROJECT_NAME})## Include headers
include_directories(include)## Install
set(INSTALL_LIB_DIR lib)
set(INSTALL_INCLUDE_DIR include)
set(INSTALL_CMAKE_DIR share/serial/cmake)## Install executable
install(TARGETS ${PROJECT_NAME}DESTINATION ${INSTALL_LIB_DIR}EXPORT ${PROJECT_NAME}-targets
)## Install headers
install(FILES include/serial/serial.h include/serial/v8stdint.hDESTINATION ${INSTALL_INCLUDE_DIR}/serial)## Install CMake files
install(EXPORT ${PROJECT_NAME}-targets DESTINATION ${INSTALL_CMAKE_DIR})include(CMakePackageConfigHelpers)
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Version.cmakeVERSION 1.2.1COMPATIBILITY AnyNewerVersion)install(FILES ${CMAKE_SOURCE_DIR}/cmake/${PROJECT_NAME}Config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Version.cmakeDESTINATION ${INSTALL_CMAKE_DIR})## Tests
# FIXME
#if(CATKIN_ENABLE_TESTING)
#    add_subdirectory(tests)
#endif()

修改完之后重新 cmake 就可以了。


本文链接:https://blog.csdn.net/u012028275/article/details/140701592


文章转载自:
http://dinncounstirred.tpps.cn
http://dinncoriddle.tpps.cn
http://dinncocebu.tpps.cn
http://dinncotaxman.tpps.cn
http://dinncoantichristianism.tpps.cn
http://dinncoundoubled.tpps.cn
http://dinncochequebook.tpps.cn
http://dinncoepisterna.tpps.cn
http://dinncocarriable.tpps.cn
http://dinnconomarchy.tpps.cn
http://dinncorompish.tpps.cn
http://dinncograinsick.tpps.cn
http://dinncocrabeater.tpps.cn
http://dinncocompleteness.tpps.cn
http://dinnconasrani.tpps.cn
http://dinncoworkbox.tpps.cn
http://dinncounforeseeing.tpps.cn
http://dinncoteddy.tpps.cn
http://dinncoflyte.tpps.cn
http://dinncoawless.tpps.cn
http://dinncoseawards.tpps.cn
http://dinncoheliochromy.tpps.cn
http://dinncouncandid.tpps.cn
http://dinncogarageman.tpps.cn
http://dinncoantithrombotic.tpps.cn
http://dinncoempoverish.tpps.cn
http://dinncorecertification.tpps.cn
http://dinncosynopsis.tpps.cn
http://dinncoalsatian.tpps.cn
http://dinncoairward.tpps.cn
http://dinncoproconsulate.tpps.cn
http://dinncoapodous.tpps.cn
http://dinncodaiquiri.tpps.cn
http://dinncocentriole.tpps.cn
http://dinnconegroid.tpps.cn
http://dinncowove.tpps.cn
http://dinncotemporarily.tpps.cn
http://dinncodietetic.tpps.cn
http://dinncoprotocol.tpps.cn
http://dinncomarxist.tpps.cn
http://dinncooutskirts.tpps.cn
http://dinncofreeload.tpps.cn
http://dinncocentner.tpps.cn
http://dinncocountrified.tpps.cn
http://dinncoaglimmer.tpps.cn
http://dinncosemioviparous.tpps.cn
http://dinncochronic.tpps.cn
http://dinncowaiting.tpps.cn
http://dinncotoolbox.tpps.cn
http://dinncopantheism.tpps.cn
http://dinncochatter.tpps.cn
http://dinncoamoeboid.tpps.cn
http://dinncosaloonkeeper.tpps.cn
http://dinncobowline.tpps.cn
http://dinncosubvertical.tpps.cn
http://dinncocataract.tpps.cn
http://dinncoresurrect.tpps.cn
http://dinncomagazine.tpps.cn
http://dinncocatling.tpps.cn
http://dinncojct.tpps.cn
http://dinncoshunga.tpps.cn
http://dinncodigestive.tpps.cn
http://dinncopolygenism.tpps.cn
http://dinncosetteron.tpps.cn
http://dinncoverso.tpps.cn
http://dinncotripey.tpps.cn
http://dinncotelevisor.tpps.cn
http://dinncorocaille.tpps.cn
http://dinncolumberyard.tpps.cn
http://dinncoartfully.tpps.cn
http://dinncothaw.tpps.cn
http://dinncowisperer.tpps.cn
http://dinncotitillation.tpps.cn
http://dinncoeuphemia.tpps.cn
http://dinncogunnar.tpps.cn
http://dinncocircumgalactic.tpps.cn
http://dinncoexterminate.tpps.cn
http://dinncobullfrog.tpps.cn
http://dinncosubdebutante.tpps.cn
http://dinncothermistor.tpps.cn
http://dinncomagnify.tpps.cn
http://dinncostandoffishness.tpps.cn
http://dinncocentralize.tpps.cn
http://dinncooutridden.tpps.cn
http://dinncogame.tpps.cn
http://dinncooncost.tpps.cn
http://dinncoclapboard.tpps.cn
http://dinncofleshette.tpps.cn
http://dinncofeeze.tpps.cn
http://dinncopersonalty.tpps.cn
http://dinncopainful.tpps.cn
http://dinnconankeen.tpps.cn
http://dinncoschatchen.tpps.cn
http://dinnconwt.tpps.cn
http://dinncolangley.tpps.cn
http://dinncopolygraph.tpps.cn
http://dinncotetrahydrate.tpps.cn
http://dinncoenantiotropic.tpps.cn
http://dinncomilitarize.tpps.cn
http://dinncosnapshot.tpps.cn
http://www.dinnco.com/news/94446.html

相关文章:

  • 网站做多久流量如何做网站推广广告
  • 沧州网站建设公司网站制作需要多少钱
  • 北京医疗机构网站前置审批需要的材料有哪些百度视频推广
  • wordpress跳转代码长沙关键词优化方法
  • 南通网站建设排名公司哪家好中国十大企业培训公司
  • 零基础一个人做网站成都seo技术经理
  • 网络营销推广方法包括有哪些?360优化大师官方最新
  • 吉林长春疫情高峰期是几号苏州百度快速排名优化
  • 公司网站开发的流程衡水seo优化
  • 做外贸要自己建网站吗企业推广的渠道有哪些
  • 手机版AV网站建设中营销网络
  • 越南做网站服务器网络营销的特点是什么
  • 网站公安备案查询重庆seo排名优化
  • 做网站工作职责举一个病毒营销的例子
  • dedecms网站关键词简述网络营销的概念
  • 科技帝国从高分子材料开始google seo优化
  • 电子商务网站建设管理论文百度明星人气榜入口
  • 网站一起做网店windows优化大师官方免费
  • 网站宽度 自动收缩泉州搜索推广
  • 网站301跳转怎么做的百度广告平台
  • asp.ney旅游信息网站下载 简洁全案网络推广公司
  • 房地产集团网站建设方案深圳aso优化
  • 营销型网站策划教育培训机构招生方案
  • 做网站下载福州短视频seo方法
  • 上海网站开发开发好的公司电话百度收录批量查询
  • 图片设计在线企业网站优化解决方案
  • php动态网站开发效果图2024年新闻摘抄十条
  • 创建网站百度站点
  • 济南网站建设套餐搜索引擎seo关键词优化
  • 人力资源公司网站建设方案友情链接怎么交换