Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't make/build rclcpp local using master branch #779

Closed
popeaaa opened this issue Jul 7, 2019 · 2 comments
Closed

Couldn't make/build rclcpp local using master branch #779

popeaaa opened this issue Jul 7, 2019 · 2 comments
Labels
question Further information is requested

Comments

@popeaaa
Copy link

popeaaa commented Jul 7, 2019

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • current branch:master
  • DDS implementation:
    • Fast RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

git clone https://github.com/ros2/rclcpp.git
cd rclcpp
mkdir build
cd build
cmake ..
wait cmake finish his job...
then, use make
and it prints a ERROR

Expected behavior

I tried to build rclcpp on my machine.but it failed.
make and make install should work fine
but now it didn't

Actual behavior

here is the "make" command prints :
/home/rbq/workspace/ROS2/source_codes_git/rclcpp/rclcpp/src/rclcpp/subscription_base.cpp: In member function ‘rmw_qos_profile_t rclcpp::SubscriptionBase::get_actual_qos() const’:
/home/rbq/workspace/ROS2/source_codes_git/rclcpp/rclcpp/src/rclcpp/subscription_base.cpp:134:35: error: ‘rcl_subscription_get_actual_qos’ was not declared in this scope
const rmw_qos_profile_t * qos = rcl_subscription_get_actual_qos(subscription_handle_.get());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rbq/workspace/ROS2/source_codes_git/rclcpp/rclcpp/src/rclcpp/subscription_base.cpp:134:35: note: suggested alternative: ‘rcl_subscription_get_options’
const rmw_qos_profile_t * qos = rcl_subscription_get_actual_qos(subscription_handle_.get());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rcl_subscription_get_options
CMakeFiles/rclcpp.dir/build.make:1123: recipe for target 'CMakeFiles/rclcpp.dir/src/rclcpp/subscription_base.cpp.o' failed
make[2]: *** [CMakeFiles/rclcpp.dir/src/rclcpp/subscription_base.cpp.o] Error 1
CMakeFiles/Makefile2:1424: recipe for target 'CMakeFiles/rclcpp.dir/all' failed
make[1]: *** [CMakeFiles/rclcpp.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Additional information


Feature request

Feature description

Implementation considerations

@christophebedard
Copy link
Member

christophebedard commented Jul 7, 2019

If you're using all binaries except rclcpp @ master, it's not going to work because *subscription_get_actual_qos() was added only after the latest release. See ros2/rmw#177.

AFAIK you're going to have to build all of these from source:

Also you might want to build through colcon (see here)

@ivanpauno
Copy link
Member

ivanpauno commented Jul 8, 2019

If you're building from source, you have to build the complete ROS2 workspace as detailed in the install instructions. Trying only to rebuild one package and using the other packages from binaries can easily end in this kind of problems.
As @christophebedard said, colcon is the recommended build tool.

I'm closing the issue. https://answers.ros.org is maybe a better please for this kind of questions.

@ivanpauno ivanpauno added the question Further information is requested label Jul 8, 2019
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
Signed-off-by: Stephen Brawner <brawner@gmail.com>
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this issue Aug 5, 2022
…#779)

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants