Re: [yocto] Header-Files of DEPEND recipe not found
But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
Maybe this is of interest, here is my solution: In CMakeLists.txt SET(BITBAKE_SYSROOT CACHE STRING Description) SET(SOCI_INCLUDEDIR ${BITBAKE_SYSROOT}/usr/include/soci) So if BITBAKE_SYSROOT is not passed the compiler takes /usr/include/soci as usual. My *.bb contains: EXTRA_OECMAKE = -DBITBAKE_SYSROOT:STRING=${STAGING_DIR_HOST} So when using bitbake the appropriate prefix will be added. 2015-08-11 8:36 GMT+02:00 yocto yocto yoctomailingl...@gmail.com: But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
On Aug 10, 2015, at 11:59 PM, yocto yocto yoctomailingl...@gmail.com wrote: Maybe this is of interest, here is my solution: In CMakeLists.txt SET(BITBAKE_SYSROOT CACHE STRING Description) SET(SOCI_INCLUDEDIR ${BITBAKE_SYSROOT}/usr/include/soci) So if BITBAKE_SYSROOT is not passed the compiler takes /usr/include/soci as usual. My *.bb contains: its your package you are free to choose the name but instead of BITBAKE_SYSROOT call it OE_SYSROOT EXTRA_OECMAKE = -DBITBAKE_SYSROOT:STRING=${STAGING_DIR_HOST} So when using bitbake the appropriate prefix will be added. 2015-08-11 8:36 GMT+02:00 yocto yocto yoctomailingl...@gmail.com mailto:yoctomailingl...@gmail.com: But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com mailto:raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com mailto:yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
On Aug 10, 2015, at 4:50 AM, yocto yocto yoctomailingl...@gmail.com wrote: Please see the attachment for a simplified example. A library (consisting of 1 cpp and 1 header) is being built using soci. Compiling fails since soci.h is not found. 2015-08-10 13:16 GMT+02:00 Burton, Ross ross.bur...@intel.com mailto:ross.bur...@intel.com: On 10 August 2015 at 12:13, yocto yocto yoctomailingl...@gmail.com mailto:yoctomailingl...@gmail.com wrote: However, when compiling my own recipe I get compiling errors (soci.h not found). I am 100% sure that I specified the correct paths. The headers are likely installed in the sysroot, but your script can't find them. The first step would be to verify that the sysroot does in fact have the headers installed in, and then you'll have to debug your configure scripts to find out why they don't find the headers. Sharing your recipe and sources will help here. yeah the CMakeLists.txt seems to not include search paths for sysroot/usr/include/soci one way you could do it is refer to soci files with namespace when using them in source code like #include soci/soci.h then it will automatically apply the default sysroot search paths to includedir and reach it. Alternative is that you can defile a .cmake file for soci and include that in soci recipe and then just find the module in your package’s CMakeLists.txt Ross soci-example.tar.bz2-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
I also did further research. The problem is that FIND_PACKAGE does not work for soci. For that reason one has to specify CMake variable such as SOCI_INCLUDEDIR manually. Using namespaces such as #include soci/soci.h is no solution: When enabling further backends such as postgresql this approach fails since these backends also require sth. like #include soci.h. Therefore changes in the soci sources files would be necessary. After manually changing CMakeLists.txt: SET(SOCI_INCLUDEDIR /usr/include/soci) to SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? 2015-08-10 19:56 GMT+02:00 Khem Raj raj.k...@gmail.com: On Aug 10, 2015, at 4:50 AM, yocto yocto yoctomailingl...@gmail.com wrote: Please see the attachment for a simplified example. A library (consisting of 1 cpp and 1 header) is being built using soci. Compiling fails since soci.h is not found. 2015-08-10 13:16 GMT+02:00 Burton, Ross ross.bur...@intel.com: On 10 August 2015 at 12:13, yocto yocto yoctomailingl...@gmail.com wrote: However, when compiling my own recipe I get compiling errors (soci.h not found). I am 100% sure that I specified the correct paths. The headers are likely installed in the sysroot, but your script can't find them. The first step would be to verify that the sysroot does in fact have the headers installed in, and then you'll have to debug your configure scripts to find out why they don't find the headers. Sharing your recipe and sources will help here. yeah the CMakeLists.txt seems to not include search paths for sysroot/usr/include/soci one way you could do it is refer to soci files with namespace when using them in source code like #include soci/soci.h then it will automatically apply the default sysroot search paths to includedir and reach it. Alternative is that you can defile a .cmake file for soci and include that in soci recipe and then just find the module in your package’s CMakeLists.txt Ross soci-example.tar.bz2-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Header-Files of DEPEND recipe not found
Good day, I am using the soci recipe: https://github.com/openembedded/meta-openembedded/tree/9a5d25f2a717814f948b492b9c01c1ff0edb678d/meta-oe/recipes-support/soci soci is successfully being built when using the following dependency in my own recipe which relies on soci: DEPENDS = soci soci produces the following output: soci/3.2.2-r0/image/usr/include/soci/(Contains the header-files needed by my recipe) soci/3.2.2-r0/image/usr/lib Furthermore the following *.ipk are being created by soci: soci/3.2.2-r0/deploy-ipks/core2-32/soci_3.2.2-r0_core2-32.ipk soci/3.2.2-r0/deploy-ipks/core2-32/soci-dev_3.2.2-r0_core2-32.ipk soci/3.2.2-r0/deploy-ipks/core2-32/soci-dbg_3.2.2-r0_core2-32.ipk soci/3.2.2-r0/deploy-ipks/core2-32/soci-staticdev_3.2.2-r0_core2-32.ipk The package soci-dev seems to contain the header-files as well as the libraries that my recipe needs. However, when compiling my own recipe I get compiling errors (soci.h not found). I am 100% sure that I specified the correct paths. What might be wrong here? I thought using DEPENDS = soci should handle this? DEPENDS = soci-dev results in: ERROR: Nothing PROVIDES 'soci-dev' (but my-recipe.bb DEPENDS on or otherwise requires it) -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
On 10 August 2015 at 12:13, yocto yocto yoctomailingl...@gmail.com wrote: However, when compiling my own recipe I get compiling errors (soci.h not found). I am 100% sure that I specified the correct paths. The headers are likely installed in the sysroot, but your script can't find them. The first step would be to verify that the sysroot does in fact have the headers installed in, and then you'll have to debug your configure scripts to find out why they don't find the headers. Sharing your recipe and sources will help here. Ross -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
2015-08-10 13:16 GMT+02:00 Burton, Ross ross.bur...@intel.com: The first step would be to verify that the sysroot does in fact have the headers installed in Ross Thank you for your response! How do I verify that? -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
Please see the attachment for a simplified example. A library (consisting of 1 cpp and 1 header) is being built using soci. Compiling fails since soci.h is not found. 2015-08-10 13:16 GMT+02:00 Burton, Ross ross.bur...@intel.com: On 10 August 2015 at 12:13, yocto yocto yoctomailingl...@gmail.com wrote: However, when compiling my own recipe I get compiling errors (soci.h not found). I am 100% sure that I specified the correct paths. The headers are likely installed in the sysroot, but your script can't find them. The first step would be to verify that the sysroot does in fact have the headers installed in, and then you'll have to debug your configure scripts to find out why they don't find the headers. Sharing your recipe and sources will help here. Ross soci-example.tar.bz2 Description: BZip2 compressed data -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto