I changed the pkg_config_path to C:\strawberry\c\lib\pkgconfig Now ExtUtils::PkgConfig->find ('cairo'); Says
modversion: 1.10.0 cflags: -mms-bitfields -IC:/strawberry/c/include/cairo -IC:/strawberry/c/in clude/glib-2.0 -IC:/strawberry/c/lib/glib-2.0/include -IC:/strawberry/c/include -IC:/strawberry/c/include/freetype2 -IC:/strawberry/c/include/libpng16 -IC:/stra wberry/c/lib/pkgconfig/../../include libs: -LC:/strawberry/c/lib -lcairo perl Makefile.pl still warns me of a missing -lcairo dmake goes a little further but the command g++ -o blib\arch\auto\Cairo\Cairo.xs.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\STRAWB~2\perl\lib\CORE" -L"C:\STRAWB~2\c\lib" Cairo.o CairoFont.o CairoMatrix.o CairoPath.o CairoPattern.o CairoSurface.o CairoRegion.o CairoFt.o cairo-perl-enums.o cairo-perl-flags.o "C:\STRAWB~2\pe....libcomctl32.a" dll.exp fails with a lot of errors like Cairo.o:Cairo.c:(.text+0x6ae): undefined reference to `cairo_version_string' I have checked that C:\STRAWB~2 is indeed c:\strawberry with dir \X It seems that all the files listed in -L arg are present. Idea ? Thanks François > -----Original Message----- > From: br...@xaoc.org [mailto:br...@xaoc.org] On Behalf Of Brian Manning > Sent: jeudi, 23. avril 2015 18:23 > To: RAPPAZ Francois > Cc: gtk-perl-list@gnome.org > Subject: Re: toubles with building cairo > > On Thu, Apr 23, 2015 at 7:48 AM, RAPPAZ Francois > <francois.rap...@unifr.ch> wrote: > > Hi > > > > I'm trying to install cairo on a new setup of perl strawberry > (details > > below) > > > > When I run dmake I get > > > > "C:\strawberry\perl\lib\ExtUtils\xsubpp" > > -noprototypes > > -typemap "C:\STRAWB~2\perl\lib\ExtUtils\typemap" > > -typemap "build\cairo-perl-auto.typemap" > > -typemap "cairo-perl.typemap" Cairo.xs > Cairo.xsc && > > "C:\strawberry\perl\bin\perl.exe" > > -MExtUtils::Command -e mv -- Cairo.xsc Cairo.c gcc -c -I. > > -Ibuild > > -mms-bitfields > > -IC:strawberryclib/include/cairo > > -IC:strawberryclib/include/glib-2.0 > > -IC:strawberryclib/lib/glib-2.0/include > > -IC:strawberryclib/include > > > > I have a cairo.h file in C:\strawberry\c\include\cairo > > > > And not in C:\strawberry\c\lib\include as described by the includedir > above. > > If I use %pkg_info = ExtUtils::PkgConfig->find ($package); I get > > modversion: 1.10.0 > > cflags: -mms-bitfields -IC:strawberryclib/include/cairo - > IC:strawberryclib/ > > include/glib-2.0 -IC:strawberryclib/lib/glib-2.0/include > > -IC:strawberryclib/incl ude > > -Ic:/STRAWB~2/c/lib/PKGCON~1/../../include/freetype2 > > -Ic:/STRAWB~2/c/lib/PKG > > CON~1/../../include/libpng16 - > Ic:/STRAWB~2/c/lib/PKGCON~1/../../include > > libs: -LC:strawberryclib/lib -lcairo > > > > My questions are > > - shall I edit all the pc files by hand to correct for the includedir > variable or shall I move the include folder under the lib folder ? > > Or move the header file to where the Makefile is expecting it, but your > problem is most likely related to your 2nd question; > > > - is IC:strawberryclib/include/cairo correct ? why are the / removed > ? > > What command shell are you using when trying to build Cairo, bash.exe > or cmd.exe? You also didn't mention your version of Windows. > > Is this your 2nd copy of Strawberry installed on the machine? The long > filename got truncated to "strawb~2", which makes me think there may be > another copy on the machine you're using. > > Thanks, > > Brian _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list