* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory @ 2015-01-06 6:17 Williams 2015-01-06 8:28 ` Thomas Petazzoni 0 siblings, 1 reply; 6+ messages in thread From: Williams @ 2015-01-06 6:17 UTC (permalink / raw) To: buildroot Hi All, I am working with a package that needs iconv() How can I get this in buildroot? Here is my error: fatal error: iconv.h: No such file or directory Cheers, Ernest ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory 2015-01-06 6:17 [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory Williams @ 2015-01-06 8:28 ` Thomas Petazzoni 2015-01-06 15:39 ` Williams 0 siblings, 1 reply; 6+ messages in thread From: Thomas Petazzoni @ 2015-01-06 8:28 UTC (permalink / raw) To: buildroot Dear Williams Jr., Ernest L., On Tue, 6 Jan 2015 06:17:26 +0000, Williams Jr., Ernest L. wrote: > I am working with a package that needs iconv() > > How can I get this in buildroot? > > Here is my error: > fatal error: iconv.h: No such file or directory iconv is either provided by your toolchain (if it has locale support), or by libiconv. So, your package should do in its Config.in file: select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE and in the .mk file: ifeq ($(BR2_PACKAGE_LIBICONV),y) <pkg>_DEPENDENCIES += libiconv endif Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory 2015-01-06 8:28 ` Thomas Petazzoni @ 2015-01-06 15:39 ` Williams 2015-01-06 15:46 ` Thomas Petazzoni 0 siblings, 1 reply; 6+ messages in thread From: Williams @ 2015-01-06 15:39 UTC (permalink / raw) To: buildroot Hi Thomas, In this case my package/application is external to buildroot. I have set the following in my ".config" using make xconfig: BR2_TOOLCHAIN_BUILDROOT_LOCALE Like so, BR2_TOOLCHAIN_BUILDROOT_LOCALE=y After typing make, I expect to see "iconv.h" in ${STAGING_DIR}/usr/include But it is not, there. :( Must, I rebuild everything from scratch ? Cheers, Ernest ________________________________________ From: Thomas Petazzoni [thomas.petazzoni at free-electrons.com] Sent: Tuesday, January 6, 2015 12:28 AM To: Williams Jr., Ernest L. Cc: buildroot at busybox.net Subject: Re: [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory Dear Williams Jr., Ernest L., On Tue, 6 Jan 2015 06:17:26 +0000, Williams Jr., Ernest L. wrote: > I am working with a package that needs iconv() > > How can I get this in buildroot? > > Here is my error: > fatal error: iconv.h: No such file or directory iconv is either provided by your toolchain (if it has locale support), or by libiconv. So, your package should do in its Config.in file: select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE and in the .mk file: ifeq ($(BR2_PACKAGE_LIBICONV),y) <pkg>_DEPENDENCIES += libiconv endif Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory 2015-01-06 15:39 ` Williams @ 2015-01-06 15:46 ` Thomas Petazzoni 2015-01-06 15:55 ` Williams 0 siblings, 1 reply; 6+ messages in thread From: Thomas Petazzoni @ 2015-01-06 15:46 UTC (permalink / raw) To: buildroot Dear Williams Jr., Ernest L., On Tue, 6 Jan 2015 15:39:47 +0000, Williams Jr., Ernest L. wrote: > In this case my package/application is external to buildroot. > > I have set the following in my ".config" using make xconfig: > BR2_TOOLCHAIN_BUILDROOT_LOCALE > > Like so, > BR2_TOOLCHAIN_BUILDROOT_LOCALE=y > > After typing make, I expect to see "iconv.h" in ${STAGING_DIR}/usr/include > But it is not, there. :( > > Must, I rebuild everything from scratch ? Yes. See http://buildroot.org/downloads/manual/manual.html#full-rebuild: """ When the toolchain configuration is changed, a complete rebuild generally is needed. Changing the toolchain configuration often involves changing the compiler version, the type of C library or its configuration, or some other fundamental configuration item, and these changes have an impact on the entire system. """ Best regards, Thomas Petazzoni -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory 2015-01-06 15:46 ` Thomas Petazzoni @ 2015-01-06 15:55 ` Williams 2015-01-06 16:05 ` Thomas Petazzoni 0 siblings, 1 reply; 6+ messages in thread From: Williams @ 2015-01-06 15:55 UTC (permalink / raw) To: buildroot ________________________________________ From: Thomas Petazzoni [thomas.petazzoni at free-electrons.com] Sent: Tuesday, January 6, 2015 7:46 AM To: Williams Jr., Ernest L. Cc: buildroot at busybox.net Subject: Re: [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory Dear Williams Jr., Ernest L., On Tue, 6 Jan 2015 15:39:47 +0000, Williams Jr., Ernest L. wrote: > In this case my package/application is external to buildroot. > > I have set the following in my ".config" using make xconfig: > BR2_TOOLCHAIN_BUILDROOT_LOCALE > > Like so, > BR2_TOOLCHAIN_BUILDROOT_LOCALE=y > > After typing make, I expect to see "iconv.h" in ${STAGING_DIR}/usr/include > But it is not, there. :( > > Must, I rebuild everything from scratch ? Yes. See http://buildroot.org/downloads/manual/manual.html#full-rebuild: """ When the toolchain configuration is changed, a complete rebuild generally is needed. Changing the toolchain configuration often involves changing the compiler version, the type of C library or its configuration, or some other fundamental configuration item, and these changes have an impact on the entire system. """ Okay, let the rebuild commence as I head to "Starbucks" :) Cheers, Ernesto Best regards, Thomas Petazzoni -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory 2015-01-06 15:55 ` Williams @ 2015-01-06 16:05 ` Thomas Petazzoni 0 siblings, 0 replies; 6+ messages in thread From: Thomas Petazzoni @ 2015-01-06 16:05 UTC (permalink / raw) To: buildroot Dear Williams Jr., Ernest L., On Tue, 6 Jan 2015 15:55:19 +0000, Williams Jr., Ernest L. wrote: > Okay, let the rebuild commence as I head to "Starbucks" :) Hint: use external toolchains. Or buy a lot of coffee at Starbucks :) Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-01-06 16:05 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-01-06 6:17 [Buildroot] Need iconv(): fatal error: iconv.h: No such file or directory Williams 2015-01-06 8:28 ` Thomas Petazzoni 2015-01-06 15:39 ` Williams 2015-01-06 15:46 ` Thomas Petazzoni 2015-01-06 15:55 ` Williams 2015-01-06 16:05 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox