for Robot Artificial Inteligence

cxx error and add library path

|

problem of stdc++ while compiling cmake, put the

compile cxx flag = g++
or
-ld <- library

libstdc++ problem /usr/bin/ld: cannot find -ltcmalloc

https://stackoverflow.com/questions/9959306/how-to-tell-mex-to-link-with-the-libstdc-so-6-in-usr-lib-instead-of-the-one-i

add to this

set(CMAKE_CXX_COMPILER g++)

in cmake that will work

Put it in front of execute

Library Path add

BASH

# 文本最后添加以下内容:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/x86_64-linux-gnu/libstdc++.so.6
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
export PATH=$PATH:/usr/local/cuda/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda
# 保存退出,打开新终端激活

export ROS_ROOT=/opt/ros/noetic
export PATH=/opt/ros/noetic/bin:$PATH
export LD_LIBRARY_PATH=/opt/ros/noetic/lib:/usr/local/lib
export LD_LIBRARY_PATH=/opt/ros/noetic/lib:/usr/local/lib

https://blog.csdn.net/hyl999/article/details/79625990

https://ubuntuforums.org/showthread.php?t=1677675

만약 sdk설치했는데 찾지를 못한다면

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64

해주자

Comments