Re: Tutorial perl-Gtk3 and Windows/MSys

Thanks for this.
I am sill getting an issue, it seems to be an oddity with paths

from cpanm build.log

[ CC Glib.c ]
process_begin: CreateProcess(NULL, gcc -c -I. -mms-bitfields -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -pthread -DWIN32 -DWIN64 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.3293\" -DXS_VERSION=\"1.3293\" -o Glib.o -IC:\msys64\mingw64\lib\perl5\core_perl\CORE Glib.c, ...) failed.
make (e=2): The system cannot find the file specified.

mingw32-make: *** [Makefile:452: Glib.o] Error 2
-> FAIL Installing Glib failed. See C:\msys64\home\mike\.cpanm\work\1626621339.5476\build.log for details. Retry with --force to force install it.

On Sat, 17 Jul 2021 at 19:02, Zakariyya Mughal <zaki mughal gmail com> wrote:
On 2021-07-17 at 15:19:25 +0100, Mike Martin via gtk-perl-list wrote:
> Hi I am struggling with this, been trying to install on mingw64 for a week.
> Anyone had any joy recently?
> various issues tried compiling one by one and glib fails with symbols error
> (using cpanm)


I've been working on a repository that takes all the work needed to
install Gtk3 on different platforms and put it into one repository (I'm
also working on making .dmg and .msi installers --- these work but have
a couple cases I need to address):


The file you'll want to use for MSYS2/MINGW is

and what you want to do is add it to be loaded automatically via the
PERL5OPT environment variable

    export PERL5OPT="-Ipath/to/perl-gtk3-starter-basic/maint -MEUMMnosearch"
    cpanm Gtk3

What this module file does is detect when it being run under an
ExtUtils::MakeMaker installation and then run some hacks around the
arguments and build so that EU::MM knows where to find libraries and
generates a file that allows one XS module to link with another (the
comments in explain what I'm doing).

Ideally this would be fixed upstream in ExtUtils::MakeMaker, but I have
not had time to see what I can do.

Hope that helps.

- Zaki Mughal

P.S. The script in there also handles the same thing in a
self-contained way. See the commands listed under the "run:" keys in
for how to use that.

> On Thu, 8 Jun 2017 at 12:31, <max augsburg gmx de> wrote:
> > Hello everybody,
> >
> > I have created a little tutorial about perl-Gtk3 and Windows/MSys2.
> > Especially I show there, how to create an installer for your perl-Gtk3
> > application. Perhaps this little How-To is helpful for some people.
> >
> > You can find the files on
> >
> > see especially:
> >
> >
> >
> >
> > (german version)
> >
> > Improvement suggesstions are highly welcome!
> >
> > Best wishes,
> > Max
> > _______________________________________________
> > gtk-perl-list mailing list
> > gtk-perl-list gnome org
> >
> >

> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]