搭建海思系列開發環境出現某些錯誤的解決方法
4.18
1. make: arm-hisiv300-linux-gcc: Commandnot found
解決方法:這是因為宿主機是64 位而交叉編譯器是針對32位的開發板製作的。所以要安裝對應的32位庫。我的linux宿主機是ubuntu 16.04 64位。安裝命令:
sudo apt install lib32z1-dev
4.19
2.arm-hisiv300-linux-gcc: error whileloading shared libraries: libstdc++.so.6: cannot open shared object file: Nosuch file or directory
解決方法:
安裝32位的libstdc++.so.6.
apt-get install lib32stdc++6
4.22
Open /dev/i2c-0 error!
CMD_SET_REG_WIDTH error!採集不到視訊
解決方法:sample_venc預設的為sensor輸入PANASONIC_MN34220_MIPI_1080P_30FPS,將輸入模式enViMode改成SAMPLE_VI_MODE_BT1120_1080P。在/etc/init.d/rcS指令碼有輸入方式說明。
2018 2.26
./sdk.unpack: 2: ./sdk.unpack: source: notfound
./sdk.unpack: 4: ./sdk.unpack: ECHO: notfound
./sdk.unpack: 6: ./sdk.unpack: WARN: notfound
./sdk.unpack: 7: ./sdk.unpack: WARN: notfound
./sdk.unpack: 8: ./sdk.unpack: ECHO: notfound
./sdk.unpack: 20: ./sdk.unpack: ECHO: notfound
解決方法:pkg-reconfigure dash //更改連結選 no