Unable to build my own firmware


It's my first attempt to build my own firmware with Quick Image Building Guide on Ubuntu 20.04 LTS. The problem is when I try to run the command

./scripts/feeds update -a

I got the error:

Build dependency: OpenWrt can only be built on a case-sensitive filesystem
Build dependency:
Please reinstall the GNU C++ Compiler (4.8 or later) - it appears to be broken
Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)

I tiried to reinstall g++ but got no effect.
I found the related topic here but there is no hardening-wrapper package installed on my OS.

Could you help me to fix it please?

Thank you!

Have you tried installing libncurses-dev?

It's already installed.

@xerces8 Since you have successfully installed the buildsystem on Ubuntu 20.04 maybe you remember how you got it to work?

There does not appear to be anything special about getting a build to work on 20.04, the build environment / requirements as outlined on the wiki gets the job done.


Here it lists the prerequisites.

I agree the instructions are a bit unclear, I agree.

My Ubuntu 20.04 builds OpenWrt master nicely with the following packages installed into Ubuntu:
(script extract taken from my community build):

### Prerequisites for buildroot
sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev
sudo apt-get install gawk gcc-multilib flex git-core gettext libssl-dev

### Prerequisite for master on Ubuntu as master needs python3 libs
sudo apt-get install python3-distutils

### Prerequisite for 18.06 and 19.07 on Ubuntu 17.10+ as it has python3 by default
# sudo apt-get install python

that Quick Image Building Guide is pretty awful regarding the prerequisites.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.