發表文章

目前顯示的是 6月, 2019的文章

解決ccache: error: execv of /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc failed: No such file or directory

*為了解決ccache: error: execv of /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc failed: No such file or directory  有toolchains但是編譯一直失敗,想說直接執行gcc看看,但也失敗 可以使用下面的cmd去看看動態函式庫是否有少東西  https://stackoverflow.com/questions/43412649/cross-compilation-for-arm-error-no-such-file-or-directory-command-not-found  readelf -l /bin/ls | grep 'program interpreter'  bin/ls可置換成自己想要的執行檔  範例:  readelf -l /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc | grep 'program interpreter'  [Requesting program interpreter:  /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2]