Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added a new cmake_build for generating a debian#855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tarunkartik wants to merge3 commits intoBehaviorTree:master
base:master
Choose a base branch
Loading
fromtarunkartik:generate_behaviortree_deb

Conversation

@tarunkartik
Copy link

If you want to generate a standalone behaviortree_cpp debian that you can install and link your project against,

  • Clone the BehaviorTreee.CPP repo
  • cd into the cloned repo
  • run the following commands:
cmake -S . -B build -DCMAKE_BUILD=ONcmake --build build/ -j{Number_of_cores} --target package

Replace {Number_of_cores} with how many cores you would like to use to build.

  • If built succesfully, it should generate a.deb file inside the build folder.
  • You can install this debian in any container or environment usingapt install /path/to/.deb

@tarunkartiktarunkartik marked this pull request as draftAugust 5, 2024 22:16
@tarunkartiktarunkartik marked this pull request as ready for reviewAugust 5, 2024 22:17
@tarunkartiktarunkartik changed the titleWIP: Added a new cmake_build for generating a debianAdded a new cmake_build for generating a debianAug 5, 2024
@tarunkartik
Copy link
Author

@facontidavide is there something blocking this merge or is this a feature that you dont foresee people using?

@facontidavide
Copy link
Collaborator

Is this change tested on Windows? We don't want to break it there

@tarunkartik
Copy link
Author

I have not tested it on windows. I can do that. It looks like the repo already has a pipeline to test against windows. Are there any instructions on how to trigger them?

option(BTCPP_UNIT_TESTS"Build the unit tests"ON)
option(BTCPP_GROOT_INTERFACE"Add Groot2 connection. Requires ZeroMQ"ON)
option(BTCPP_SQLITE_LOGGING"Add SQLite logging."ON)
option(CMAKE_BUILD"Build using CMAKE"OFF)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

what is the purpose of adding this? Shouldn't it be the default ON?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The intent is that the users would turn this ON only when they need standalone debians that do not depend on ROS (catkin/ament). That was my requirement for a project I have been working on where I am using BTCPP with a custom RTOS.
Maybe the variable could be named 'GENERATE_DEBS' instead of 'CMAKE_BUILD', if that makes it clearer?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@facontidavidefacontidavidefacontidavide requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tarunkartik@facontidavide@tchintalapati

[8]ページ先頭

©2009-2025 Movatter.jp