PDA

View Full Version : Lich On Mac - gtk2 help!



panapple
02-07-2016, 03:27 AM
I'm using lich on a Mac Pro running Stormfront through Wine. I set up lich according to the website using terminal, but I ran into a few issues when trying to install gtk2, as the version the site specifies to install (2.2.0) can't seem to be installed successfully. I've also tried installing the latest version of gtk2 (3.0.7), which installs successfully, but gives a warning when starting up ruby:

ruby[12114:51895] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

This causes Stormfront to stall, making it virtually unusable. So now I'm using Stormfront without gtk2, which runs lich fine, but I can't use any scripts that involves pop-up windows, like Narost, which it what I'd really like to use. Just wondering if anyone has had this experience and knows of any solution. Maybe another version of gtk2 that works?

Any help would be appreciated. Thanks!

Zhiart
02-07-2016, 10:59 AM
GTK2 3.0.7 has deprecated a method that Lich uses. You need to figure out what is wrong with 2.2.0 that it won't install. Feel free to post the error here and we'll see if we can help.

Gnomad
02-07-2016, 12:11 PM
No, Apple deprecated a method that GTK+ uses.

That said, warnings shouldn't cause ruby to halt.

panapple
02-09-2016, 12:29 AM
This is what I get when I try to install 2.2.0:

gem install gtk2 -v 2.2.0
Building native extensions. This could take a while...
ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... yes
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for Win32 OS... no
checking for gobject-2.0 version (>= 2.12.0)... yes
checking for gthread-2.0... yes
checking for unistd.h... yes
checking for io.h... no
checking for g_spawn_close_pid() in glib.h... no
checking for g_thread_init() in glib.h... no
checking for g_main_depth() in glib.h... no
checking for g_listenv() in glib.h... no
checking for rb_check_array_type() in ruby.h... yes
checking for rb_check_hash_type() in ruby.h... yes
checking for rb_exec_recursive() in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
checking for rb_sourcefile() in ruby.h... yes
checking for rb_sourceline() in ruby.h... yes
checking for ruby_set_current_source() in ruby.h... no
checking for rb_thread_blocking_region() in ruby.h... yes
checking for ruby_native_thread_p() in ruby.h... yes
checking for rb_thread_call_with_gvl() in ruby.h... yes
checking for rb_str_new_cstr() in ruby.h... yes
checking for rb_gc_register_mark_object() in ruby.h... yes
checking for rb_exc_new_str() in ruby.h... no
checking for curr_thread in ruby.h,node.h... no
checking for rb_curr_thread in ruby.h,node.h... no
creating ruby-glib2.pc
creating glib-enum-types.c
creating glib-enum-types.h
creating Makefile

make "DESTDIR="
compiling glib-enum-types.c
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
glib-enum-types.c:1181:9: error: use of undeclared identifier 'G_WIN32_OS_ANY'
{ G_WIN32_OS_ANY, "G_WIN32_OS_ANY", "any" },
^
glib-enum-types.c:1182:9: error: use of undeclared identifier 'G_WIN32_OS_WORKSTATION'
{ G_WIN32_OS_WORKSTATION, "G_WIN32_OS_WORKSTATION", "workstation" },
^
glib-enum-types.c:1183:9: error: use of undeclared identifier 'G_WIN32_OS_SERVER'
{ G_WIN32_OS_SERVER, "G_WIN32_OS_SERVER", "server" },
^
1 warning and 3 errors generated.
make: *** [glib-enum-types.o] Error 1

