<html><head></head><body>Hi,<br><br>I don't really see the point in adding an option here, and the consideration is not specific to cross-compilation anyway.  Plus some pkg-config packages refer to build tools, static libraries or protocol metadata that are necessary and/or always usable, so blanket blacklist just feels wrong.<br><br>It's just that we never cross-compiled to a platform that uses pkg-config. Back then, the ARM Linux builds were faked as native builds using Scratchbox.<br><br><div class="gmail_quote">Le 31 janvier 2020 17:25:52 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">In the case of Raspbian there's a heavily patched libavcodec which we can<br>access through pre-built packages.<br>Qt cross compiling also a major PITA which we can avoid this way.<hr> contrib/bootstrap    | 6 ++++++<br> contrib/src/main.mak | 7 +++++--<br> 2 files changed, 11 insertions(+), 2 deletions(-)<br><br>diff --git a/contrib/bootstrap b/contrib/bootstrap<br>index 5ed5f6f25d3..998bc6e34a2 100755<br>--- a/contrib/bootstrap<br>+++ b/contrib/bootstrap<br>@@ -36,6 +36,7 @@ usage()<br>       echo "                   (USE AT YOUR OWN LEGAL RISKS)"<br>     echo "  --disable-optim  disable optimization in libraries"<br>         echo "  --enable-pdb     generate debug information in PDB format"<br>+ echo "  --enable-prebuilt use pre-compiled packages via pkg-config"<br> }<br> <br> BUILD=<br>@@ -51,6 +52,7 @@ GNUV3="1"<br> AD_CLAUSES=<br> WITH_OPTIMIZATION="1"<br> ENABLE_PDB=<br>+USE_BUILT_PKGS=<br> <br> while test -n "$1"<br> do<br>@@ -95,6 +97,9 @@ do<br>             --enable-ad-clauses)<br>                  AD_CLAUSES=1<br>                  ;;<br>+           --enable-prebuilt)<br>+                   USE_BUILT_PKGS=1<br>+                     ;;<br>            --disable-*)<br>                  PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}"<br>                      ;;<br>@@ -256,6 +261,7 @@ test -z "$GNUV3" || add_make_enabled "GNUV3"<br> test -z "$AD_CLAUSES" || add_make_enabled "AD_CLAUSES"<br> test -z "$WITH_OPTIMIZATION" || add_make_enabled "WITH_OPTIMIZATION"<br> test -z "$ENABLE_PDB" || add_make_enabled "ENABLE_PDB"<br>+test -z "$USE_BUILT_PKGS" || add_make_enabled "USE_BUILT_PKGS"<br> test "`uname -o 2>/dev/null`" != "Msys" || add_make "CMAKE_GENERATOR := -G \"MSYS Makefiles\""<br> <br> #<br>diff --git a/contrib/src/main.mak b/contrib/src/main.mak<br>index 73d23d0018f..5b0d942bc1c 100644<br>--- a/contrib/src/main.mak<br>+++ b/contrib/src/main.mak<br>@@ -46,14 +46,17 @@ HAVE_WIN64 := 1<br> endif<br> <br> ifdef HAVE_CROSS_COMPILE<br>-need_pkg = 1<br>+ifdef USE_BUILT_PKGS<br>+need_pkg = $(shell $(PKG_CONFIG) $(1) || echo 1)<br> else<br>+need_pkg = 1<br>+endif<br> ifeq ($(findstring mingw32,$(BUILD)),mingw32)<br> need_pkg = $(shell PKG_CONFIG_LIBDIR="${PKG_CONFIG_PATH}" $(PKG_CONFIG) $(1) || echo 1)<br>+endif<br> else<br> need_pkg = $(shell $(PKG_CONFIG) $(1) || echo 1)<br> endif<br>-endif<br> <br> ifeq ($(findstring mingw32,$(BUILD)),mingw32)<br> MSYS_BUILD := 1</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>