Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Tk query
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bogbasic  
View profile  
 More options Dec 12 2011, 5:08 pm
From: bogbasic <j...@jbc.me.uk>
Date: Mon, 12 Dec 2011 14:08:42 -0800 (PST)
Local: Mon, Dec 12 2011 5:08 pm
Subject: Tk query

Hello, I have put together a little prog that uses Tk for a simple GUI and
it runs fine as a .rb file. However if I convert it to an exe file with
ocra....

ocra --no-dep-run --add-all-core fred.rb

.... I get an exe file with no errors but if I run it, I get an error in
'initialise': Can't find a usable init.tcl in the following
directories....This probably means tcl wasn't installed properly.

Any clues much appreciated.

Thanks, Jon.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Simon  
View profile  
 More options Dec 12 2011, 5:10 pm
From: David Simon <david.mike.si...@gmail.com>
Date: Mon, 12 Dec 2011 17:10:49 -0500
Local: Mon, Dec 12 2011 5:10 pm
Subject: Re: Tk query

If you are using a gem (or multiple gems) for tk, you'll have to give ocra
that information as well, either manually or by setting up a bundler
gemfile for your app. I'm guessing that's the source of your problem.

On Mon, Dec 12, 2011 at 5:08 PM, bogbasic <j...@jbc.me.uk> wrote:
> Hello, I have put together a little prog that uses Tk for a simple GUI and
> it runs fine as a .rb file. However if I convert it to an exe file with
> ocra....

> ocra --no-dep-run --add-all-core fred.rb

> .... I get an exe file with no errors but if I run it, I get an error in
> 'initialise': Can't find a usable init.tcl in the following
> directories....This probably means tcl wasn't installed properly.

> Any clues much appreciated.

> Thanks, Jon.

--
David Simon

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gustav Andersson  
View profile  
 More options Dec 12 2011, 5:11 pm
From: Gustav Andersson <gustavlidi...@gmail.com>
Date: Mon, 12 Dec 2011 23:11:43 +0100
Local: Mon, Dec 12 2011 5:11 pm
Subject: Re: Tk query

Googled and found
this:http://stackoverflow.com/questions/7510748/ruby-deploying-an-exe-with...

Best regards
Gustav

2011/12/12 bogbasic <j...@jbc.me.uk>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bogbasic  
View profile  
 More options Dec 12 2011, 6:19 pm
From: bogbasic <j...@jbc.me.uk>
Date: Mon, 12 Dec 2011 15:19:23 -0800 (PST)
Local: Mon, Dec 12 2011 6:19 pm
Subject: Re: Tk query
Many thanks indeed for the very quick replies. There is just one .rb
file that I am trying to compile and I am not using any gems for Tk as
far as I know - just a single script that calls bits of Tk. I'm really
thick at all this. I tried the following....

ocra fred.rb --windows c:\Ruby193\lib\tcltk\ --add-all-core --no-dep-
run --no-autoload

... and it produced a .exe file. However, on running the .exe, the
program runs for a bit without producing a GUI window and then it just
dies with no errors.

Any clues much appreciated.

On Dec 12, 10:11 pm, Gustav Andersson <gustavlidi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bogbasic  
View profile  
 More options Dec 13 2011, 11:27 am
From: bogbasic <j...@jbc.me.uk>
Date: Tue, 13 Dec 2011 08:27:56 -0800 (PST)
Local: Tues, Dec 13 2011 11:27 am
Subject: Re: Tk query
Hello, tried a few more things along the lines suggested and I am
still getting the message that it can't find the init.tcl. If I run it
without --no-dep-run it picks up the DLLs for Tk but still I get that
message. Any clues at all much appreciated as I am a relative newbie
to ruby and even newer to Tk so I may be missing something obvious.
The code's here...

www.jbc.me.uk/fred.rb

... if that will help. Bests, JC.

On Dec 12, 11:19 pm, bogbasic <j...@jbc.me.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Simon  
View profile  
 More options Dec 13 2011, 12:17 pm
From: David Simon <david.mike.si...@gmail.com>
Date: Tue, 13 Dec 2011 12:17:52 -0500
Local: Tues, Dec 13 2011 12:17 pm
Subject: Re: Tk query

I'm afraid you're going to have to spend some time digging around yourself
in order to (a) figure out which files Tk wants that aren't being included,
and (b) where they need to be in order for Tk to find them. Then, have Ocra
manually include those files, and extract them to usable places (and/or set
their locations in whatever environment variables are needed) before
initializing Tk.

--
David Simon

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bogbasic  
View profile  
 More options Dec 13 2011, 1:24 pm
From: bogbasic <j...@jbc.me.uk>
Date: Tue, 13 Dec 2011 10:24:39 -0800 (PST)
Local: Tues, Dec 13 2011 1:24 pm
Subject: Re: Tk query
Thanks, its sorted c/o the github discussion above which gave a
critical clue....

The thing to do is to copy the ruby file you wish to compile to the C:
\Ruby193\lib folder which contains the tcltk directory and then run
ocra there as follows....

ocra fred.rb tcltk --no-autoload

... then you can copy the resulting .exe file to wherever you want
afterwards and it runs fine.

On Dec 13, 5:17 pm, David Simon <david.mike.si...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »