I'm trying to cross-compile a programme for a Yocto qemu using Yocto's sdk tools. After setting up the sdk and sourcing it, trying to cross-compile the programme fails thusly:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
So I added ncurses
to the IMAGE_INSTALL
listing in the image's recipe, the same way I've installed other packages like dropbear, and confirmed that the meta
layer that provides these packages was included in the bblayers.conf
file. Then
TOOLCHAIN_HOST_TASK += "nativesdk-ncurses nativesdk-ncurses-dev"
was also added to the image's recipe, to tell bitbake to give the host's sdk access to ncurses. I tried adding several variations on nativesdk-ncurses-devel
, to more closely match what the error was asking for, but the image was unable to build with it. After that the image and sdk were re-built and re-sourced, but when attempting to cross compile the programme, it still asked for Install ncurses (ncurses-devel) and try again
.
So my question is:
How is ncurses added properly to Yocto's host sdk environment? Is there a step I'm missing? Are the ncurses files needed not the same as those found in the meta
layer?
Any help would be deeply appreciated.
-Patches
TOOLCHAIN_HOST_TASK += "foo"
, you need to doTOOLCHAIN_HOST_TASK_append = " foo"
. I saw a mailing list post about this, but I can't find it again. The gist is that it's defined with?=
so+=
overrides it completely. – Meanwhile