From 07e376047e1d1ec4e2330a7cc837f4aa2d4d66dd Mon Sep 17 00:00:00 2001 From: Andre-Philippe Paquet Date: Fri, 7 Oct 2022 14:09:15 -0400 Subject: [PATCH] try fix cross build --- Cross.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Cross.toml b/Cross.toml index e9d07668d..dc2e6abfd 100644 --- a/Cross.toml +++ b/Cross.toml @@ -1,5 +1,12 @@ [target.armv7-unknown-linux-gnueabihf] -pre-build = ["apt-get update && apt-get install --assume-yes protobuf-compiler clang"] +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get install --assume-yes protobuf-compiler clang zlib1g-dev:$CROSS_DEB_ARCH" +] [target.x86_64-unknown-linux-gnu] -pre-build = ["apt-get update && apt-get install --assume-yes protobuf-compiler clang"] \ No newline at end of file +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get install --assume-yes protobuf-compiler clang zlib1g-dev:$CROSS_DEB_ARCH" +] +