Linux on Windows, WSL, build error while build mtk linkit7697_hdk
To build MTK linkit7697_hdk, there needs 32bit support but WSL doesn't support and need workaround to make it work.
While build, I saw "exeExec format error" and with below installation, could build SDK.
sudo apt update sudo apt install qemu-user-static sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'
And whenever you restarts WSL, should retry below
sudo service binfmt-support start
It works for me...
refer link below
https://github.com/Microsoft/WSL/issues/2468
I wonder if WSL will support the i386 (32 bit) program running later? · Issue #2468 · Microsoft/WSL
I just want to run arm-linux-gcc 4.4.3 :} sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install g++-multilib sudo apt-get install libncurses5:i386 sud...
github.com