panapple
02-09-2016, 12:38 AM
I don't think Ruby necessarily halts, sorry, it's weird. Basically what happens is, when I try to start lich using "sudo ruby lich/lich.rbw --gemstone --stormfront", it gives me that warning, then what looks like a Ruby icon pops up on my applications dock (which doesn't happen with gtk2 uninstalled). Then the terminal "seems to freeze, until I click on the Ruby icon in the dock. With the Ruby application as the active application, stormfront will start to boot up normally with lich (albeit slowly), but once I click to another application, like my Stormfront window, everything freezes again (similar to lag or a disconnect), until I click back to Ruby. Hope that makes sense...

Mettler
02-13-2016, 02:05 PM
I don't think Ruby necessarily halts, sorry, it's weird. Basically what happens is, when I try to start lich using "sudo ruby lich/lich.rbw --gemstone --stormfront", it gives me that warning, then what looks like a Ruby icon pops up on my applications dock (which doesn't happen with gtk2 uninstalled). Then the terminal "seems to freeze, until I click on the Ruby icon in the dock. With the Ruby application as the active application, stormfront will start to boot up normally with lich (albeit slowly), but once I click to another application, like my Stormfront window, everything freezes again (similar to lag or a disconnect), until I click back to Ruby. Hope that makes sense...

I have been unable to get gtk2 to properly install either on my Mac. Everything else works fine, just not that, so I can't use ;narost.

Question: how did you manage to get stormfront running via Wine? After installing Stormfront FE and running it in Wine it always asks me to go to the website to login and play. Of course I can't select Stormfront as a option via the web portal. So then I thought "oh yeah, I need to install the launcher too." So I did, but clicking the launcher gets me nowhere. Like, nothing happens after the install.

Trying to load the game via Terminal --gemstone --stormfront does nothing.

So, back to using Avalon, although I'd really prefer Stormfront.

Anyway, here is the error message I get trying to install gtk2. I would also like to find out what the problem is.

ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.

/usr/local/opt/ruby/bin/ruby -r ./siteconf20160213-15559-rirztb.rb extconf.rb
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... yes
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for Win32 OS... no
checking for gobject-2.0 version (>= 2.12.0)... yes
checking for gthread-2.0... yes
checking for unistd.h... yes
checking for io.h... no
checking for g_spawn_close_pid() in glib.h... yes
checking for g_thread_init() in glib.h... yes
checking for g_main_depth() in glib.h... yes
checking for g_listenv() in glib.h... yes
checking for rb_check_array_type() in ruby.h... yes
checking for rb_check_hash_type() in ruby.h... yes
checking for rb_exec_recursive() in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
checking for rb_sourcefile() in ruby.h... yes
checking for rb_sourceline() in ruby.h... yes
checking for ruby_set_current_source() in ruby.h... no
checking for rb_thread_blocking_region() in ruby.h... no
checking for ruby_native_thread_p() in ruby.h... yes
checking for rb_thread_call_with_gvl() in ruby.h... yes
checking for rb_str_new_cstr() in ruby.h... yes
checking for rb_gc_register_mark_object() in ruby.h... yes
checking for rb_exc_new_str() in ruby.h... yes
checking for curr_thread in ruby.h,node.h... no
checking for rb_curr_thread in ruby.h,node.h... no
creating ruby-glib2.pc
creating glib-enum-types.c
creating glib-enum-types.h
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling glib-enum-types.c
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
glib-enum-types.c:1181:9: error: use of undeclared identifier 'G_WIN32_OS_ANY'
{ G_WIN32_OS_ANY, "G_WIN32_OS_ANY", "any" },
^
glib-enum-types.c:1182:9: error: use of undeclared identifier 'G_WIN32_OS_WORKSTATION'
{ G_WIN32_OS_WORKSTATION, "G_WIN32_OS_WORKSTATION", "workstation" },
^
glib-enum-types.c:1183:9: error: use of undeclared identifier 'G_WIN32_OS_SERVER'
{ G_WIN32_OS_SERVER, "G_WIN32_OS_SERVER", "server" },
^
1 warning and 3 errors generated.
make: *** [glib-enum-types.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/glib2-2.2.0/gem_make.out

panapple
02-18-2016, 01:40 AM
I used WineBottler to install the SGE. I run the SGE through Wine, which will install Stormfront. Then I just run the SGE after I run lich in terminal. Hope that helps, and yes, still looking for a solution to GTK2 as well...

Mettler
02-29-2016, 11:37 PM
Just a note: I was able to successfully install gtk2 v2.2.5...but the game crashes when I try to log in after launching lich through the terminal.

Things that don't work: installing different versions of ruby; installing a later version of lich.

Mathari
12-05-2019, 01:24 PM
I don't think Ruby necessarily halts, sorry, it's weird. Basically what happens is, when I try to start lich using "sudo ruby lich/lich.rbw --gemstone --stormfront", it gives me that warning, then what looks like a Ruby icon pops up on my applications dock (which doesn't happen with gtk2 uninstalled). Then the terminal "seems to freeze, until I click on the Ruby icon in the dock. With the Ruby application as the active application, stormfront will start to boot up normally with lich (albeit slowly), but once I click to another application, like my Stormfront window, everything freezes again (similar to lag or a disconnect), until I click back to Ruby. Hope that makes sense...
Resurrecting an old thread here, but this is exactly what's happening for me right now while trying to get Lich working on my Mac. All the pre-reqs (including gtk2) are installed. Lich starts, Stormfront runs, I connect successfully, etc., but unless I constantly click on the Ruby/terminal icon that pops up on the dock when Lich starts, everything is completely unresponsive (e.g., game text doesn't even come through on Stormfront, but if I click the icon, a line or so will come through for each click). Has anyone seen this and resolved it (without getting rid of gtk2)?