From 59614436a238e858d9d5688799de9f40f6a48c49 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Tue, 19 Sep 2023 21:11:47 +0200 Subject: [PATCH] crosscompiling works again --- Makefile | 2 +- copydlls.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 36cb32b..0ca2a9a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .SILENT: help -VERSION = 1.0.1 +VERSION = 1.0.2 -include Makefile.rules diff --git a/copydlls.sh b/copydlls.sh index 7b7cbb4..ea3d2bf 100755 --- a/copydlls.sh +++ b/copydlls.sh @@ -2,10 +2,16 @@ CROSS_DEST_DIR=/opt/W64-cross-compile/lib CROSS_COMPILER_DIR=/usr/x86_64-w64-mingw32/lib -CROSS_GCC_DIR=/usr/lib/gcc/x86_64-w64-mingw32/10-win32 + +# +# in case of issues, check the path +# ls -la /usr/lib/gcc/x86_64-w64-mingw32/ +# +CROSS_GCC_DIR=/usr/lib/gcc/x86_64-w64-mingw32/12-win32 cp -v $CROSS_COMPILER_DIR/zlib1.dll ./ + # copy dll dependencys copy_dependency() { local I @@ -35,5 +41,4 @@ copy_dependency() { } copy_dependency testmodbus-server.exe -copy_dependency testmodbus-client.exe