RobotWebTools / webrtc_ros

Streaming of ROS Image Topics using WebRTC
Other
145 stars 57 forks source link

Build error on Ubuntu 20.04 #63

Open JohnTGZ opened 2 years ago

JohnTGZ commented 2 years ago

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
  ...
)

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