in reply to Re^2: gmake error on Glib compile
in thread gmake error on Glib compile
See how you go with that.For 64-bit build: Install Gtk2 in MSYS2 $ pacman -Sy mingw64/mingw-w64-x86_64-gtk2 Install pkg-config.exe $ pacman -Sy mingw64/mingw-w64-x86_64-pkg-config Add pkg-config.exe to PATH: set PATH=%PATH%;D:\msys64\mingw64\bin set PKG_CONFIG_PATH=D:\msys64\mingw64\lib\pkgconfig Install ExtUtils::PkgConfig (and ExtUtils::Depends if it's not already + installed) ########### Glib-1.3293 ########### Hide (by changing '.a' extension to '.a_static') for following libs: "D:\msys64\mingw64\lib\libgobject-2.0.a" "D:\msys64\mingw64\lib\libglib-2.0.a" "D:\msys64\mingw64\lib\libintl.a" "D:\msys64\mingw64\lib\libgthread-2.0.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL', 'gmake test', 'gmake install'. (All tests passed for me.)
That's as far as I've got, so far. (Next up is to install Gtk3.)########### Cairo-1.109 ########### Hide (by changing '.a' extension to '.a_static') for following libs : "D:\msys64\mingw64\lib\libcairo.a" "D:\msys64\mingw64\lib\libfreetype.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL', 'gmake test', 'gmake install'. One test failed for me: ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 ################### Hide (by changing '.a' extension to '.a_static') for following libs : "D:\msys64\mingw64\lib\libcairo-gobject.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL' and then: Edit generated Makefile (EXTRALIBS and LDLOADLIBS spec) to start with: "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\auto\Glib\G +lib.dll" "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\a +uto\Cairo\Cairo.dll" ExtUtils::Depends is supposed to pull those in ... actually, it's prob +ably supposed to pull in the corresponding '.a' files (Glib.a and Cairo.a), but those files don +'t exist. Then run 'gmake test' and 'gmake install'. All tests passed for me. ########### Pango-1.227 ########### Hide (by changing '.a' extension to '.a_static') for following libs : "D:\msys64\mingw64\lib\libpango-1.0.a" "D:\msys64\mingw64\lib\libharfbuzz.a" "D:\msys64\mingw64\lib\libpangocairo-1.0.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL' and then: Edit generated Makefile (EXTRALIBS and LDLOADLIBS spec) to start with: "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\auto\Glib\G +lib.dll" "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\a +uto\Cairo\Cairo.dll" Then run 'gmake test' and 'gmake install'. All tests passed for me. ############ Gtk2-1.24993 ############ Hide (by changing '.a' extension to '.a_static') for following libs : "D:\msys64\mingw64\lib\libpangowin32-1.0.a" "D:\msys64\mingw64\lib\libatk-1.0.a" "D:\msys64\mingw64\lib\libgdk_pixbuf-2.0.a" "D:\msys64\mingw64\lib\libgio-2.0.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL' and then: Edit generated Makefile (EXTRALIBS and LDLOADLIBS spec) to start with +(and NOTE addition of "Pango.dll'): "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\auto\Cairo\ +Cairo.dll" "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread +\auto\Glib\Glib.dll" "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-mu +lti-thread\auto\Pango\Pango.dll" Rename t/GtkStyle.t to t/GtkStyle.t_hide as it fails in a way that aborts the test suite. Then run 'gmake test' and 'gmake install'. Apart from the t/GtkStyle failure, we get: Test Summary Report ------------------- 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/GdkKeys.t (Wstat: 1280 (exited 5) Tests: 6 Fail +ed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 46 tests but ran 6. t/GdkPixbuf.t (Wstat: 256 (exited 1) Tests: 112 Fai +led: 1) Failed test: 44 Non-zero exit status: 1 t/PangoFontset.t (Wstat: 256 (exited 1) Tests: 7 Faile +d: 1) Failed test: 1 Non-zero exit status: 1 Files=227, Tests=4900, 32 wallclock secs ( 0.05 usr + 0.00 sys = 0.0 +5 CPU) Result: FAIL Failed 5/227 test programs. 4/4900 subtests failed. make: *** [Makefile:3727: test_dynamic] Error 255 Install Gtk3: $ pacman -Sy mingw64/mingw-w64-x86_64-gtk3 Install GObject-Introspection: $ pacman -Sy mingw64/mingw-w64-x86_64-gobject-introspection ############################### Glib-Object-Introspection-0.050 ############################### Hide (by changing '.a' extension to '.a_static') for following libs : "D:\msys64\mingw64\lib\libgmodule-2.0.a" "D:\msys64\mingw64\lib\libffi.a" And create a copy of the corresponding import ("*.dll.a") libs with the ".dll" removed from the name. Run 'perl Makefile.PL' and then: Edit generated Makefile (EXTRALIBS and LDLOADLIBS spec) to start with: "C:\perl-5.38.0-1310-mcf\site\lib\MSWin32-x64-multi-thread\auto\Glib\G +lib.dll" Then run 'gmake install'. ('gmake test' can't be run because test scri +pts aren't generated.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: gmake error on Glib compile
by syphilis (Archbishop) on Aug 22, 2023 at 08:30 UTC | |
by syphilis (Archbishop) on Aug 22, 2023 at 12:05 UTC | |
by syphilis (Archbishop) on Aug 23, 2023 at 14:15 UTC | |
by swl (Prior) on Aug 24, 2023 at 23:19 UTC | |
by syphilis (Archbishop) on Aug 25, 2023 at 01:37 UTC | |
| |
by Anonymous Monk on Aug 23, 2023 at 10:16 UTC |