Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem cross compiling with pkg-config (wrong port installed?)

345 views
Skip to first unread message

Fab Stz

unread,
Aug 9, 2022, 6:40:02 PM8/9/22
to
Dear mentors,

I'm trying to cross-build a package with host=arm64, arch=amd64.

In d/control I have:

Build-Depends: debhelper-compat (= 13), pkg-config

The problem, is compilation fails with error:
"Package *** was not found in the pkg-config search path."

dh_autobuild's command log says:

make -j2 "INSTALL=install --strip-program=true" PKG_CONFIG=aarch64-linux-gnu-
pkg-config CXX=aarch64-linux-gnu-g\+\+ CC=aarch64-linux-gnu-gcc

If I manually install only pkg-config:arm64, then it builds
If I manually install only pkg-config:amd64, then build fails.
Putting pkg-config:arm64 in the Build-depends works too (build succeeds)

Is dpkg installing the wrong pkg-config port?
What am I missing?

BTW: The package that pkg-config searches for is installed, I just don't
mention it here in the build-deps for simplicity.

Rgds
Fab

Fab Stz

unread,
Aug 9, 2022, 7:30:02 PM8/9/22
to
Hi,

I think I found it.

The Makefile called 'pkg-config' directly.
replacing it by $(PKG_CONFIG) did the trick.

Rgds
0 new messages