Page 1 of 1

Error in buildroot cannot find -lintl

Posted: 2024-01-26 23:41
by npelov
I'm trying to customize the flash image. I'm following instructions from:
https://wiki.luckfox.com/Luckfox-Pico/L ... -Buildroot

However many packages lead to the same error while building libglib2-2.72.3:

Code: Select all

Checking for function "ngettext" : NO
Library intl found: NO

output/build/libglib2-2.72.3/meson.build:2102:4: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /home/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-logs/meson-log.txt
make: *** [package/pkg-generic.mk:283: /home/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/libglib2-2.72.3/.stamp_configured] Error 1
I tried enabling Target packages > Development tools >gettext but I still get the error.

This is big problem because if I enable something that requires it - like mc (Midnight Commander) I get this error, but even if I remove mc the error doesn't go away so I have to do distclean and start over. And it's not only mc, a lot of the packages lead to this error

Re: Error in buildroot cannot find -lintl

Posted: 2024-01-27 3:54
by Luckfox Taylor
Please refer to this solution.
viewtopic.php?t=57

Re: Error in buildroot cannot find -lintl

Posted: 2024-01-27 12:39
by npelov
Thank you for the quick answer! Now I can remove the lib to avoid error, but it would be nice to have it. I don't have experience with buildroot. is there a tutorial how to add new libraries - like libintl for example.

Re: Error in buildroot cannot find -lintl

Posted: 2024-01-27 14:03
by Eng38
Configure buildroot to add new libraries:
https://wiki.luckfox.com/Luckfox-Pico/L ... Buildroot/

Re: Error in buildroot cannot find -lintl

Posted: 2024-04-09 13:52
by ACBIAS
The linked page (https://wiki.luckfox.com/Luckfox-Pico/L ... Buildroot/) does not provide any valuable info to solve this problem.

I am in the exact same situation:
- I enable Midnight Commander in buildroot (target packages > text editors and viewers > mc) as well as gettext (development tools > gettext)
- Build fails (Checking for function "ngettext" : NO / Library intl found: NO)
- Then the build fails always, even if I deselect mc from buildroot config

There is also this error: ERROR: Automatic wrap-based subproject downloading is disabled
Could such a feature solve my problem ? if so, how to enable it ?

Re: Error in buildroot cannot find -lintl

Posted: 2024-04-16 0:23
by rhoki