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

Build error on Ubuntu 20.04 #63

Open
JohnTGZ opened this issue Feb 28, 2022 · 0 comments
Open

Build error on Ubuntu 20.04 #63

JohnTGZ opened this issue Feb 28, 2022 · 0 comments
Labels

Comments

@JohnTGZ
Copy link

JohnTGZ commented Feb 28, 2022

Description
I get a /usr/bin/ld: cannot find -ljsoncpp_object error after the following steps in Steps To Reproduce

It is only after modifying the following line in that the jsoncpp shared library file is found and the build succeeded:

add_dependencies(${PROJECT_NAME}_server ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_server
  ...
  jsoncpp_lib # Originally jsoncpp_object
  ...
)
  • Library Version: develop branch (commit 0ef187a)
  • ROS Version: Noetic
  • Platform / OS: Ubuntu 20.04

Steps To Reproduce

# git clone in my catkin_ws/src folder
git clone https://github.com/RobotWebTools/webrtc_ros.git

# Install jsoncpp dependency
sudo apt-get install libjsoncpp-dev

# Enable python scripts sourcing python2 environment to run
sudo apt-get install python-is-python3

catkin build webrtc_ros

Expected Behavior
Should be able to build with no problems after all dependencies have been installed

Actual Behavior
I can only build after making the modifications to the webrtc_ros/CMakeLists.txt as outlined in Description

@JohnTGZ JohnTGZ added the bug label Feb 28, 2022
anht-nguyen added a commit to anht-nguyen/webrtc_ros that referenced this issue Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant