Re: [yocto] pkg-config not found
On Wed, 2019-11-13 at 11:43 -0600, Mark Hawthorne wrote: > I figured out the problem. The call to AX_PTHREAD() was breaking > PKG_PROG_PKG_CONFIG. I don't understand why, but it works once I > remove that line. Swap the order, let PKG_PROG_PKG_CONFIG appear before AX_PTHREAD > > On Tue, Nov 12, 2019 at 8:24 PM Mark Hawthorne < > [email protected]> wrote: > > I added the lines you suggested and it indicates that PKG_CONFIG is > > not set. What would cause this to fail in the bitbake environment? > > It works for other packages such as pixman. > > > > On Tue, Nov 12, 2019 at 6:38 PM Khem Raj > > wrote: > > > On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne > > > wrote: > > > > > > > > Khem, > > > > > > > > I found a recipe that you made a few years ago where you > > > addressed this problem: > > > > > > > > > > > http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb > > > > > > > > You solved it by exporting PKG_CONFIG > > > > > > > > export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config" > > > > > > > > This seems like it may be the incorrect way to do it and there > > > needs to be an update in the configure.ac file instead? > > > > > > in configure.ac you can add something like this > > > > > > PKG_PROG_PKG_CONFIG > > > if test -z "$PKG_CONFIG"; then > > > AC_MSG_WARN([Cannot find pkg-config, make sure it is installed > > > in your PATH]) > > > fi > > > > > > > > > > > On Tue, Nov 12, 2019 at 4:44 PM Mark Hawthorne < > > > [email protected]> wrote: > > > >> > > > >> No, it did not help > > > >> > > > >> It appears from the config.log file that the PKG_CONFIG > > > variable never gets set. I'm sorting through the bbclass files to > > > figure out why this is not getting set... > > > >> > > > >> PKG_CONFIG='' > > > >> PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp- > > > external-arm-toolchain/work/armv7at2hf-neon-linux- > > > gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig' > > > >> PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp- > > > external-arm-toolchain/work/armv7at2hf-neon-linux- > > > gnueabi/myprogram/1.0-r0/recipe- > > > sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago- > > > tmp-external-arm-toolchain/work/armv7at2hf-neon-linux- > > > gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig' > > > >> > > > >> On Tue, Nov 12, 2019 at 4:22 PM Khem Raj > > > wrote: > > > >>> > > > >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne > > > >>> wrote: > > > >>> > > > > >>> > Thank you. I have fixed this issue but the original pkg- > > > config error still persists. > > > >>> > > > > >>> > > > >>> do a clean build after above change > > > >>> > > > >>> bitbake -ccleanall > > > >>> bitbake > > > >>> > > > >>> does that help ? > > > >>> > > > >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk > > > wrote: > > > >>> >> > > > >>> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne > > > wrote: > > > >>> >> >... > > > >>> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 > > > libspatialite" > > > >>> >> >... > > > >>> >> > > > >>> >> DEPENDS, not DEPENDS_${PN} > > > >>> >> > > > >>> >> cu > > > >>> >> Adrian > > > >>> >> > > > >>> >> -- > > > >>> >> > > > >>> >>"Is there not promise of rain?" Ling Tan asked > > > suddenly out > > > >>> >> of the darkness. There had been need of rain for > > > many days. > > > >>> >>"Only a promise," Lao Er said. > > > >>> >>Pearl S. Buck - > > > Dragon Seed > > > >>> >> > > > >>> > -- > > > >>> > ___ > > > >>> > yocto mailing list > > > >>> > [email protected] > > > >>> > https://lists.yoctoproject.org/listinfo/yocto > > > > > > > > -- > > > > ___ > > > > yocto mailing list > > > > [email protected] > > > > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
I figured out the problem. The call to AX_PTHREAD() was breaking
PKG_PROG_PKG_CONFIG. I don't understand why, but it works once I remove
that line.
On Tue, Nov 12, 2019 at 8:24 PM Mark Hawthorne
wrote:
> I added the lines you suggested and it indicates that PKG_CONFIG is not
> set. What would cause this to fail in the bitbake environment? It works for
> other packages such as pixman.
>
> On Tue, Nov 12, 2019 at 6:38 PM Khem Raj wrote:
>
>> On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
>> wrote:
>> >
>> > Khem,
>> >
>> > I found a recipe that you made a few years ago where you addressed this
>> problem:
>> >
>> >
>> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
>> >
>> > You solved it by exporting PKG_CONFIG
>> >
>> > export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config"
>> >
>> > This seems like it may be the incorrect way to do it and there needs to
>> be an update in the configure.ac file instead?
>>
>> in configure.ac you can add something like this
>>
>> PKG_PROG_PKG_CONFIG
>> if test -z "$PKG_CONFIG"; then
>> AC_MSG_WARN([Cannot find pkg-config, make sure it is installed in your
>> PATH])
>> fi
>>
>> >
>> > On Tue, Nov 12, 2019 at 4:44 PM Mark Hawthorne <
>> [email protected]> wrote:
>> >>
>> >> No, it did not help
>> >>
>> >> It appears from the config.log file that the PKG_CONFIG variable never
>> gets set. I'm sorting through the bbclass files to figure out why this is
>> not getting set...
>> >>
>> >> PKG_CONFIG=''
>> >>
>> PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig'
>> >>
>> PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig'
>> >>
>> >> On Tue, Nov 12, 2019 at 4:22 PM Khem Raj wrote:
>> >>>
>> >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>> >>> wrote:
>> >>> >
>> >>> > Thank you. I have fixed this issue but the original pkg-config
>> error still persists.
>> >>> >
>> >>>
>> >>> do a clean build after above change
>> >>>
>> >>> bitbake -ccleanall
>> >>> bitbake
>> >>>
>> >>> does that help ?
>> >>>
>> >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
>> >>> >>
>> >>> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
>> >>> >> >...
>> >>> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2
>> libspatialite"
>> >>> >> >...
>> >>> >>
>> >>> >> DEPENDS, not DEPENDS_${PN}
>> >>> >>
>> >>> >> cu
>> >>> >> Adrian
>> >>> >>
>> >>> >> --
>> >>> >>
>> >>> >>"Is there not promise of rain?" Ling Tan asked suddenly out
>> >>> >> of the darkness. There had been need of rain for many days.
>> >>> >>"Only a promise," Lao Er said.
>> >>> >>Pearl S. Buck - Dragon Seed
>> >>> >>
>> >>> > --
>> >>> > ___
>> >>> > yocto mailing list
>> >>> > [email protected]
>> >>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>> > --
>> > ___
>> > yocto mailing list
>> > [email protected]
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
On 12/11/2019 21:06, Mark Hawthorne wrote:
I have an autotools build that uses the following autoconfig file:
AC_INIT([my-program], [1])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_LANG(C++)
AC_PROG_CXX
AX_PTHREAD()
PKG_CHECK_MODULES(LIBPNG, libpng >= 1.6.34)
PKG_CHECK_MODULES(FREETYPE2, freetype2 >= 21.0.15)
PKG_CHECK_MODULES(EGL, egl > 0)
PKG_CHECK_MODULES(GLES2, glesv2 > 0)
PKG_CHECK_MODULES(GLM, glm >= 0.9.9)
PKG_CHECK_MODULES(SPATIALITE, spatialite >= 4.3.0)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
I have made the following bitbake recipe file
SUMMARY = "my program"
HOMEPAGE = ""
DESCRIPTION = ""
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "git://[email protected]/user/myrepo.git
"
SRCREV = "dc1391dbc82702fd0126d4156d4ab59571427efe"
DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
S = "${WORKDIR}/git"
inherit pkgconfig autotools
The build fails with this error:
configure: error: in
`/home/user/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/my-program/1.0-r0/build':
configure: error: The pkg-config script could not be found or is too
old. Make sure it is in your PATH or set the PKG_CONFIG environment
variable to the full path to pkg-config.
Alternatively, you may set the environment variables LIBPNG_CFLAGS and
LIBPNG_LIBS to avoid the need to call pkg-config.
That *should* work. The config.log in the build directory might have
more useful information.
Ross
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
I added the lines you suggested and it indicates that PKG_CONFIG is not
set. What would cause this to fail in the bitbake environment? It works for
other packages such as pixman.
On Tue, Nov 12, 2019 at 6:38 PM Khem Raj wrote:
> On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
> wrote:
> >
> > Khem,
> >
> > I found a recipe that you made a few years ago where you addressed this
> problem:
> >
> >
> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
> >
> > You solved it by exporting PKG_CONFIG
> >
> > export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config"
> >
> > This seems like it may be the incorrect way to do it and there needs to
> be an update in the configure.ac file instead?
>
> in configure.ac you can add something like this
>
> PKG_PROG_PKG_CONFIG
> if test -z "$PKG_CONFIG"; then
> AC_MSG_WARN([Cannot find pkg-config, make sure it is installed in your
> PATH])
> fi
>
> >
> > On Tue, Nov 12, 2019 at 4:44 PM Mark Hawthorne <
> [email protected]> wrote:
> >>
> >> No, it did not help
> >>
> >> It appears from the config.log file that the PKG_CONFIG variable never
> gets set. I'm sorting through the bbclass files to figure out why this is
> not getting set...
> >>
> >> PKG_CONFIG=''
> >>
> PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig'
> >>
> PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig'
> >>
> >> On Tue, Nov 12, 2019 at 4:22 PM Khem Raj wrote:
> >>>
> >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
> >>> wrote:
> >>> >
> >>> > Thank you. I have fixed this issue but the original pkg-config error
> still persists.
> >>> >
> >>>
> >>> do a clean build after above change
> >>>
> >>> bitbake -ccleanall
> >>> bitbake
> >>>
> >>> does that help ?
> >>>
> >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
> >>> >>
> >>> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
> >>> >> >...
> >>> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2
> libspatialite"
> >>> >> >...
> >>> >>
> >>> >> DEPENDS, not DEPENDS_${PN}
> >>> >>
> >>> >> cu
> >>> >> Adrian
> >>> >>
> >>> >> --
> >>> >>
> >>> >>"Is there not promise of rain?" Ling Tan asked suddenly out
> >>> >> of the darkness. There had been need of rain for many days.
> >>> >>"Only a promise," Lao Er said.
> >>> >>Pearl S. Buck - Dragon Seed
> >>> >>
> >>> > --
> >>> > ___
> >>> > yocto mailing list
> >>> > [email protected]
> >>> > https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > ___
> > yocto mailing list
> > [email protected]
> > https://lists.yoctoproject.org/listinfo/yocto
>
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
wrote:
>
> Khem,
>
> I found a recipe that you made a few years ago where you addressed this
> problem:
>
> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
>
> You solved it by exporting PKG_CONFIG
>
> export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config"
>
> This seems like it may be the incorrect way to do it and there needs to be an
> update in the configure.ac file instead?
in configure.ac you can add something like this
PKG_PROG_PKG_CONFIG
if test -z "$PKG_CONFIG"; then
AC_MSG_WARN([Cannot find pkg-config, make sure it is installed in your PATH])
fi
>
> On Tue, Nov 12, 2019 at 4:44 PM Mark Hawthorne
> wrote:
>>
>> No, it did not help
>>
>> It appears from the config.log file that the PKG_CONFIG variable never gets
>> set. I'm sorting through the bbclass files to figure out why this is not
>> getting set...
>>
>> PKG_CONFIG=''
>> PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig'
>> PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig'
>>
>> On Tue, Nov 12, 2019 at 4:22 PM Khem Raj wrote:
>>>
>>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>>> wrote:
>>> >
>>> > Thank you. I have fixed this issue but the original pkg-config error
>>> > still persists.
>>> >
>>>
>>> do a clean build after above change
>>>
>>> bitbake -ccleanall
>>> bitbake
>>>
>>> does that help ?
>>>
>>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
>>> >>
>>> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
>>> >> >...
>>> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
>>> >> >...
>>> >>
>>> >> DEPENDS, not DEPENDS_${PN}
>>> >>
>>> >> cu
>>> >> Adrian
>>> >>
>>> >> --
>>> >>
>>> >>"Is there not promise of rain?" Ling Tan asked suddenly out
>>> >> of the darkness. There had been need of rain for many days.
>>> >>"Only a promise," Lao Er said.
>>> >>Pearl S. Buck - Dragon Seed
>>> >>
>>> > --
>>> > ___
>>> > yocto mailing list
>>> > [email protected]
>>> > https://lists.yoctoproject.org/listinfo/yocto
>
> --
> ___
> yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
Khem,
I found a recipe that you made a few years ago where you addressed this
problem:
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
You solved it by exporting PKG_CONFIG
export PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config"
This seems like it may be the incorrect way to do it and there needs to be
an update in the configure.ac file instead?
On Tue, Nov 12, 2019 at 4:44 PM Mark Hawthorne
wrote:
> No, it did not help
>
> It appears from the config.log file that the PKG_CONFIG variable never
> gets set. I'm sorting through the bbclass files to figure out why this is
> not getting set...
>
> PKG_CONFIG=''
>
> PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig'
>
> PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig'
>
> On Tue, Nov 12, 2019 at 4:22 PM Khem Raj wrote:
>
>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>> wrote:
>> >
>> > Thank you. I have fixed this issue but the original pkg-config error
>> still persists.
>> >
>>
>> do a clean build after above change
>>
>> bitbake -ccleanall
>> bitbake
>>
>> does that help ?
>>
>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
>> >>
>> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
>> >> >...
>> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
>> >> >...
>> >>
>> >> DEPENDS, not DEPENDS_${PN}
>> >>
>> >> cu
>> >> Adrian
>> >>
>> >> --
>> >>
>> >>"Is there not promise of rain?" Ling Tan asked suddenly out
>> >> of the darkness. There had been need of rain for many days.
>> >>"Only a promise," Lao Er said.
>> >>Pearl S. Buck - Dragon Seed
>> >>
>> > --
>> > ___
>> > yocto mailing list
>> > [email protected]
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
No, it did not help
It appears from the config.log file that the PKG_CONFIG variable never gets
set. I'm sorting through the bbclass files to figure out why this is not
getting set...
PKG_CONFIG=''
PKG_CONFIG_LIBDIR='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig'
PKG_CONFIG_PATH='/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/lib/pkgconfig:/home/mark/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/myprogram/1.0-r0/recipe-sysroot/usr/share/pkgconfig'
On Tue, Nov 12, 2019 at 4:22 PM Khem Raj wrote:
> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
> wrote:
> >
> > Thank you. I have fixed this issue but the original pkg-config error
> still persists.
> >
>
> do a clean build after above change
>
> bitbake -ccleanall
> bitbake
>
> does that help ?
>
> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
> >>
> >> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
> >> >...
> >> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
> >> >...
> >>
> >> DEPENDS, not DEPENDS_${PN}
> >>
> >> cu
> >> Adrian
> >>
> >> --
> >>
> >>"Is there not promise of rain?" Ling Tan asked suddenly out
> >> of the darkness. There had been need of rain for many days.
> >>"Only a promise," Lao Er said.
> >>Pearl S. Buck - Dragon Seed
> >>
> > --
> > ___
> > yocto mailing list
> > [email protected]
> > https://lists.yoctoproject.org/listinfo/yocto
>
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
wrote:
>
> Thank you. I have fixed this issue but the original pkg-config error still
> persists.
>
do a clean build after above change
bitbake -ccleanall
bitbake
does that help ?
> On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
>>
>> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
>> >...
>> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
>> >...
>>
>> DEPENDS, not DEPENDS_${PN}
>>
>> cu
>> Adrian
>>
>> --
>>
>>"Is there not promise of rain?" Ling Tan asked suddenly out
>> of the darkness. There had been need of rain for many days.
>>"Only a promise," Lao Er said.
>>Pearl S. Buck - Dragon Seed
>>
> --
> ___
> yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
Thank you. I have fixed this issue but the original pkg-config error still
persists.
On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk wrote:
> On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
> >...
> > DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
> >...
>
> DEPENDS, not DEPENDS_${PN}
>
> cu
> Adrian
>
> --
>
>"Is there not promise of rain?" Ling Tan asked suddenly out
> of the darkness. There had been need of rain for many days.
>"Only a promise," Lao Er said.
>Pearl S. Buck - Dragon Seed
>
>
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] pkg-config not found
On Tue, Nov 12, 2019 at 03:06:25PM -0600, Mark Hawthorne wrote:
>...
> DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
>...
DEPENDS, not DEPENDS_${PN}
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
[yocto] pkg-config not found
I have an autotools build that uses the following autoconfig file:
AC_INIT([my-program], [1])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_LANG(C++)
AC_PROG_CXX
AX_PTHREAD()
PKG_CHECK_MODULES(LIBPNG, libpng >= 1.6.34)
PKG_CHECK_MODULES(FREETYPE2, freetype2 >= 21.0.15)
PKG_CHECK_MODULES(EGL, egl > 0)
PKG_CHECK_MODULES(GLES2, glesv2 > 0)
PKG_CHECK_MODULES(GLM, glm >= 0.9.9)
PKG_CHECK_MODULES(SPATIALITE, spatialite >= 4.3.0)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
I have made the following bitbake recipe file
SUMMARY = "my program"
HOMEPAGE = ""
DESCRIPTION = ""
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "git://[email protected]/user/myrepo.git"
SRCREV = "dc1391dbc82702fd0126d4156d4ab59571427efe"
DEPENDS_${PN} = "libpng freetype glm libegl libgles2 libspatialite"
S = "${WORKDIR}/git"
inherit pkgconfig autotools
The build fails with this error:
configure: error: in
`/home/user/Documents/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/my-program/1.0-r0/build':
configure: error: The pkg-config script could not be found or is too old.
Make sure it is in your PATH or set the PKG_CONFIG environment variable to
the full path to pkg-config.
Alternatively, you may set the environment variables LIBPNG_CFLAGS and
LIBPNG_LIBS to avoid the need to call pkg-config.
I have looked at several other autotools/pkgconfig recipes and it appears
that I am doing everything the same. What is missing?
--
___
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
