All of lore.kernel.org
 help / color / mirror / Atom feed
* pkg-config not found
@ 2019-11-12 21:06 Mark Hawthorne
  2019-11-12 21:41 ` Adrian Bunk
  2019-11-13 15:59 ` Ross Burton
  0 siblings, 2 replies; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-12 21:06 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

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://user@bitbucket.org/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?

[-- Attachment #2: Type: text/html, Size: 2170 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 21:06 pkg-config not found Mark Hawthorne
@ 2019-11-12 21:41 ` Adrian Bunk
  2019-11-12 21:59   ` Mark Hawthorne
  2019-11-13 15:59 ` Ross Burton
  1 sibling, 1 reply; 11+ messages in thread
From: Adrian Bunk @ 2019-11-12 21:41 UTC (permalink / raw)
  To: Mark Hawthorne; +Cc: yocto

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 21:41 ` Adrian Bunk
@ 2019-11-12 21:59   ` Mark Hawthorne
  2019-11-12 22:22     ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-12 21:59 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 638 bytes --]

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 <bunk@stusta.de> 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
>
>

[-- Attachment #2: Type: text/html, Size: 1027 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 21:59   ` Mark Hawthorne
@ 2019-11-12 22:22     ` Khem Raj
  2019-11-12 22:44       ` Mark Hawthorne
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2019-11-12 22:22 UTC (permalink / raw)
  To: Mark Hawthorne; +Cc: Yocto Project

On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
<markhawthorne172@gmail.com> 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 <your-recipe>
bitbake <your-recipe>

does that help ?

> On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 22:22     ` Khem Raj
@ 2019-11-12 22:44       ` Mark Hawthorne
  2019-11-13  0:28         ` Mark Hawthorne
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-12 22:44 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]

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 <raj.khem@gmail.com> wrote:

> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
> <markhawthorne172@gmail.com> 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 <your-recipe>
> bitbake <your-recipe>
>
> does that help ?
>
> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 2797 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 22:44       ` Mark Hawthorne
@ 2019-11-13  0:28         ` Mark Hawthorne
  2019-11-13  0:37           ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-13  0:28 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 2453 bytes --]

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 <markhawthorne172@gmail.com>
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 <raj.khem@gmail.com> wrote:
>
>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>> <markhawthorne172@gmail.com> 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 <your-recipe>
>> bitbake <your-recipe>
>>
>> does that help ?
>>
>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>

[-- Attachment #2: Type: text/html, Size: 3886 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-13  0:28         ` Mark Hawthorne
@ 2019-11-13  0:37           ` Khem Raj
  2019-11-13  2:24             ` Mark Hawthorne
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2019-11-13  0:37 UTC (permalink / raw)
  To: Mark Hawthorne; +Cc: Yocto Project

On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
<markhawthorne172@gmail.com> 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 <markhawthorne172@gmail.com> 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 <raj.khem@gmail.com> wrote:
>>>
>>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>>> <markhawthorne172@gmail.com> 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 <your-recipe>
>>> bitbake <your-recipe>
>>>
>>> does that help ?
>>>
>>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
>>> > yocto@yoctoproject.org
>>> > https://lists.yoctoproject.org/listinfo/yocto
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-13  0:37           ` Khem Raj
@ 2019-11-13  2:24             ` Mark Hawthorne
  2019-11-13 17:43               ` Mark Hawthorne
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-13  2:24 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 3381 bytes --]

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 <raj.khem@gmail.com> wrote:

> On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
> <markhawthorne172@gmail.com> 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 <
> markhawthorne172@gmail.com> 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 <raj.khem@gmail.com> wrote:
> >>>
> >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
> >>> <markhawthorne172@gmail.com> 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 <your-recipe>
> >>> bitbake <your-recipe>
> >>>
> >>> does that help ?
> >>>
> >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
> >>> > yocto@yoctoproject.org
> >>> > https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 5427 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-12 21:06 pkg-config not found Mark Hawthorne
  2019-11-12 21:41 ` Adrian Bunk
@ 2019-11-13 15:59 ` Ross Burton
  1 sibling, 0 replies; 11+ messages in thread
From: Ross Burton @ 2019-11-13 15:59 UTC (permalink / raw)
  To: yocto

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://user@bitbucket.org/user/myrepo.git 
> <http://user@bitbucket.org/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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-13  2:24             ` Mark Hawthorne
@ 2019-11-13 17:43               ` Mark Hawthorne
  2019-11-13 18:01                 ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hawthorne @ 2019-11-13 17:43 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 3724 bytes --]

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 <markhawthorne172@gmail.com>
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 <raj.khem@gmail.com> wrote:
>
>> On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
>> <markhawthorne172@gmail.com> 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 <
>> markhawthorne172@gmail.com> 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 <raj.khem@gmail.com> wrote:
>> >>>
>> >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
>> >>> <markhawthorne172@gmail.com> 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 <your-recipe>
>> >>> bitbake <your-recipe>
>> >>>
>> >>> does that help ?
>> >>>
>> >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de> 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
>> >>> > yocto@yoctoproject.org
>> >>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>> > --
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>

[-- Attachment #2: Type: text/html, Size: 5966 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: pkg-config not found
  2019-11-13 17:43               ` Mark Hawthorne
@ 2019-11-13 18:01                 ` Khem Raj
  0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2019-11-13 18:01 UTC (permalink / raw)
  To: Mark Hawthorne, Yocto Project

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 <
> markhawthorne172@gmail.com> 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 <raj.khem@gmail.com>
> > wrote:
> > > On Tue, Nov 12, 2019 at 4:29 PM Mark Hawthorne
> > > <markhawthorne172@gmail.com> 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 <
> > > markhawthorne172@gmail.com> 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 <raj.khem@gmail.com>
> > > wrote:
> > > >>>
> > > >>> On Tue, Nov 12, 2019 at 2:00 PM Mark Hawthorne
> > > >>> <markhawthorne172@gmail.com> 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 <your-recipe>
> > > >>> bitbake <your-recipe>
> > > >>>
> > > >>> does that help ?
> > > >>>
> > > >>> > On Tue, Nov 12, 2019 at 3:41 PM Adrian Bunk <bunk@stusta.de
> > > > 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
> > > >>> > yocto@yoctoproject.org
> > > >>> > https://lists.yoctoproject.org/listinfo/yocto
> > > >
> > > > --
> > > > _______________________________________________
> > > > yocto mailing list
> > > > yocto@yoctoproject.org
> > > > https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-11-13 18:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 21:06 pkg-config not found Mark Hawthorne
2019-11-12 21:41 ` Adrian Bunk
2019-11-12 21:59   ` Mark Hawthorne
2019-11-12 22:22     ` Khem Raj
2019-11-12 22:44       ` Mark Hawthorne
2019-11-13  0:28         ` Mark Hawthorne
2019-11-13  0:37           ` Khem Raj
2019-11-13  2:24             ` Mark Hawthorne
2019-11-13 17:43               ` Mark Hawthorne
2019-11-13 18:01                 ` Khem Raj
2019-11-13 15:59 ` Ross Burton

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.