liyanghao@hello-PowerEdge-T140:~/sdk111/software/v80x/app/vx600_main$ nm -D libmp4v2.so | grep GLIBCXX_3.4.26 | grep basic_ostringstream nm: libmp4v2.so:无此文件
时间: 2024-01-01 11:03:20 浏览: 148
这个错误提示说明在当前目录下没有找到名为 libmp4v2.so 的库文件。请确认一下你的当前目录是否正确,或者是否已经正确地安装了 libmp4v2 库文件。如果你确定库文件已经正确地安装了,可以尝试使用绝对路径或者 LD_LIBRARY_PATH 环境变量指定库文件的路径。例如:
```
nm -D /usr/lib/libmp4v2.so | grep GLIBCXX_3.4.26 | grep basic_ostringstream
```
或者:
```
export LD_LIBRARY_PATH=/usr/lib
nm -D libmp4v2.so | grep GLIBCXX_3.4.26 | grep basic_ostringstream
```
其中 /usr/lib 是 libmp4v2 库文件的默认安装路径,你需要根据实际情况进行修改。
相关问题
liyanghao@hello-PowerEdge-T140:~/mp4v2-2.1.3$ cp .libs/libmp4v2.so ~/sdk111/software/v80x/lib/ cp: 无法创建普通文件'/home/liyanghao/sdk111/software/v80x/lib/libmp4v2.so': 权限不够
这个问题是因为你没有足够的权限将libmp4v2.so文件复制到指定目录中。你可以使用sudo命令来提升权限,或者使用chmod命令来更改文件的权限。例如,使用sudo cp命令可以让你以管理员权限复制文件:
```
sudo cp .libs/libmp4v2.so ~/sdk111/software/v80x/lib/
```
或者你可以使用chmod命令更改文件的权限:
```
chmod 777 /home/liyanghao/sdk111/software/v80x/lib/
```
这会赋予目录读、写、执行权限,使你可以向其中写入文件。然后再执行cp命令即可。
/home/liyanghao/sdk111/software/v80x/app/vx600_main/../../lib/libmp4v2.so:对‘std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26’未定义的引用 collect2: 错误: ld 返回 1
这个错误与前一个错误类似,也是链接时出现的。它表示编译器无法找到对应的函数实现,具体来说是找不到 GLIBCXX_3.4.26 版本的 basic_ostringstream 函数。这个函数是 C++ 标准库提供的,一般情况下应该已经在系统中安装好了。
为了解决这个问题,你可以尝试以下几种方法:
1. 确认你是否正确地添加了相关的库文件,并且链接顺序正确。
2. 确认你的系统中是否安装了 libstdc++ 库,如果没有安装,可以尝试安装一下。
3. 如果你的系统中已经安装了 libstdc++ 库,但是链接时仍然报错,可以尝试在编译时加上 -lstdc++ 参数,强制链接指定版本的库文件。
希望这些方法能够帮助你解决问题。
阅读全文
相关推荐
















