toubles with building cairo

I changed the pkg_config_path to C:\strawberry\c\lib\pkgconfig

Now ExtUtils::PkgConfig->find ('cairo');

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
libs:        -LC:/strawberry/c/lib -lcairo

still warns me of a missing -lcairo

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 ?


-----Original Message-----
From: brian xaoc org [mailto:brian 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 rappaz unifr ch> wrote:

I'm trying to install cairo on a new setup of perl strawberry

When I run dmake I get

-typemap "C:\STRAWB~2\perl\lib\ExtUtils\typemap"
-typemap "build\cairo-perl-auto.typemap"
-typemap "cairo-perl.typemap"  Cairo.xs > Cairo.xsc &&
-MExtUtils::Command -e mv -- Cairo.xsc Cairo.c gcc -c -I.

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
If I use  %pkg_info = ExtUtils::PkgConfig->find ($package); I get
modversion:  1.10.0
cflags:      -mms-bitfields -IC:strawberryclib/include/cairo -
include/glib-2.0 -IC:strawberryclib/lib/glib-2.0/include
-IC:strawberryclib/incl ude
CON~1/../../include/libpng16 -
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.



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