Open evlo opened 1 year ago
I am running building on Debian linux, works fine. Tools were downloaded with SDK for chipset. OpenBL7231N/T. And it was pretty straight forward. Example for BK7231N toolchain should be installed in 'platforms/bk7231N/toolchain/gcc-arm.......' Path is mentioned : /bin/sh: 1: ../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc: not found Download: wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2
Extracted contents of tar.bz2 to 'platforms/bk7231n/toolchain/'
And each time build failed I googled some solution until build was successful.
EDIT: In case of incompatible binaries I mostly try to build apps for linux from source tar.
Same here, i'll use a Xubuntu ... so debian based distro for compiling .... no issue.
I used ubuntu, issue.
Path to toolchain is wrong? Please check it, directory by directory. Make sure you have linux toolchain.
I use Arch Linux and I could build it just fine. All I did was fetch the submodules with git submodule init --recursive
, then I executed the same make
task present in the GitHub Actions workflow file:
make APP_VERSION=${{ needs.refs.outputs.version }} APP_NAME=${{ matrix.platform }} ${{ matrix.platform }}
replacing the placeholder variables with the MCU I was compiling for (in this case BK7231N).
As far as I'm aware you don't need a custom version of gcc.
What system are you trying to compile on (distro, device)?
How to build on linux? As tuya-cloudcutter supports primarily ubuntu 20 (22 does have issue with dns and needs modifying one file to run)
I'm following this https://github.com/openshwprojects/OpenBK7231T_App/wiki/Building guide
https://developer.arm.com/downloads/-/gnu-rm does not even have version 4.9
For anyone wanting to build on linux too, here is changes I did so far:
./build_app.sh apps/OpenBK7231T_App OpenBK7231T_App 1.0.0
slash git clone https://github.com/openshwprojects/OpenBK7231T_App apps**/**OpenBK7231T_App