Matlab libraries causing conflicts / linking errors
I have a simple program that demonstrates my error. The following compiles
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <costmap_2d/costmap_2d_ros.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "finite_wall_navigate");
ros::NodeHandle nh("~");
tf::TransformListener tl(ros::Duration(10));
// costmap_2d::Costmap2DROS costmap("global_costmap", tl);
ros::spin();
return EXIT_SUCCESS;
}
While the following does not (one line uncommented):
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <costmap_2d/costmap_2d_ros.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "finite_wall_navigate");
ros::NodeHandle nh("~");
tf::TransformListener tl(ros::Duration(10));
costmap_2d::Costmap2DROS costmap("global_costmap", tl);
ros::spin();
return EXIT_SUCCESS;
}
And here is the error:
$ catkin_make
Base path: /home/ntraft/Development/catkin_ws
Source space: /home/ntraft/Development/catkin_ws/src
Build space: /home/ntraft/Development/catkin_ws/build
Devel space: /home/ntraft/Development/catkin_ws/devel
Install space: /home/ntraft/Development/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ntraft/Development/catkin_ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/ntraft/Development/catkin_ws/build"
####
Scanning dependencies of target cpptest
[ 33%] [ 66%] Built target finite_wall_navigate
Building CXX object sampled-gradient-path-planning/sgpp/CMakeFiles/cpptest.dir/src/test.cpp.o
[100%] Built target sgpp_planner
Linking CXX executable /home/ntraft/Development/catkin_ws/devel/lib/sgpp/cpptest
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CTX_new@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSLeay_version@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `RAND_status@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `X509_NAME_entry_count@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `ASN1_TIME_print@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CTX_set_verify@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `EVP_MD_CTX_copy@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `CRYPTO_num_locks@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CTX_get_verify_mode@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `EVP_DigestFinal@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_get_wbio@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `BIO_ctrl@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `i2d_X509@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CIPHER_get_version@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `EVP_MD_CTX_md@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `i2a_ASN1_INTEGER@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_get_shutdown@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `SSL_CTX_free@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `ERR_get_error@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1.0: undefined reference to `CRYPTO_set_locking_callback@OPENSSL_1.0.0'
/usr/lib/libpython2.7.so.1 ...