From: Hidetoshi NAGAI Date: 2003-11-14T14:14:42+09:00 Subject: Re: tix8.1 wrapper for ruby? Hi, From: Ferenc Engard Subject: tix8.1 wrapper for ruby? Date: Fri, 14 Nov 2003 08:37:18 +0900 Message-ID: <3FB415AB.136459A2@engard.hu> > parentheses > ############################################# > (注) 以下で発生する Tcl/Tk 上のエラーは > 検査過程の都合上生じるものであるので, > 通常は無視してかまわない > ############################################# > Error: > a1 > > Error: > a1 > value for "a2" missing > while executing > "tixClass a1 a2" > -------------------------------------- > So, what can I do? If you get Tix.rb and Tix.inf, Please ignore those error messages. Those are Tcl/Tk's responses for test commands to explore the arguments and the functions. If get none... Sorry. The library is not tested on ruby 1.8.x. Please wait for a new library which supports ruby 1.8.x. Or create new Tix.rb for Tix8.1 based on the sample Tix-for-TkPackage.rb which generated for Tix4.1. Probably, on your Tcl/Tk, "package require Tix" command is working. If it is true, please edit head lines of Tix.rb from --------------------------- require 'tkext' module Tix extend Tix # load Tck/Tk ext-package library load 'Tix.inf' EXTLIB_INFO.each{|lib| Tk.setup_libs(lib) if lib} if EXTLIB_INFO --------------------------- to --------------------------- #require 'tkext' require 'tk' module Tix extend Tix # load Tck/Tk ext-package library #load 'Tix.inf' #EXTLIB_INFO.each{|lib| Tk.setup_libs(lib) if lib} if EXTLIB_INFO TkPackage.require('Tix') --------------------------- Now, you'll be able to use Tix library by 'require "Tix.rb"'. The generated Tix.rb is a result of automatic estimation. So, it is NOT perfect. It's only a template for better definitions. > PS: Running mk_tkextlib.rb I have realized that the tcltklib+exception > problem > (http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=200309141511.h8EFBYd13608%40moulon.inra.fr) > still exists... Please try the newest CVS version with the '--with-pthread-ext' configure option. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)