Pleeease help - rubyscript2exe

Hi!

Has anybody success with making standalone executables.
I’m unable to figure out what’s wrong with my method:

Installed ruby oneclick installer, installed gtk2.8.18-rc1, tried
hello.rb, works.
putting all dlls (except the mentioned 3) to ruby’s bin dir, copying
etc/share/lib to both ruby root and ruby/bin, running rubyscript2exe
from ruby’s bin directory (hello.rb is there), works, pango works.

Starting the executable, and I get squares for every letter :frowning:

The output of the example follows:
D:\tmp\hello>hello.exe
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-WARNING **:No builtin or dynamically
loaded modules were found. Pango will not work correctly.
This probably means there was an error in the creation of:
‘d:\tmp\eee.hello.exe.5\etc\pango\pango.modules’
You should create this file by running pango-querymodules.
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-WARNING **:pango_shape called with bad font, expect ugly output
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-WARNING **:pango_font_get_glyph_extents called with bad font,
expect ugly output
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-WARNING **:pango_font_get_font_map called with bad font, expect
ugly output
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-CRITICAL **:_pango_cairo_font_map_get_renderer: assertion
`PANGO_IS_CAIRO_FONT_MAP (fontmap)’ failed
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
Pango-WARNING **:_pango_cairo_font_install called with bad font,
expect ugly output

Hi Gergely,

My only guess is that you did something wrong at the final step. Quote
from the wiki:

"In the end, you need to ship to your user a directory with:

  • yourapp.exe (which embeds the ruby interpreter, ruby dependencies and
    the GTK dlls except three)
  • the three dlls libgtk-win32, libgdk_pixbuf, libpango
    *the three directories etc/, lib/ and share/"

Those three directories are the same that you copied to c:\ruby\

HTH :confused:

Mathieu

Gergely K. a écrit :

Starting the executable, and I get squares for every letter :frowning:
Pango-WARNING **:pango_shape called with bad font, expect ugly output

[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


Mathieu B.
http://www.mblondel.org

Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Mathieu B. azt írta, hogy:

*the three directories etc/, lib/ and share/"
I do have them in the same directory.
But

I’m still on the machine where I was able to run my program as a ruby
project. So I can run hello.rb, but I cannot run in the same directory
hello.exe :open_mouth:

Mathieu B. azt írta, hogy:

*the three directories etc/, lib/ and share/"

Those three directories are the same that you copied to c:\ruby\

Compiling the same C program (hello world), and running it from the same
directory runs without problem (fonts are ok).

Anyway, rubyscript2exe can figure out and embed the gtk dlls.

Gergo

Gergely K. azt írta, hogy:

Well, so if I don’t copy the 3 dlls, as stated in the tutorial,
rubyscript2exe still find it and pack them to the executable!!!
It happily unpacks it, but it doesn’t copy the etc, share and lib
subdirectories, that’s why it prints what it prints…

So, can somebody create a little screencast (can be used not just to
solve my problem, but show to the world :slight_smile:

Or

can somebody please send me relevant logs, whatever, which helps me
figure out what did I do wrong?

thx

Gergo

d:\tmp\eee.hello.exe.5\app\hello.rb: line 11

https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs