toubles with building cairo
- From: RAPPAZ Francois <francois rappaz unifr ch>
- To: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: toubles with building cairo
- Date: Thu, 23 Apr 2015 14:48:26 +0000
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
-Ic:/STRAWB~2/c/lib/PKGCON~1/../../include/freetype2
-Ic:/STRAWB~2/c/lib/PKGCON~1/../../include/libpng16
-Ic:/STRAWB~2/c/lib/PKGCON~1/../../include
-s
-O2
-DWIN32
-DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS
-DUSE_PERLIO
-fwrapv
-fno-strict-aliasing
-mms-bitfields
-s -O2
-DVERSION=\"1.105\"
-DXS_VERSION=\"1.105\" "
-IC:\STRAWB~2\perl\lib\CORE" Cairo.c
In file included from Cairo.xs:10:0:
/cairo-perl.h:17:19: fatal error: cairo.h: No such file or directory
#include <cairo.h>
MY environment variable PKG_CONFIG_PATH is set to c:\STRAWB~2\c\lib\PKGCON~1
And the cairo.pc in this folder is
prefix=C:\strawberry\c\lib
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.10.0
Requires.private: gobject-2.0 glib-2.0 fontconfig >= 2.2.95 freetype2 >= 9.7.3 libpng
Libs: -L${libdir} -lcairo
Libs.private: -lz -lz
Cflags: -I${includedir}/cairo
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 ?
- is IC:strawberryclib/include/cairo correct ? why are the / removed ?
Thanks for any help
François
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x86-multi-thread-64int
uname='Win32 strawberry-perl 5.20.2.1 #1 Sat Feb 21 12:32:00 2015 i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT
_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitf
ields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.8.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\STRAWB~2\perl\lib\CORE" -L"C:\STRAWB~2\c\lib"'
libpth=C:\STRAWB~2\c\lib C:\STRAWB~2\c\i686-w64-mingw32\lib C:\STRAWB~2\c\li
b\gcc\i686-w64-mingw32\4.8.3
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
-lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lver
sion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl520.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\STRAWB~2\perl\lib\CORE" -L"C:\STRA
WB~2\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
USE_PERL_ATOF
Built under MSWin32
Compiled at Feb 21 2015 12:36:01
%ENV:
PERL5LIB="U:\docs\perl\lib"
PERL_JSON_BACKEND="JSON::XS"
PERL_YAML_BACKEND="YAML"
@INC:
U:\docs\perl\lib
C:/strawberry/perl/site/lib
C:/strawberry/perl/vendor/lib
C:/strawberry/perl/lib
.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]