源碼下載:https://github.com/strace/strace/releases/tag/v4.18(使用的較老版本,最新版 5.4 編譯時依賴較多,最終博主放棄使用)
【 編譯步驟 】
1 ./bootstrap
2 ./configure --host=aarch64-linux-gnu --target=aarch64-linux-gnu --prefix=/home/Files/strace
3 make
4 make install
【 生成文件 】
# ls /home/Files/strace/bin/
strace strace-graph strace-log-merge
【 查看依賴庫 】
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
確保開發板中存在 libc.so.6 庫
【 移植至嵌入式開發板,並輸出版本 】
# strace -V
strace -- version UNKNOWN
Copyright (c) 1991-2019 The strace developers <https://strace.io>.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.