On Fri, Jul 2, 2010 at 3:27 PM, Jason Heeris <[email protected]> wrote: > On 2 July 2010 10:54, Jason Heeris <[email protected]> wrote: >> AFAIK, this is part of pygtk... so do I need PyGTK already installed >> to build a new PyGTK? Or have a missed something? > > No, apparently a reboot was required after uninstalling PyGTK (certain > files were scheduled for removal that could not be immediately > removed). Now I can import all of the other modules fine... > > ---- > $ python > Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] > on > win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> import gobject >>>> import glib >>>> import pango >>>> import cairo >>>> import atk >>>> ^Z > ---- > > Now I get: > > $ python setup.py build --compiler=mingw32 --enable-threading > --yes-i-know-its- > not-supported bdist_wininst > c:\Python26\lib\site-packages\gtk-2.0\dsextras.py:354: DeprecationWarning: > objec > t.__new__() takes no parameters > return object.__new__(cls,*args, **kwds) > * numpy module could not be found, will build without numpy support. > * libglade-2.0.pc could not be found, bindings for gtk.glade will not be > built. > running build > running build_py > running build_ext > using MinGW GCC version 3.4.5 with -mms-bitfields option > building 'atk' extension > writing build\temp.win32-2.6\Release\atk.def > C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s > build\temp.win32-2.6\Release\atkmodu > le.o build\temp.win32-2.6\Release\atk.o build\temp.win32-2.6\Release\atk.def > -Lc > :/GTK/lib -Lc:/GTK/lib -Lc:\Python26\libs -Lc:\Python26\PCbuild -latk-1.0 > -lgobj > ect-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lgobject-2.0 -lgthread-2.0 > -lglib-2.0 - > lintl -lgthread-2.0 -lglib-2.0 -lintl -lpython26 -lmsvcr90 -o > build\lib.win32-2. > 6\atk.pyd > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0xfa6f): undefined reference > to > `atk_hyperlink_impl_get_type' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0xfa89): undefined reference > to > `atk_hyperlink_impl_get_hyperlink' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0xfadd): undefined reference > to > `atk_hyperlink_impl_get_type' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0xfb2d): undefined reference > to > `atk_hyperlink_impl_get_type' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0x13643): undefined reference > to > `atk_streamable_content_get_uri' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0x21421): undefined reference > to > `atk_hyperlink_impl_get_type' > build\temp.win32-2.6\Release\atk.o:atk.c:(.text+0x21445): undefined reference > to > `atk_hyperlink_impl_get_type' > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > Presumably ATK is the wrong version. But since I can't get PyGObject > 2.21 to build (neither flag that Tomeu Vizoso mentioned is actually > recognised by setup.py), can I just disable or ignore ATK?
This looks like you are building from the master branch. Please build from the windows branch. I should update the instructions to make that clear. This branch contains a few fixes, like disabling parts of the bindings that fail to build on windows. John > > - Jason > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
