-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
Description
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