Build project
jarvis_make
Build deb
jarvis_make deb
deb packages:
- template_[version]_amd64.deb
- library files
- template-devel_[version]_amd64.deb
- header files and pkgconfig file
- sample code
- template-dbgsym_[version]_amd64.deb
- library's debug files
- include dir
- Save header files here, which you want export to others
- template.pc.in
- Change file name to
{your_project_name}.pc.in
- Change sections in your pkgconfig files
- Name -
{your_project_name}
- Requires - Your depend libraris which provide pkgconfig file
- Same with contents of
pkg_check_modules
in CMakeLists.txt
- Same with contents of
- Libs -
-l{your_project_name}
- Name -
- Change file name to
- CMakeLists.txt
- Change project name
project({your_project_name} VERSION 0.1.0)
-
configure_file({your_project_name}.pc.in {your_project_name}.pc) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/{your_project_name}.pc COMPONENT devel DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig )
- Set package owner name
set(CPACK_PACKAGE_CONTACT "{Your Name}@sg.cambricon.com")
- Set package dependency
set(CPACK_DEBIAN_PACKAGE_DEPENDS "{Depend pkg 1}, {Depend pkg 2}")
- Change project name
- sample
- Change project name in CMakeLists.txt, package.xml, and .launch file
- Write sample code use your library, and get data from ros messages
- Verification:
- Install devel package in your dev. enviroment
- Build sample code in install directory [/usr/share/jarvis/[project_name]/sample]
- Running sample binary