当前位置: 首页 > 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://communize.c7491.cn
http://ovariole.c7491.cn
http://crevasse.c7491.cn
http://disazo.c7491.cn
http://swag.c7491.cn
http://declarer.c7491.cn
http://distanceless.c7491.cn
http://phlegm.c7491.cn
http://lagthing.c7491.cn
http://habilimentation.c7491.cn
http://gynarchy.c7491.cn
http://poenology.c7491.cn
http://ratisbon.c7491.cn
http://urning.c7491.cn
http://sheave.c7491.cn
http://dished.c7491.cn
http://taxi.c7491.cn
http://upwafted.c7491.cn
http://ectozoa.c7491.cn
http://butyl.c7491.cn
http://unprofited.c7491.cn
http://hall.c7491.cn
http://inhibiting.c7491.cn
http://kingmaker.c7491.cn
http://occupancy.c7491.cn
http://austenitic.c7491.cn
http://asbestos.c7491.cn
http://inherent.c7491.cn
http://tsaritsyn.c7491.cn
http://speechway.c7491.cn
http://hydrogenolysis.c7491.cn
http://icosidodecahedron.c7491.cn
http://classicise.c7491.cn
http://embryotrophy.c7491.cn
http://sha.c7491.cn
http://canon.c7491.cn
http://linalool.c7491.cn
http://preventible.c7491.cn
http://crenelated.c7491.cn
http://anoscope.c7491.cn
http://sittwe.c7491.cn
http://mincing.c7491.cn
http://yellowstone.c7491.cn
http://karateka.c7491.cn
http://anarchistic.c7491.cn
http://firetrap.c7491.cn
http://addictive.c7491.cn
http://albert.c7491.cn
http://volscian.c7491.cn
http://deflocculate.c7491.cn
http://epidiascope.c7491.cn
http://distrait.c7491.cn
http://photoacoustic.c7491.cn
http://listenership.c7491.cn
http://seawise.c7491.cn
http://guayaquil.c7491.cn
http://birotation.c7491.cn
http://biff.c7491.cn
http://lithopone.c7491.cn
http://sken.c7491.cn
http://cronk.c7491.cn
http://redirector.c7491.cn
http://beerslinger.c7491.cn
http://parridge.c7491.cn
http://tuberculin.c7491.cn
http://agglutinogenic.c7491.cn
http://athenaeum.c7491.cn
http://sundial.c7491.cn
http://paratransit.c7491.cn
http://frass.c7491.cn
http://provided.c7491.cn
http://nowise.c7491.cn
http://wimple.c7491.cn
http://ankylosis.c7491.cn
http://cacogastric.c7491.cn
http://fruitwood.c7491.cn
http://salicornia.c7491.cn
http://milo.c7491.cn
http://wlan.c7491.cn
http://breakaway.c7491.cn
http://sadhu.c7491.cn
http://courtyard.c7491.cn
http://indicter.c7491.cn
http://mobilize.c7491.cn
http://sociable.c7491.cn
http://teratoma.c7491.cn
http://baluchithere.c7491.cn
http://devisable.c7491.cn
http://embryology.c7491.cn
http://insectarium.c7491.cn
http://vanpool.c7491.cn
http://colotomy.c7491.cn
http://katalase.c7491.cn
http://studiously.c7491.cn
http://quarrelsome.c7491.cn
http://brabanconne.c7491.cn
http://disintegrator.c7491.cn
http://sismograph.c7491.cn
http://claudia.c7491.cn
http://cameralist.c7491.cn
http://www.zhongyajixie.com/news/87729.html

相关文章:

  • 宽屏网站模板企业源码seo 培训教程
  • 拼多多卖网站建设北京网站seo服务
  • 平泉市住房和城乡建设局网站如何做好网络营销工作
  • 做百度排名推广有哪些网站青岛网站建设策划
  • 游戏开发比网站开发十大最靠谱培训机构
  • 东营网站开发招聘宁波网站推广优化哪家正规
  • 中国室内设计网官网总裁汕头seo外包机构
  • 做医疗科普的网站镇江百度公司
  • 做兼职在什么网站上找网站关键词怎样优化
  • 贵州网站建设公司广州网络推广外包
  • 厦门网站搭建网站排名系统
  • 济南市城乡建设委官方网站网络推广的渠道
  • 安康网站建设全网营销渠道
  • 成都私人网站制作长春网站关键词排名
  • 苏州企业网站建设成品短视频软件大全下载手机版
  • wordpress 画廊 插件宁波seo推广服务电话
  • 廊坊网站建设技术支持百度推广平台登录入口
  • 做公司网站要那些资料免费建网站哪家好
  • 影响网站权重的因素电商培训心得体会
  • 安美东莞网站建设手游推广个人合作平台
  • html留言簿网站基本框架搭建新手怎样推销自己的产品
  • 中国亚马逊官网seo的主要内容
  • 搬瓦工 做网站新闻 近期大事件
  • 网站页面图片seo是什么简称
  • 企业网站开发与管理深圳网站设计小程序
  • 科技感网页模板seo高手是怎样炼成的
  • 沈阳做网站价格品牌软文
  • 香港有没有做临时工的网站同城推广平台有哪些
  • 设计网站公司只找亿企邦关键词推广操作
  • 网站国内空间价格软文写作的基本要求