Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^18: gmake error on Glib compile

by syphilis (Archbishop)
on Sep 04, 2023 at 15:00 UTC ( [id://11154251]=note: print w/replies, xml ) Need Help??


in reply to Re^17: gmake error on Glib compile
in thread gmake error on Glib compile

I sthink I get the same test results:
D:\s\Cairo-1.109>gmake test "C:\sp\_64\sp-5.38.0\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_ +nonempty -- Cairo.bs blib\arch\auto\Cairo\Cairo.bs 644 "C:\sp\_64\sp-5.38.0\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MT +est::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, ' +blib\lib', 'blib\arch')" t/*.t t/00-loading.t .... ok t/Cairo.t ......... ok 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. t/CairoFont.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/29 subtests t/CairoFt.t ....... skipped: can't find font file t/CairoMatrix.t ... ok t/CairoPath.t ..... ok t/CairoPattern.t .. ok t/CairoRegion.t ... ok t/CairoSurface.t .. 1/100 unknown cairo_pdf_version_t value 2 encounte +red at t/CairoSurface.t line 259. unknown cairo_pdf_version_t value 3 encountered at t/CairoSurface.t li +ne 259. unknown cairo_pdf_version_t value 2 encountered at t/CairoSurface.t li +ne 263. unknown cairo_pdf_version_t value 3 encountered at t/CairoSurface.t li +ne 263. t/CairoSurface.t .. ok
I assume the single test failure is either a bug in the test script or a bug in the Cairo library. (I don't actually use this stuff, and I haven't investigated the failure.)

pkg-config --version shows 0.26

This is the pkg-config.bat that ships with Strawberry Perl.
I'd prefer to use the msys version of pkg-config.exe - which should happen if you rename C:\STRAWB~1\perl\bin\pkg-config.bat to C:\STRAWB~1\perl\bin\pkg-config.bat_hide.
That would then mean that, instead of EXTRALIBS specifying Strawberry's C:\STRAWB~1\c\lib\libfreetype.a, it would specify msys's libfreetype library.
Anyway, this is something that so far seems to have NOT mattered with your build.

See how you go with Cairo-GObject-1.005. (It passed all tests for me.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^19: gmake error on Glib compile
by MikeMc69 (Novice) on Sep 05, 2023 at 08:06 UTC

    Hi Rob

    Yes it looks the same so it ran gmake install and got success

    for the Cairo-GObject I run into similar undefined reference. I've checked the libs renamed.

    pkg-config -- version now shows 0.29.2

    From Makefile EXTRALIBS = "C:\msys64\mingw64\lib\libcairo-gobject.a" "C:\msys64\mingw64\lib\libcairo.a" "C:\msys64\mingw64\lib\libgobject-2.0.a" "C:\msys64\mingw64\lib\libglib-2.0.a" "C:\msys64\mingw64\lib\libintl.a" "C:\msys64\mingw64\lib\libfreetype.a" "C:\msys64\mingw64\lib\libgthread-2.0.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmoldname.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libkernel32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinspool.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomdlg32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libadvapi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libole32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuuid.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libws2_32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmpr.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libversion.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbc32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbccp32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomctl32.a"


    I feel so close after getting the glib to install

    Thanks Mike

      I think it's just that:
      "C:\STRAWB~1\perl\site\lib\auto\Glib\Glib.a" "C:\STRAWB~1\perl\site\lib\auto\Cairo\Cairo.a"
      is missing. Add that at the beginning of the EXTRALIBS and the LDLOADLIBS entries in the generated Makefile, and then re-run gmake test.
      (It's probably important that there's a space between "...auto\Cairo\Cairo.a" and "C:\msys64\mingw64\lib\libcairo-gobject.a"...)

      If that doesn't work, start from scratch again:
      run gmake realclean
      run perl Makefile.PL
      insert the missing entries into the beginning EXTRALIBS and LDLOADLIBS.
      run gmake test

      If you still get undefined references, just list them out for us.
      UPDATE: Oh ... and just check that the 2 files "C:\STRAWB~1\perl\site\lib\auto\Glib\Glib.a" and "C:\STRAWB~1\perl\site\lib\auto\Cairo\Cairo.a" do exist.

      Cheers,
      Rob

        Hi Rob. Thanks I put those in but had to do glib.xs.dll but that worked.

        I got to Gtk3 but it needed Glib-Object-Introspection. This just gives me the 4 lines below which are undefined reference

        C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: GObjectIntrospection.o:GObjectIntrospection.c:(.text+0x26d2): undefined reference to `__imp_g_module_open'

        C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: GObjectIntrospection.o:GObjectIntrospection.c:(.text+0x26e6): undefined reference to `__imp_g_module_symbol'

        C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: GObjectIntrospection.o:GObjectIntrospection.c:(.text+0x2702): undefined reference to `__imp_g_module_close'

        C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: GObjectIntrospection.o:GObjectIntrospection.c:(.text+0x27b5): undefined reference to `__imp_g_module_close'

        Its getting there

        Thanks Mike

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11154251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-17 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found