linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x24 arg 0x11ae8) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x24 arg 0x11ae8) (ignoring) linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x23 arg 0xa80) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x23 arg 0xa80) (ignoring) linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x24 arg 0xc4c) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x24 arg 0xc4c) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x23 arg 0x8) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x23 arg 0x8) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) CANNOT LINK EXECUTABLE "./mytest2": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"... linker: CANNOT LINK EXECUTABLE "./mytest2": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"...
时间: 2024-04-28 08:20:21 浏览: 5
这个问题看起来是一个链接错误,指出"/system/lib/libavformat.so"库文件无法找到一个名为"av_timecode_make_smpte_tc_string2"的符号。这可能是由于库文件版本不兼容、缺少依赖项或编译参数不正确等原因引起的。您可以尝试更新库文件或添加缺少的依赖项来解决这个问题。另外,检查您的编译参数是否正确,并确保您的代码中没有任何语法错误或拼写错误。
相关问题
CANNOT LINK EXECUTABLE "./mytest1": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"... linker: CANNOT LINK EXECUTABLE "./mytest1": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"...
这个错误的意思是在编译和链接可执行文件 "./mytest1" 的时候,缺少了一个名为 "av_timecode_make_smpte_tc_string2" 的符号,该符号被 "/system/lib/libavformat.so" 引用。这个错误通常是由于缺少依赖库或者库版本不匹配导致的。
你可以尝试以下解决方法:
1. 确认你的程序依赖的库是否都已经正确安装,并且版本是否匹配。
2. 如果库版本不匹配,你可以尝试更新库版本或者重新编译程序以匹配当前库版本。
3. 如果你使用的是第三方库,你可以尝试联系库的开发者或者社区来获取帮助。
4. 如果你无法解决问题,你可以尝试在编译和链接时手动指定库的路径和名称,例如使用 "-l" 或者 "-L" 选项。
希望这些解决方法可以帮助你解决问题。
_NEEDED list for "/system/lib/libswscale.so" linker: CANNOT LINK EXECUTABLE "./mytest1": cannot find "libavutil.so" from verneed[0] in DT_NEEDED list for "/system/lib/libswscale.so"
这个错误提示说明在链接器中找不到"libavutil.so"这个库文件,而这个库文件是被"libswscale.so"库文件所依赖的。因此,我们需要将"libavutil.so"库文件加入到链接器的依赖列表中,使得链接器能够正确地找到它。
你可以尝试以下几种解决办法:
1. 将"libavutil.so"库文件所在的路径加入到系统库文件搜索路径中,例如:
```
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libavutil
```
2. 将"libavutil.so"库文件复制到"/system/lib"目录下,即系统库文件所在的目录。
3. 在编译时添加"-lavutil"参数,告诉链接器需要链接"libavutil.so"库文件,例如:
```
gcc -o mytest1 mytest1.c -lavutil
```
希望这些解决办法能够帮助到你!