* Adding libstdc++-dev path?
@ 2019-12-03 10:44 Mauro Ziliani
2019-12-03 10:55 ` [yocto] " Gabriele
0 siblings, 1 reply; 5+ messages in thread
From: Mauro Ziliani @ 2019-12-03 10:44 UTC (permalink / raw
To: yocto
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
Hi all
I'm trying to compile a library which need cstdio.
The file is in ${STAGING_INCDIR}/c++/5.3.0 and in
${STAGING_INCDIR}/c++/5.3.0/tr1
I think I need to "include" in my recipe all libstdc++dev package
Looking on ${CXX} -v I get
--with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0
How can I use stdc by recipe?
Mauro
[-- Attachment #2: Type: text/html, Size: 912 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Adding libstdc++-dev path?
2019-12-03 10:44 Adding libstdc++-dev path? Mauro Ziliani
@ 2019-12-03 10:55 ` Gabriele
2019-12-03 11:23 ` Mauro Ziliani
0 siblings, 1 reply; 5+ messages in thread
From: Gabriele @ 2019-12-03 10:55 UTC (permalink / raw
To: Mauro Ziliani; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]
Hi,
have you tried adding libstdc++-dev to the recipe dependencies?
DEPENDS += " libstdc++-dev"
This will bring libstdc++ package into recipe sysroot and no extra actions
will be needed on compilation flags.
Regards,
Gabriele
On Tue, Dec 3, 2019 at 11:44 AM Mauro Ziliani <mauro@faresoftware.it> wrote:
> Hi all
>
> I'm trying to compile a library which need cstdio.
>
> The file is in ${STAGING_INCDIR}/c++/5.3.0 and in
> ${STAGING_INCDIR}/c++/5.3.0/tr1
>
> I think I need to "include" in my recipe all libstdc++dev package
>
> Looking on ${CXX} -v I get
> --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0
>
>
> How can I use stdc by recipe?
>
>
> Mauro
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#47516):
> https://lists.yoctoproject.org/g/yocto/message/47516
> Mute This Topic: https://lists.yoctoproject.org/mt/65707284/3618237
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> gabbla.malist@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #2: Type: text/html, Size: 2395 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Adding libstdc++-dev path?
2019-12-03 10:55 ` [yocto] " Gabriele
@ 2019-12-03 11:23 ` Mauro Ziliani
2019-12-03 12:59 ` Gabriele
0 siblings, 1 reply; 5+ messages in thread
From: Mauro Ziliani @ 2019-12-03 11:23 UTC (permalink / raw
To: Gabriele Zampieri; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]
I try,
But libstdc++-dev is procudes by gcc-runtime recipe.
I try to put gcc-runtime in DEPENDS e RDEPENDS_${PN} but this doesn't.
Finally I put manually the -I${STAGING_INCDIR}/c++/5.3.0
-I${STAGING_INCDIR}/c++/5.3.0/${CC_PREFIX} in the Makefile.
CC_PREFIX=arm-poky-linux-gnueabi
Il 03/12/19 11:55, Gabriele Zampieri ha scritto:
> Hi,
>
> have you tried adding libstdc++-dev to the recipe dependencies?
>
> DEPENDS += " libstdc++-dev"
>
> This will bring libstdc++ package into recipe sysroot and no extra
> actions will be needed on compilation flags.
>
> Regards,
> Gabriele
>
> On Tue, Dec 3, 2019 at 11:44 AM Mauro Ziliani <mauro@faresoftware.it
> <mailto:mauro@faresoftware.it>> wrote:
>
> Hi all
>
> I'm trying to compile a library which need cstdio.
>
> The file is in ${STAGING_INCDIR}/c++/5.3.0 and in
> ${STAGING_INCDIR}/c++/5.3.0/tr1
>
> I think I need to "include" in my recipe all libstdc++dev package
>
> Looking on ${CXX} -v I get
> --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0
>
>
> How can I use stdc by recipe?
>
>
> Mauro
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#47516):
> https://lists.yoctoproject.org/g/yocto/message/47516
> Mute This Topic: https://lists.yoctoproject.org/mt/65707284/3618237
> Group Owner: yocto+owner@lists.yoctoproject.org
> <mailto:yocto%2Bowner@lists.yoctoproject.org>
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
> [gabbla.malist@gmail.com <mailto:gabbla.malist@gmail.com>]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #2: Type: text/html, Size: 4174 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Adding libstdc++-dev path?
2019-12-03 11:23 ` Mauro Ziliani
@ 2019-12-03 12:59 ` Gabriele
2019-12-03 13:30 ` Mauro Ziliani
0 siblings, 1 reply; 5+ messages in thread
From: Gabriele @ 2019-12-03 12:59 UTC (permalink / raw
To: Mauro Ziliani; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 2110 bytes --]
Forget about the DEPENDS, I used that in another scenario.
I tried the following recipe:
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI = "file://main.cpp"
do_compile() {
# For example purpose use only
${CXX} ${CXXFLAGS} ${WORKDIR}/main.cpp -o ${B}/${PN}
}
With a simple main:
#include <iostream>
#include <cstdio>
int main(void) {
printf("Hello from %s\n", __func__);
return 0;
}
And it get built just fine (`bitbake libstdtest`)
Gabriele
On Tue, Dec 3, 2019 at 12:23 PM Mauro Ziliani <mauro@faresoftware.it> wrote:
> I try,
>
> But libstdc++-dev is procudes by gcc-runtime recipe.
>
> I try to put gcc-runtime in DEPENDS e RDEPENDS_${PN} but this doesn't.
>
> Finally I put manually the -I${STAGING_INCDIR}/c++/5.3.0 -I${STAGING_INCDIR}/c++/5.3.0/${CC_PREFIX}
> in the Makefile.
>
> CC_PREFIX=arm-poky-linux-gnueabi
> Il 03/12/19 11:55, Gabriele Zampieri ha scritto:
>
> Hi,
>
> have you tried adding libstdc++-dev to the recipe dependencies?
>
> DEPENDS += " libstdc++-dev"
>
> This will bring libstdc++ package into recipe sysroot and no extra actions
> will be needed on compilation flags.
>
> Regards,
> Gabriele
>
> On Tue, Dec 3, 2019 at 11:44 AM Mauro Ziliani <mauro@faresoftware.it>
> wrote:
>
>> Hi all
>>
>> I'm trying to compile a library which need cstdio.
>>
>> The file is in ${STAGING_INCDIR}/c++/5.3.0 and in
>> ${STAGING_INCDIR}/c++/5.3.0/tr1
>>
>> I think I need to "include" in my recipe all libstdc++dev package
>>
>> Looking on ${CXX} -v I get
>> --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0
>>
>>
>> How can I use stdc by recipe?
>>
>>
>> Mauro
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#47516):
>> https://lists.yoctoproject.org/g/yocto/message/47516
>> Mute This Topic: https://lists.yoctoproject.org/mt/65707284/3618237
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
>> gabbla.malist@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>
[-- Attachment #2: Type: text/html, Size: 4865 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Adding libstdc++-dev path?
2019-12-03 12:59 ` Gabriele
@ 2019-12-03 13:30 ` Mauro Ziliani
0 siblings, 0 replies; 5+ messages in thread
From: Mauro Ziliani @ 2019-12-03 13:30 UTC (permalink / raw
To: Gabriele Zampieri; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 2848 bytes --]
Sorry. I sleep over the keyboard.
The solution is adding manually the location of /usr/include/c++/5.3.0
/usr/include/c++/5.3.0/arm-poky-linux-gnueabi where library foldes.
Your recipe is usefull to test my problem
Thans.
M
Il 03/12/19 13:59, Gabriele Zampieri ha scritto:
> Forget about the DEPENDS, I used that in another scenario.
> I tried the following recipe:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI = "file://main.cpp"
> do_compile() {
> # For example purpose use only
> ${CXX} ${CXXFLAGS} ${WORKDIR}/main.cpp -o ${B}/${PN}
> }
>
> With a simple main:
>
> #include <iostream>
> #include <cstdio>
> int main(void) {
> printf("Hello from %s\n", __func__);
> return 0;
> }
>
> And it get built just fine (`bitbake libstdtest`)
>
> Gabriele
>
> On Tue, Dec 3, 2019 at 12:23 PM Mauro Ziliani <mauro@faresoftware.it
> <mailto:mauro@faresoftware.it>> wrote:
>
> I try,
>
> But libstdc++-dev is procudes by gcc-runtime recipe.
>
> I try to put gcc-runtime in DEPENDS e RDEPENDS_${PN} but this doesn't.
>
> Finally I put manually the -I${STAGING_INCDIR}/c++/5.3.0
> -I${STAGING_INCDIR}/c++/5.3.0/${CC_PREFIX} in the Makefile.
>
> CC_PREFIX=arm-poky-linux-gnueabi
>
> Il 03/12/19 11:55, Gabriele Zampieri ha scritto:
>> Hi,
>>
>> have you tried adding libstdc++-dev to the recipe dependencies?
>>
>> DEPENDS += " libstdc++-dev"
>>
>> This will bring libstdc++ package into recipe sysroot and no
>> extra actions will be needed on compilation flags.
>>
>> Regards,
>> Gabriele
>>
>> On Tue, Dec 3, 2019 at 11:44 AM Mauro Ziliani
>> <mauro@faresoftware.it <mailto:mauro@faresoftware.it>> wrote:
>>
>> Hi all
>>
>> I'm trying to compile a library which need cstdio.
>>
>> The file is in ${STAGING_INCDIR}/c++/5.3.0 and in
>> ${STAGING_INCDIR}/c++/5.3.0/tr1
>>
>> I think I need to "include" in my recipe all libstdc++dev package
>>
>> Looking on ${CXX} -v I get
>> --with-gxx-include-dir=/not/exist/usr/include/c++/5.3.0
>>
>>
>> How can I use stdc by recipe?
>>
>>
>> Mauro
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#47516):
>> https://lists.yoctoproject.org/g/yocto/message/47516
>> Mute This Topic:
>> https://lists.yoctoproject.org/mt/65707284/3618237
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> <mailto:yocto%2Bowner@lists.yoctoproject.org>
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
>> [gabbla.malist@gmail.com <mailto:gabbla.malist@gmail.com>]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
[-- Attachment #2: Type: text/html, Size: 7396 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-12-03 13:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-03 10:44 Adding libstdc++-dev path? Mauro Ziliani
2019-12-03 10:55 ` [yocto] " Gabriele
2019-12-03 11:23 ` Mauro Ziliani
2019-12-03 12:59 ` Gabriele
2019-12-03 13:30 ` Mauro Ziliani
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.