Re: [gtk-osx-users] Building on PPC fails



Finally, I am stuck when trying to run 

jhbuild build meta-gtk-osx-core


The gtk+ module fails to build with the error message:

libtool: compile:  /Developer/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/Users/steffen/gtk/inst/include/glib-2.0 -I/Users/steffen/gtk/inst/lib/glib-2.0/include -I/Users/steffen/gtk/inst/include/pango-1.0 -I/Users/steffen/gtk/inst/include/cairo -I/Users/steffen/gtk/inst/include/pixman-1 -I/Users/steffen/gtk/inst/include/libpng15 -I/Users/steffen/gtk/inst/include/gdk-pixbuf-2.0 -xobjective-c -I/Users/steffen/gtk/inst/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -arch ppc -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -Wall -MT gdkimage-quartz.lo -MD -MP -MF .deps/gdkimage-quartz.Tpo -c gdkimage-quartz.c
  -fno-common -DPIC -o .libs/gdkimage-quartz.o
gdkimage-quartz.c: In function '_gdk_quartz_image_copy_to_image':
gdkimage-quartz.c:142: warning: implicit declaration of function 'CGWindowListCreateImage'
gdkimage-quartz.c:143: error: 'kCGWindowListOptionOnScreenOnly' undeclared (first use in this function)
gdkimage-quartz.c:143: error: (Each undeclared identifier is reported only once
gdkimage-quartz.c:143: error: for each function it appears in.)
gdkimage-quartz.c:144: error: 'kCGNullWindowID' undeclared (first use in this function)
gdkimage-quartz.c:145: error: 'kCGWindowImageDefault' undeclared (first use in this function)
gdkimage-quartz.c:145: warning: initialization makes pointer from integer without a cast
make[4]: *** [gdkimage-quartz.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of gtk+: ########## Error running make   *** [18/20]

Does gdkimage-quartz.c maybe use functions from newer OSX versions than it should?  Any advice on how to address this?

Best regards,

Steffen


----- Original Message -----
> From: Steffen Gutmann <muibase yahoo com>
> To: "gtk-osx-users-list gnome org" <gtk-osx-users-list gnome org>
> Cc: 
> Sent: Sunday, January 13, 2013 1:55 PM
> Subject: Re: [gtk-osx-users] Building on PPC fails
> 
> After having installed the jhbuild version of python, the next problem I ran 
> into is when building perl-xml-simple:
> 
> perl Makefile.PL INSTALLDIRS=vendor PREFIX=/Users/steffen/gtk/inst  
> ExtUtils::MakeMaker version 6.31 required--this is only version 6.30 at 
> Makefile.PL line 7.
> BEGIN failed--compilation aborted at Makefile.PL line 7.
> 
> Unfortunately I am not good at perl.  MakeMaker seems to be provided by OSX 
> (PPC/Leopard in my case).  How would I obtain and install the required version 
> 6.31?
> 
> I googled a bit and then executed
> 
> sudo cpan -i ExtUtils::MakeMaker
> 
> 
> (Without sudo, perl can't install the files in /usr due to lacking 
> permission).
> 
> To my surpise this actually worked and perl-xml-simple (and the rest 
> of meta-gtk-osx-bootstrap) compiles and installs.
> 
> I am just wondering if I will have problems later due to my modified perl 
> environment?
> 
> Steffen
> 
> 
> ----- Original Message -----
>>  From: Steffen Gutmann <muibase yahoo com>
>>  To: "gtk-osx-users-list gnome org" 
> <gtk-osx-users-list gnome org>
>>  Cc: 
>>  Sent: Sunday, January 13, 2013 12:42 PM
>>  Subject: Re: [gtk-osx-users] Building on PPC fails
>> 
>>  Hi John,
>> 
>>  thanks for the hint.  I will try that as well.
>> 
>>  It seems there is another problem when building for 10.4/10.4u.
>> 
>>  Building libxm2l fails with the message:
>> 
>>  ld: library not found for -lpython2.5
>> 
>>  I guess the problem is that the 10.4u SDK only has python 2.3.  If I do a 
>>  'jhbuild build python' (as described on the build web page) then it 
> uses 
>>  the python lib provided by jhbuild and libxml2 compiles. But this does not 
> seem 
>>  to be described properly on the build web page (where it says you only need 
> to 
>>  'jhbuild build python' when compiling on Tiger for the purpose of 
>>  extracting archives).  Or maybe I misunderstood that part.
>> 
>>  Regards,
>> 
>>  Steffen
>> 
>>  ----- Original Message -----
>>>   From: John Ralls <jralls ceridwen us>
>>>   To: Steffen Gutmann <muibase yahoo com>
>>>   Cc: "gtk-osx-users-list gnome org" 
>>  <gtk-osx-users-list gnome org>
>>>   Sent: Sunday, January 13, 2013 11:38 AM
>>>   Subject: Re: [gtk-osx-users] Building on PPC fails
>>> 
>>> 
>>>   On Jan 13, 2013, at 12:04 AM, Steffen Gutmann 
> <muibase yahoo com> 
>>  wrote:
>>> 
>>>>    I should maybe mention that I am trying a universal build 
>>>   (.jhbuildrc-custom)
>>>> 
>>>>    setup_universal_build(target="10.4", 
>>>   sdk_version="10.4u", 
>>>>                            architectures=["ppc", 
>>  "i386"])
>>>> 
>>>>    Maybe that's the problem. Although, I have been able to build 
> it 
>>  in the 
>>>   past (after tweaking some defines in glib).
>>>> 
>>>>    I'll try with the following setup next:
>>>> 
>>>>    setup_sdk(target="10.4", sdk_version="10.4u", 
> 
>>>   architectures=["ppc"])
>>> 
>>>   This section of jhbuildrc-gtk-osx (which gets installed as .jhbuildrc) 
> 
>>  applies:
>>>       #Defining ARCHFLAGS globally messes up waf, so we need to define
>>>       #it here for our two perl modules:
>>>       if architectures != ['ppc']:
>>>           module_extra_env.update(
>>>               
> {"perl-xml-simple":{"ARCHFLAGS":"-arch 
>>  i386 
>>>   -arch x86_64"},
>>>                
> "perl-xml-parser":{"ARCHFLAGS":"-arch 
>>  i386 
>>>   -arch x86_64"}})
>>>   I wrote that not thinking about universal builds. Try changing the 
>>  condition to 
>>>       if not "ppc" in architectures:
>>> 
>>>   But even better would be to construct ARCHFLAGS with something like 
>>  "-arch 
>>>   " + "-arch ".join(architectures).
>>> 
>>>   That said, universal builds aren't really supported. You'll 
> likely 
>>  have 
>>>   to patch the universal modulesets and setup_universal() in 
>>  jhbuildrc-gtk-osx to 
>>>   get everything working. If you succeed, please do provide your 
> patches.
>>> 
>>>   Regards,
>>>   John Ralls
>>> 
>>> 
>>>>    ----- Original Message -----
>>>>>    From: Steffen Gutmann <muibase yahoo com>
>>>>>    To: "gtk-osx-users-list gnome org" 
>>>   <gtk-osx-users-list gnome org>
>>>>>    Cc: 
>>>>>    Sent: Saturday, January 12, 2013 11:34 PM
>>>>>    Subject: [gtk-osx-users] Building on PPC fails
>>>>> 
>>>>>    Hi,
>>>>> 
>>>>>    I am not sure if someone recently tried building gtkosx on a 
> PPC 
>>>   machine?  I run 
>>>>>    into the following problem on a PPC MacMini with OSX Leopard:
>>>>> 
>>>>>    sh gtk-osx-build-setup.sh: succeeds
>>>>>    jhbuild build python: succeeds
>>>>> 
>>>>>    jhbuild bootstrap: succeeds
>>>>> 
>>>>>    jhbuild build meta-gtk-osx-bootstrap: fails when configuring 
>>  intltool.  
>>>   Here is 
>>>>>    the trace:
>>>>> 
>>>>> 
>>>>>    *** Configuring intltool *** [8/15]
>>>>>    ./configure --prefix /Users/steffen/gtk/inst --libdir 
>>>>>    '/Users/steffen/gtk/inst/lib'   
>>  --disable-dependency-tracking 
>>>>>    configure: WARNING: unrecognized options: 
>>  --disable-dependency-tracking
>>>>>    checking for a BSD-compatible install... 
>>>   /Users/steffen/.local/bin/install-check
>>>>>    checking whether build environment is sane... yes
>>>>>    checking for a thread-safe mkdir -p... ./install-sh -c -d
>>>>>    checking for gawk... no
>>>>>    checking for mawk... no
>>>>>    checking for nawk... no
>>>>>    checking for awk... awk
>>>>>    checking whether make sets $(MAKE)... yes
>>>>>    checking for perl... /usr/bin/perl
>>>>>    checking for perl >= 5.8.1... 5.8.8
>>>>>    checking for XML::Parser... configure: error: XML::Parser 
> perl 
>>  module 
>>>   is 
>>>>>    required for intltool
>>>>>    *** Error during phase configure of intltool: ########## 
> Error 
>>  running 
>>>>>    ./configure --prefix /Users/steffen/gtk/inst --libdir 
>>>>>    '/Users/steffen/gtk/inst/lib'   
>>  --disable-dependency-tracking  
>>>   *** 
>>>>>    [8/15]
>>>>> 
>>>>>    I looked into the ./configure script and ran the following 
> line 
>>>   manually:
>>>>> 
>>>>>    perl -e "require XML::Parser"
>>>>> 
>>>>> 
>>>>>    which outputs:
>>>>> 
>>>>>    Can't load 
>>>>> 
>>> 
>> 
> '/Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle' 
> 
>> 
>>> 
>>>>>    for module XML::Parser::Expat: 
>>>>> 
>>> 
>> 
> dlopen(/Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle, 
> 
>> 
>>> 
>>>>>    1): no suitable image found.  Did find:
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle: 
> 
>> 
>>> 
>>>>>    no matching architecture in universal wrapper at 
>>>>>    
>>  /System/Library/Perl/5.8.8/darwin-thread-multi-2level/DynaLoader.pm 
>>>   line 230.
>>>>>     at 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/XML/Parser.pm 
> 
>> 
>>> 
>>>>>    line 18
>>>>>    Compilation failed in require at 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/XML/Parser.pm 
> 
>> 
>>> 
>>>>>    line 18.
>>>>>    BEGIN failed--compilation aborted at 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/XML/Parser.pm 
> 
>> 
>>> 
>>>>>    line 22.
>>>>>    Compilation failed in require at -e line 1.
>>>>>    The problem is the file 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/inst/lib/perl5/5.8.8/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
>>>>> 
>>>>>    which originates from 
>>>>> 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk/source/XML-Parser-2.41/blib/arch/auto/XML/Parser/Expat/Expat.bundle
>>>>> 
>>>>>    It does not contain any PPC code:
>>>>> 
>>>>>    cd 
>>>   
> /Users/steffen/gtk/source/XML-Parser-2.41/blib/arch/auto/XML/Parser/Expat/
>>>>> 
>>>>>    file Expat.bundle 
>>>>>    Expat.bundle: Mach-O universal binary with 2 architectures
>>>>>    Expat.bundle (for architecture i386):Mach-O bundle i386
>>>>>    Expat.bundle (for architecture x86_64):Mach-O 64-bit bundle 
> x86_64
>>>>> 
>>>>>    In contrast, XML-Parser-2.40 has these architectures:
>>>>>    cd 
>>>>> 
>>> 
>> 
> /Users/steffen/gtk-old-but-good/source/XML-Parser-2.40/blib/arch/auto/XML/Parser/Expat/
>>>>> 
>>>>>    file Expat.bundle 
>>>>>    Expat.bundle: Mach-O universal binary with 2 architectures
>>>>>    Expat.bundle (for architecture ppc):Mach-O bundle ppc
>>>>>    Expat.bundle (for architecture i386):Mach-O bundle i386
>>>>> 
>>>>>    Would it be okay to go back to XML-Parser-2.40?
>>>>> 
>>>>>    Regards,
>>>>> 
>>>>>    Steffen
>>>>>    _______________________________________________
>>>>>    Gtk-osx-users-list mailing list
>>>>>    Gtk-osx-users-list gnome org
>>>>>    https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
>>>>> 
>>>>    _______________________________________________
>>>>    Gtk-osx-users-list mailing list
>>>>    Gtk-osx-users-list gnome org
>>>>    https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
>>> 
>>  _______________________________________________
>>  Gtk-osx-users-list mailing list
>>  Gtk-osx-users-list gnome org
>>  https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
>> 
> _______________________________________________
> Gtk-osx-users-list mailing list
> Gtk-osx-users-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
>


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