Re: [yocto] Adding libstdc++-dev path?

2019-12-03 Thread Mauro Ziliani
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 th

Re: [yocto] Adding libstdc++-dev path?

2019-12-03 Thread Gabriele
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: #in

Re: [yocto] Adding libstdc++-dev path?

2019-12-03 Thread Mauro Ziliani
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/1

Re: [yocto] Adding libstdc++-dev path?

2019-12-03 Thread Gabriele
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 wrote: > Hi all > >