Glib compilation on windows 10



Hi there

I have to compile Gtk2 on windows 10 with strawberry perl.

I have unzip in a share U:\docs\backup\Gtk+ a Gtk 2.20.0 runtime environment for windows

I got Glib from CPAN and 
Running perl Makefile.pl in the cpan/build dir gives

Including generated API documentation...
Warning (mostly harmless): No library found for -lgobject-2.0
Warning (mostly harmless): No library found for -lglib-2.0
Warning (mostly harmless): No library found for -lintl
Warning (mostly harmless): No library found for -lgthread-2.0
Generating a dmake-style Makefile
Writing Makefile for Glib
Writing MYMETA.yml and MYMETA.json

Since some header files were not found, I add this to the generated makefile
INC = -I. ... -IU:\docs\backup\Gtk+\include -IU:\docs\backup\Gtk+\include\glib-2.0 
-IU:\docs\backup\Gtk+\lib\glib-2.0\include

Runing dmake compile some c files then gives a lot of errors:

[ CC GVariant.c ]
GVariant.xs: In function 'wrap_variant':
GVariant.xs:78:24: warning: passing argument 1 of 'variant_to_sv' makes pointer from integer without a cast
  return variant_to_sv (g_value_get_variant (value), FALSE);
                        ^
GVariant.xs:28:1: note: expected 'struct GVariant *' but argument is of type 'int'
 variant_to_sv (GVariant * variant, gboolean own)
 ^
GVariant.c: In function 'XS_Glib__Variant_lookup_value':
GVariant.c:1323:9: warning: assignment makes pointer from integer without a cast
  RETVAL = g_variant_lookup_value(dictionary, key, expected_type);
         ^
[ CC gperl-gtypes.c ]
[ LD blib\arch\auto\Glib\Glib.xs.dll ]
Glib.o:Glib.c:(.text+0x85): undefined reference to `g_filename_display_basename'
....

My perl is
ummary of my perl5 (revision 5 version 24 subversion 0) configuration:

  Platform:
    osname=MSWin32, osvers=6.3, archname=MSWin32-x86-multi-thread-64int
    uname='Win32 strawberry-perl 5.24.0.1 #1 Tue May 10 17:10:11 2016 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 
-fwrapv -fno-strict-aliasing -mms-bitfields',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='4.9.2', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12, longdblkind=3
    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~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"'
    libpth=C:\STRAWB~1\c\lib C:\STRAWB~1\c\i686-w64-mingw32\lib C:\STRAWB~1\c\lib\gcc\i686-w64-mingw32\4.9.2
    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 -ladvapi32 -lshell32 -lole32 
-loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=, so=dll, useshrplib=true, libperl=libperl524.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
                        PERLIO_LAYERS PERL_COPY_ON_WRITE
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_INT
                        USE_ITHREADS USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
                        USE_PERL_ATOF
  Built under MSWin32
  Compiled at May 10 2016 17:20:50
  %ENV:
    PERL5LIB="U:\docs\perl\lib"
  @INC:
    U:\docs\perl\lib
    C:/strawberry/perl/site/lib
    C:/strawberry/perl/vendor/lib
    C:/strawberry/perl/lib
    .

My environment variable PATH is C:\prog\perl;U:\docs\backup\Gtk+\bin;U:\docs\backup\Gtk+\lib

PKG_CONFIG_LIBDIR is C:\strawberry\c\lib\pkgconfig
PKG_CONFIG_PATH is U:\docs\backup\Gtk+\lib\pkgconfig;U:\docs\backup\Gtk+\include

Thanks for any help

F.




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