简体   繁体   English

py2app依赖问题

[英]py2app dependency problem

i will create a OS X Package using py2app. 我将使用py2app创建OS X软件包。 It is a Game using the FIFE-Engine. 这是使用FIFE引擎的游戏。 If i launch the resulting .app Bundle on another Mac i get this error Message: 如果我在另一台Mac上启动生成的.app Bundle,则会收到此错误消息:

Failed to load FIFE: dlopen([...]/Contents/Resources/fife/engine/python/fife/_fife.so, 2): Library not loaded: /opt/local/lib/libSDL_ttf-2.0.0.dylib 无法加载FIFE:dlopen([...] / Contents / Resources / fife / engine / python / fife / _fife.so,2):库未加载:/opt/local/lib/libSDL_ttf-2.0.0.dylib

Referenced from: [...]/Contents/Resources/fife/engine/python/fife/_fife.so Reason: Incompatible library version: _fife.so requires version 11.0.0 or later, but libSDL_ttf-2.0.0.dylib provides version 7.0.0 引用自:[...] / Contents / Resources / fife / engine / python / fife / _fife.so原因:库版本不兼容:_fife.so需要版本11.0.0或更高版本,但libSDL_ttf-2.0.0.dylib提供版本7.0.0

but libSDL_ttf-2.0.0.dylib is included in the Frameworks dir of the .app 但是libSDL_ttf-2.0.0.dylib包含在.app的Frameworks目录中

how can i tell the app to use the dylibs in the Frameworks folder? 我如何告诉应用程序使用Frameworks文件夹中的dylib?

Thanks. 谢谢。

I'm not sure if this will fix your problem, but it sounds related to the problem being discussed here: py2app built app displays `ERROR: pygame.macosx import FAILED` on other machines 我不确定这是否可以解决您的问题,但这听起来与此处讨论的问题有关: py2app内置的应用程序在其他计算机上显示“ ERROR:pygame.macosx import FAILED”

In particular, notice the one-line dynlib bug fix to boot_app.py (part of the py2app source). 特别要注意的是,对boot_app.py(py2app源代码的一部分)的单行dynlib错误修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM