Make command doesn't exist,
and I can find /zero/ references to getting make running.
makeis primarily a driver for compilation, and while doing so on the device is apparently possible, the general intent is that you would use a
cross compilerto build programs for the device on a more capable machine, rather than on the omega itself.
It's faster for me to compile this on device. Is it impossible to compile on device?
Jackdaw last edited by Jackdaw
I also compiled some things on the Omega2 itself, but it's very time consuming. You can install make and some other essential build packages from here: http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/
I recommend to use a cross-toolchain from here: http://downloads.lede-project.org/releases/17.01.0/targets/ramips/mt7688/lede-sdk-17.01.0-ramips-mt7688_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz. It's much and much faster and works like a charm.
It's faster for me to compile this on device
Compiling tiny C++ code on this omega is 10000% faster than running docker, compiling in docker, copying to windows host, sftping to my omega, and then running it.
It's not realistic.
- You don't need the full SDK, nor in Docker, nor in your host pc. You can download the toolchain directly, as you can find in the third answer of this thread.
- Omega2 comes with SSH already listening, you can use scp to copy the binary, no need for sftp. Also, for windows, I prefer moba xterm than putty, which is based in putty, but better UI. More info in the docs.
- If you want to use windows, there is a thread that shows how to use Bash on Ubuntu on Windows to develop on windows without docker or virtual machines.
- Unless you love to code on VIM through serial or SSH in the omega, you are probably using a text editor like Sublime Text or Atom, or a full IDE, like CLion, Visual Studio, etc. to code a serious project. Why bother copying the source code and compiling in the omega when you can set up a faster and standard (& this) workflow in your pc?
- If your project is so small that gcc can compile it inside the omega2, why not use another programming language, like python? Here the docs about the libraries and supported languages. Python even has a GPIO module that C doesn't.
Jackdaw last edited by
If you really want to compile on the Omega, you need to be aware that some devel libraries are needed for example libncurses. The precompiled libncurses is sometimes not enough. You have to compile it yourself with the Omega or some cross-toolchain (Recommended).
Some things to keep in mind.
#1 You will need to use extroot to expand your root partition. gcc is already 24MB big.
#2 Be aware of compiling source code on an USB drive or SD-Card. It will drain the life expectancy of those devices drastically.
I'm currently working on a project to run Mono on the Omega and I use the following packages to compile source code on the device itself.
gcc git-http ca-bundle autoconf libtool-bin make automake python3 python libustream-openssl grep diffutils pkg-config curl
(Just use opkg install. You will need to use the LEDE mipsel_24kc package repository)
About the compilation time on the Omega2+. I have compiled cmake in 3 hours on the Omega and just <10 min. with a cross-toolchain.
I'll just use my Edison then. Thanks.