Project

General

Profile

Actions

Bug #855

closed

On Debian, autoconf apps need PKG_CONFIG vars properly set.

Added by Hammel about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
00 - Basic Build Issues
Target version:
Start date:
15 Oct 2021
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

Autoconf-based apps are currently built outside the docker image used by the pibox dev build.
On Fedora, app builds were fine with just setting PKG_CONFIG_SYSROOT_DIR in the cross.sh build script.
On Debian 11 this is not sufficient. The following additional variables must be set when calling ./configure.

PKG_CONFIG_PATH="" 
PKG_CONFIG_LIBDIR=${STAGING_DIR}/usr/lib/pkgconfig:${STAGING_DIR}/usr/share/pkgconfig

See: https://autotools.io/pkgconfig/cross-compiling.html

All apps currently built for any mode by any metabuild (pibox and ironman) need to have this update.
The update should be applicable to other distros as well.

After reviewing all pkglist.* files for both pibox and ironman, the following app builds need to be reviewed
for use of cross.sh, and updated if found.

  • appmgr
  • bluez (not autoconf)
  • ironman+gpio
  • ironman+ironmancfg
  • ironman+launcher
  • ironman+monitor
  • ironman+sensors
  • ironman+www
  • launcher
  • lcdshow (not autoconf)
  • libpibox
  • mjpg-streamer (not autoconf)
  • monkey (not autoconf)
  • musicfe
  • omxplayer (not autoconf)
  • piboxd
  • piboxwww (not autoconf)
  • picam
  • piclock
  • pidialer
  • pinet
  • pipics
  • pisentrycfg
  • pixm
  • pmsui
  • psplash
  • videofe
  • xeoncfg

Note: if you start the docker image first, then start a screen session inside it (to run cdtools) you could do the app builds there, but the docker image is Debian anyway.

Actions #1

Updated by Hammel about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Hammel about 3 years ago

  • Description updated (diff)
Actions #3

Updated by Hammel about 3 years ago

  • Description updated (diff)
  • % Done changed from 0 to 30
Actions #4

Updated by Hammel about 3 years ago

  • Description updated (diff)
  • % Done changed from 30 to 80

All apps are updated, where needed. Need to do a media metabuild to verify the majority of them before closing.

Actions #5

Updated by Hammel about 3 years ago

  • % Done changed from 80 to 60

Actually, they aren't all updated. Just the pibox meta referenced apps are updated. I still need to do the ironman meta referenced apps.

Actions #6

Updated by Hammel about 3 years ago

All of pibox metabuild system builds are build-tested.

Now to test ironman metabuild.

Actions #7

Updated by Hammel about 3 years ago

  • Description updated (diff)
  • % Done changed from 60 to 80

All ironman projects test built manually. Now testing metabuild.

Actions #8

Updated by Hammel about 3 years ago

Ironman metabuild test build completed successfully.

It appears all builds (except VideoLib, see RM #797 and RM #856) are running cleanly again after switching a Debian 11 desktop. Changes made should be applicable to any distro for app builds.

All changes have been pushed.
Closing issue.

Actions #9

Updated by Hammel about 3 years ago

  • % Done changed from 80 to 100
Actions #10

Updated by Hammel about 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF