问题描述
Ocra 无法处理需要tk"的应用程序
需要'tk'把不"
使用以下代码打包此代码ocra http://github.com/larsch/ocra不起作用(如链接中的问题之一所述)问题:https://github.com/larsch/ocra/issues/29>
(Ocra 是 1.9 的新"rubyscript2exe,本质上它用于将 rb 脚本部署为可执行文件)
唯一的问题似乎是缺少 tcl 的 DLL 文件
我认为这不是问题
AFAIK 问题是缺少 tk 的 DLL 文件
如果它们是已知的,则可以在执行 ocra 时包含它们
有没有办法知道 tk 工作所需的 DLL 依赖关系?
我今天没有看问题跟踪器...它已经解决了(几个小时前),抱歉.
ocra rubyfile.rb --windows C:\Ruby192\lib\tcltk\ --no-autoload --add-all-core
(--add-all-core 是可选的,如果 exe 没有它就不要包含它)
--> https://github.com/larsch/ocra/issues/29
Ocra is unable to handle applications that require 'tk'
require 'tk'
puts 'nope'
Packing this code with ocra http://github.com/larsch/ocradoesn't work (like mentioned in one of the issues at the link)Issue: https://github.com/larsch/ocra/issues/29
(Ocra is the 'new' rubyscript2exe for 1.9, essentially it's for deploying a rb script as an executable)
The only problem seems to be the missing DLL files for tcl
I don't think it's an issue
AFAIK the problem are the missing DLL files for tk
If they are known they can be included when executing ocra
Is there a way to know the DLL dependecies required for tk to work?
I didn't look on the issue tracker today... it is solved already (some hours ago), sorry.
ocra rubyfile.rb --windows C:\Ruby192\lib\tcltk\ --no-autoload --add-all-core
(--add-all-core is optional, don't include it if the exe works without it)
--> https://github.com/larsch/ocra/issues/29
这篇关于Ruby,使用包含 TK GUI 的 ocra 部署 exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!