On 64-bit Strawberry Perl 5.38.0 (portable edition) The following pacman commands install needed packages and must be run (if they haven't already). $ pacman -Sy mingw64/mingw-w64-x86_64-gtk2 $ pacman -Sy mingw64/mingw-w64-x86_64-pkg-config $ pacman -Sy mingw64/mingw-w64-x86_64-gtk3 $ pacman -Sy mingw64/mingw-w64-x86_64-gobject-introspection set PATH=%PATH%;D:\msys64\mingw64\bin set PKG_CONFIG_PATH=D:\msys64\mingw64\lib\pkgconfig set LIBRARY_PATH=D:\msys64\mingw64\lib ########### Glib-1.3293 ########### Accessing same renamed libraries as I used with my own build of perl. set CPATH=D:\msys64\mingw64\include;D:\msys64\mingw64\include\glib-2.0 +;D:\msys64\mingw64\lib\glib-2.0\include Run 'perl Makefile.PL', 'gmake test', 'gmake install'. All tests passed for me. ('auto/Glib/Glib.a' was created and installed.) ########### Cairo-1.109 ########### Accessing same renamed libraries as I used with my own build of perl. set CPATH=%CPATH%;D:\msys64\mingw64\include\cairo;D:\msys64\mingw64\in +clude\freetype2; Run 'perl Makefile.PL', 'gmake test', 'gmake install'. ('auto\Cairo\Cairo.a' was created and installed.) One test failed: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ t/CairoFont.t ..... 1/29 unknown cairo_font_type_t value 5 encountered + at t/CairoFont.t line 79. # Failed test at t/CairoFont.t line 79. # Looks like you failed 1 test of 29. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ################### Cairo-GObject-1.005 ################### Accessing same renamed libraries as I used with my own build of perl. No need to amend CPATH environment variable. Run 'perl Makefile.PL' The generated Makefile correctly lists (in both EXTRALIBS and LDLOADLI +BS) the 'auto/Glib/Glib.a' file. But it misses the 'auto/Cairo/Cairo.a' file. Therefore, at the beginnig of both the EXTRALIBS and LDLOADLIBS entrie +s in the generated Makefile, we need to insert the full path to that Cairo.a file. For me, I insert: "C:\sp\_64\sp-5.38.0\perl\site\lib\auto\Cairo\Cairo.a" Run 'gmake test', 'gmake install'. All tests passed. ########### Pango-1.227 ########### Accessing same renamed libraries as I used with my own build of perl. set CPATH=%CPATH%;D:\msys64\mingw64\include\pango-1.0;D:\msys64\mingw6 +4\include\harfbuzz Run 'perl Makefile.PL' Again, 'auto/Cairo/Cairo.a' is omitted from EXTRALIBS and LDLOADLIBS. Again, in both places, I insert: "C:\sp\_64\sp-5.38.0\perl\site\lib\auto\Cairo\Cairo.a" Run 'gmake test', 'gmake install'. All tests passed. ############ Gtk2-1.24993 ############ Accessing same renamed libraries as I used with my own build of perl. set CPATH=%CPATH%;D:\msys64\mingw64\include\gtk-2.0;D:\msys64\mingw64\ +lib\gtk-2.0\include;D:\msys64\mingw64\include\gdk-pixbuf-2.0;D:\msys6 +4\mingw64\include\atk-1.0 Run 'perl Makefile.PL' EXTRALIBS and LDLOADLIBS both include 'auto/Glib/Glib.a' and 'auto/Pan +go/Pango.a' but again, 'auto/Cairo/Cairo.a' is omitted from EXTRALIBS and LDLOADLI +BS. Again, in both places, I insert: "C:\sp\_64\sp-5.38.0\perl\site\lib\auto\Cairo\Cairo.a" Run 'gmake test', 'gmake install'. In addition to t/GtkStyle.t (which crashes the entire test suite), we get the following report: Test Summary Report ------------------- t/01.GtkWindow.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 120 tests but ran 0. t/GdkDisplay.t (Wstat: 256 (exited 1) Tests: 27 Fail +ed: 1) Failed test: 23 Non-zero exit status: 1 t/GdkImage.t (Wstat: 256 (exited 1) Tests: 23 Fail +ed: 1) Failed test: 1 Non-zero exit status: 1 t/GdkInput.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 20 tests but ran 0. t/GdkKeys.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 46 tests but ran 0. t/GdkPixbuf.t (Wstat: 256 (exited 1) Tests: 112 Fai +led: 1) Failed test: 44 Non-zero exit status: 1 t/GtkAccelGroup.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 19 tests but ran 0. t/GtkAccelMap.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 24 tests but ran 0. t/GtkStock.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 9 tests but ran 0. t/GtkWidget.t (Wstat: 65280 (exited 255) Tests: 0 F +ailed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 158 tests but ran 0. t/PangoFontset.t (Wstat: 256 (exited 1) Tests: 7 Faile +d: 1) Failed test: 1 Non-zero exit status: 1 Files=227, Tests=4544, 42 wallclock secs ( 0.02 usr + 0.05 sys = 0.0 +6 CPU) Result: FAIL Failed 11/227 test programs. 4/4544 subtests failed. gmake: *** [makefile:3727: test_dynamic] Error 255 This is (apparently) worse than the results I got on my own build of p +erl-5.38.0, which reported only 5/227 failing test programs. I don't know what accounts for the difference, but it would be interes +ting to know. ############################### Glib-Object-Introspection-0.050 ############################### Accessing same renamed libraries as I used with my own build of perl. set CPATH=%CPATH%;D:\msys64\mingw64\include\gobject-introspection-1.0 Run 'perl Makefile.PL', 'make install'. (Can't make any sense of 'make + test' at all.) ########## Gtk3-0.038 ########## Run 'perl Makefile.PL', 'make test'. All 22 tests fail - needs investigating, no point in installing. On my own build of perl-5.38.0, only 3 of the 22 tests failed. Could there be some interference from libraries in Strawberry's c/lib +folder ?
Cheers,
Rob

In reply to Re^5: gmake error on Glib compile by syphilis
in thread gmake error on Glib compile by MikeMc69

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.