Python3 + PyGobject + GTK3和cx_freeze缺少DLL

时间:2013-11-19 09:35:10

标签: python-3.x gtk3 cx-freeze pygobject

当我使用pygobject网站的setup.py从py python3 + pygobject + gtk3应用程序创建一个exe时,它会遗漏一些DLL文件。

缺少哪些文件?

1 个答案:

答案 0 :(得分:1)

我已经手动尝试了所需的DLL。所以,如果这有助于某人:

必须修改setup.py missing_dlls 列表必须为:

missing_dll = ['libgtk-3-0.dll',
           'libgdk-3-0.dll',
           'libatk-1.0-0.dll',
           'libcairo-2.dll',
           'libcairo-gobject-2.dll',
           'libgdk_pixbuf-2.0-0.dll',
           'libjpeg-8.dll',
           'libpango-1.0-0.dll',
           'libpangocairo-1.0-0.dll',
           'libpangoft2-1.0-0.dll',
           'libpangowin32-1.0-0.dll',
           'libgirepository-1.0-1.dll',
           'libffi-6.dll',
           'libfontconfig-1.dll',
           'libfreetype-6.dll',
           'libgio-2.0-0.dll',
           'libglib-2.0-0.dll',
           'libgmodule-2.0-0.dll',
           'libgobject-2.0-0.dll',
           'libpng15-15.dll',
           'libpyglib-gi-2.0-python-0.dll',
           'libxml2-2.dll',
           'zlib1.dll',
           'libgnutls-26.dll',
           'librsvg-2-2.dll',
           'libgcrypt-11.dll',
           'libp11-kit-0.dll']

如果您不想要shareetclib中的所有文件,请修改 gtk_libs 列表:

gtk_libs = ['lib/gdk-pixbuf-2.0',
            'lib/girepository-1.0',
            'share/glib-2.0',
            'share/gtk-3.0']

你可能还包括lib/engines,但我不需要它。