Hi. I’m back. Unfortunately I can’t get xrcise working. Here is the
sample xrc file and the resulting error messages:
=============== TestWxFb.xrc =========================================
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL
500,300
Minimal
wxVERTICAL
0
wxALL|wxALIGN_CENTER_HORIZONTAL
5
Test
1
wxEXPAND
5
wxHORIZONTAL
0
wxALL
5
Username
0
wxALL
5
0
1
wxEXPAND
5
wxHORIZONTAL
0
wxALL
5
MyLabel
0
wxALL
5
0
xxx:~/Desktop/Eyes$ xrcise -o TestWxFb.rb TestWxFb.xrc
/home/myhome/gems/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/outputter.rb:46:in
clean_id_attr_readers': undefined method
each’ for #String:0x859ff44
(NoMethodError)
from (erb):16:in output' from /opt/lib/ruby1.9/1.9.1/erb.rb:753:in
eval’
from /opt/lib/ruby1.9/1.9.1/erb.rb:753:in result' from /home/myhome/gems/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/outputter.rb:19:in
output’
from /home/myhome/gems/gems/wx_sugar-0.1.22/bin/xrcise:126:in block (2 levels) in <top (required)>' from /home/myhome/gems/gems/wx_sugar-0.1.22/bin/xrcise:125:in
each’
from /home/myhome/gems/gems/wx_sugar-0.1.22/bin/xrcise:125:in block in <top (required)>' from /home/myhome/gems/gems/wx_sugar-0.1.22/bin/xrcise:124:in
open’
from /home/myhome/gems/gems/wx_sugar-0.1.22/bin/xrcise:124:in <top (required)>' from /home/myhome/gems/bin/xrcise:19:in
load’
from /home/myhome/gems/bin/xrcise:19:in `’
wxFormbuilder 3.0
wx_sugar version 0.1.22
wxruby-ruby19-2.0.1-x86-linux
wx_sugar-0.1.22
Ubuntu version 9.10 (Karmic Koala)
=============== .bashrc file ========================================
PATH=/opt/bin:/home/myhome/gems/bin:$PATH
LD_LIBRARY_PATH=/opt/lib:$LD_LIBRARY_PATH
export GEM_HOME=/home/myhome/gems
How do I make xrcise work properly? Thanks.
- Philip