[Users] Building CM on Windows 11 with MSys2 MinGW

Jonathan Boeing jonathan at claws-mail.org
Fri Nov 25 10:03:32 CET 2022


On Fri, 25 Nov 2022 15:11:37 +0600
Enan Ajmain <3nan.ajmain at gmail.com> wrote:

> On Fri, 25 Nov 2022 01:57:41 -0700
> Jonathan Boeing <jonathan at claws-mail.org> wrote:
> > You've got a bad linker path somehow.  See if it's coming from one
> > of Claws' pkgconfig files:
> > 
> > grep x86_64-linux src/playground/install/lib/pkgconfig/*
> > grep x86_64-linux
> > src/playground/build/claws_mail-4.1.1-build/src/plugins/pgpcore/Makefile
> >  
> 
>     $ grep x86_64-linux src/playground/install/lib/pkgconfig/*
>     $ grep x86_64-linux
> src/playground/build/claws_mail-4.1.1-build/src/plugins/pgpcore/Makefile
> GPGME_LIBS = -L/usr/lib/x86_64-linux-gnu -lgpgme -lassuan -lgpg-error
> PERL_CFLAGS = -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE PERL_LDFLAGS = -Wl,-E
> -fstack-protector-strong -L/usr/local/lib
> -L/usr/lib/x86_64-linux-gnu/perl/5.30/CORE -lperl -ldl -lm -lpthread
> -lcrypt
> 

Is it failing when running 'make' for the Installer, or are you trying
to 'configure' and 'make' the Claws package directly?

The environment needs to be set up properly, otherwise it'll find devel
packages for the linux system like you're seeing.

If you just want to apply patches, name them 02_, 03_, etc. and drop
them in the patches/claws_mail/ folder.

To build Claws outside of the installer build system, do:

export SYSROOT=/home/enan/projects/claws-mail-win32-4.1.1-1/src/playground
export PKG_CONFIG_PATH=/home/enan/projects/claws-mail-win32-4.1.1-1/src/playground/install/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/home/enan/projects/claws-mail-win32-4.1.1-1/src/playground/install/lib/pkgconfig
cd src/playground/build/claws_mail-4.1.1-build
../claws_mail-4.1.1/configure --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu ...

Regards,

Jonathan


More information about the Users mailing list