From: Pat Kiatchaipipat <ruby-forum-incoming@an...> - 2008-05-02 08:43:34
hi, I almost make .exe with ruby-GNOME2 GUI by rubyscript2exe. I can
make .exe file that can run anywhere in my computer now. but I have one
problem when I run in other computer it show me error message like this.
\app\init.rb:239:in `set_icon': Unable to load image-loading module:
specified module could not be found. (Gdk::PixbufError)
then I make new folder name 'Ruby' in drive C and then I copy
'lib/GTK/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.dll' from my
computer and paste in it. so it has 'libpixbufloader-png.dll' file in
'c:/Ruby/lib/GTK/lib/gtk-2.0/2.10.0/loaders/' that is cause of this
then I run my program it work fine. but I want only one files that can
run in any computer. I think when I run my program it will find
'c:/Ruby/lib/GTK/lib/gtk-2.0/2.10.0/loaders/' because in line 239 that
has problem I use
that $icon is "/logo.png"
so it can't show icon in top-left window it can't run!
but I don't want it find 'libpixbufloader-png.dll' file in
'c:/Ruby/lib/GTK/lib/gtk-2.0/2.10.0/loaders/' I use this guide for make
on rubyscript2exe on Windows, solution 2
I do follow this step and when I run my program. 'C:\Documents and
Settings\Sasitorny\eee\eee.make_gtk2.exe.5\' is folder that it unzipped
all embbed file in. It has
I embbed them into my program but it still find
'c:/Ruby/lib/GTK/lib/gtk-2.0/2.10.0/loaders/'. Why???????? not only
'libpixbufloader-png.dll' but also all file of GTK (example: pango) it
will find in 'c:/Ruby/lib/GTK/lib/' that any computer don't has ruby
program and GTK install :'((((
please help me I still try it for a long time.
see my picture for detail :'(
Posted via http://www.ruby-forum.com/.
Get latest updates about Open Source Projects, Conferences and News.