# GTK and Ocra problem

**URL:** <https://www.ruby-forum.com/t/gtk-and-ocra-problem/174415>\
**Category:** Ruby-Gnome 2\
**Created:** [August 26, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/gtk-and-ocra-problem/174415 "2009-08-26T16:12:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgurbat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@sgurbat](https://www.ruby-forum.com/u/sgurbat)\
**Post date:** [August 26, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/gtk-and-ocra-problem/174415/1 "2009-08-26T16:12:20Z")

</div>

HI guys, for first sorry for my english.

I’m trying to create and exe file with Ocra gem under Win Vista but the  
result is an application window without text for labels and buttons, i  
can see only little squares for each charachter.

No problems, instead, creating an exe file with Fx or Wx GUI Toolkit.

I’ve tried to use rubyscript2exe but i obtain a long list of errors even  
if i try to create a simple shell script.

Tnx.

---

<div class="post-metadata">

**Author:** ![sgurbat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@sgurbat](https://www.ruby-forum.com/u/sgurbat)\
**Post date:** [August 27, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/gtk-and-ocra-problem/174415/2 "2009-08-27T19:56:49Z")

</div>

Yuri R. wrote:

> HI guys, for first sorry for my english.
> 
> I’m trying to create and exe file with Ocra gem under Win Vista but the  
> result is an application window without text for labels and buttons, i  
> can see only little squares for each charachter.
> 
> No problems, instead, creating an exe file with Fx or Wx GUI Toolkit.
> 
> I’ve tried to use rubyscript2exe but i obtain a long list of errors even  
> if i try to create a simple shell script.
> 
> Tnx.

Hi I had your same issue under WinXp. This is because the GTK library is  
not at all copied in the temporary directory that OCRA generates. So I  
got it fixed for my application modifying the ocra file to add the  
folders of my GTK directory.  
I asked the developer to optimize my coarse solution just today.

Bye
