Re: [Gtk-osx-users] Build python ige-mac-integration binding



Hello John,

Thank you, after adding append_autogenargs("ige-mac-integration",
"--enable-python=yes") to my .jhbuildrc-custom and calling jhbuild
buildone ige-mac-integration the python module was build.
It installed in ~/gtk/inst/lib/python2.5/site-packages, pygtk was
installed in /Library/Python/2.5/site-packages.

I try to run the test-integration.py file but this gives an error:

./test-integration.py
Traceback (most recent call last):
  File "./test-integration.py", line 82, in <module>
    window = MainWindow()
  File "./test-integration.py", line 44, in __init__
    macmenu.set_menu_bar(menubar)
  File "/Users/gertwin/gtk/inst/lib/python2.5/site-packages/igemacintegration/__init__.py",
line 32, in set_menu_bar
    ige_mac_menu_set_menu_bar(menubar)
NameError: global name 'ige_mac_menu_set_menu_bar' is not defined

looks like the library _igemacintegration.so is not loaded.

Can you give me a hint how to resolve this?

Regards,
Gertwin


2009/7/16 John Ralls <jralls ceridwen fremont ca us>:
>
> On Jul 15, 2009, at 1:32 PM, Gertwin Groen wrote:
>
>> L.s.,
>>
>> I managed to build the gtk-os with pygtk bindings.
>> It works all well, even ige-mac-integration in c apps.
>> But I have some problems building the python bindings for ige-mac-
>> integration.
>>
>> A makefile is created in
>> "~/gtk/source/ige-mac-integration-0.8.4/bindings/python" but when
>> calling make is generates an error:
>>
>> (                             \
>>           --register /gdk-types.defs  \
>>           --register /gtk-types.defs  \
>>           --override igemacintegration.override                       \
>>           --prefix igemacintegration igemacintegration.defs) >
>> gen-igemacintegration.c                       \
>>       && cp gen-igemacintegration.c igemacintegration.c                       \
>>       && rm -f gen-igemacintegration.c
>> /bin/sh: --register: command not found
>> make: *** [igemacintegration.c] Error 127
>>
>> Can someone tell me how to build the python bindings for ige-mac-
>> integration?
>>
>
>
> This is a bit of a pain, but the drill is that you have to build ige-
> mac-integration twice. It gets built the first time as part of meta-
> gtk-osx-bootstrap, but after you build pygtk, you have build it again.
> Just run jhbuild buildone ige-mac-integration and configure should
> notice that pygtk is present and enable python for you. If it doesn't,
> add
> append_autogenargs("ige-mac-integration", "--enable-python=yes")
> to your .jhbuildrc-custom and run jhbuild buildone ige-mac-integration
> again.
>
> As a general rule, you can't run make directly on subdirectory
> Makefiles in an sutotools project. They're dependent on the correct
> environment being passed in to them from the root-directory Makefile.
>
> Regards,
> John Ralls
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Gtk-osx-users mailing list
> Gtk-osx-users lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/gtk-osx-users
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Gtk-osx-users mailing list
Gtk-osx-users lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtk-osx-users



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