[wxruby-development] Building wxRuby and Ruby 1.8.7 on Windows

Chauk-Mean P
Sat, 20 Dec 2008 00:19:05 -0000

Hi Alex,

2008/12/19 Alex Fenton <alex at pressure.to>:
> If you want to try out Ruby 1.9 + wxRuby on Windows now, I''d
recommend using
> MingW - get it via Luis Lavena''s easy installer + the patched GDI
header
> files. I''ve got a complete working set up with this route, and
happy to help
> track down any problems you run into.

I followed your advice and took successfully the MinGW way ...

I installed MinGW and MSYS myself.
Then I built ruby-1.8.7-p72, wxWidgets with patches for GDI+, wxRuby
(the current svn), and finally I obtained the gem.
I tested some samples to check the gem, and the samples work !

Then I built ruby-1.9.1-preview2 with the same options as for
ruby-1.8.7-p72. I just add the --program-suffix=19 option.
Unfortunately, I haven''t been able to build wxRuby for ruby-1.9.

After a cleanup of wxRuby (rake19 clean, rake19 clean_src), the rake
gem task produces the following output :

D:\HOME\wxruby2>rake19 gem WXRUBY_VERSION=1.9.9
(in D:/HOME/wxruby2)
Enabling UNICODE build
Class: AboutDialogInfo
class wxAboutDialogInfo
In file included from C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:24,
                 from C:/opt/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../incl
ude/direct.h:22,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/win32.h:48,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/defines.h:192,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/ruby.h:70,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby.h:32,
                 from src/AboutDialogInfo.cpp:826:
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:74: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:75: error: variable or field
`rb_enc_set_index'' declared void
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:75: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:75: error: expected primary-e
xpression before "int"
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:75: error: initializer expres
sion list treated as compound expression
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:77: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:78: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:79: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:80: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:80: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:80: error: initializer expres
sion list treated as compound expression
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:81: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:81: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:81: error: initializer expres
sion list treated as compound expression
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:82: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:83: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:84: error: variable or field
`rb_enc_copy'' declared void
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:84: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:84: error: `VALUE''
was not de
clared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:84: error: initializer expres
sion list treated as compound expression
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:86: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:87: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:88: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:89: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:92: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:93: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:95: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:96: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:97: error: `VALUE''
does not n
ame a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:161: error: `ID''
does not nam
e a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:162: error: `ID''
does not nam
e a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:164: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:166: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:168: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:179: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:180: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:181: error: variable or field
 `rb_enc_set_default_external'' declared void
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:181: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:182: error: variable or field
 `rb_enc_set_default_internal'' declared void
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:182: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:183: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:186: error:
`RUBY_EXTERN'' doe
s not name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:218: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:221: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:221: error: `VALUE''
was not d
eclared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:221: error: `ecopts''
was not
declared in this scope
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:221: error: initializer expre
ssion list treated as compound expression
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:224: error: `VALUE''
has not b
een declared
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:239: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:258: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:259: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:260: error: `VALUE''
does not
name a type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/encoding.h:261: error: `VALUE''
does not
name a type
In file included from C:/opt/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../incl
ude/direct.h:22,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/win32.h:48,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/defines.h:192,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby/ruby.h:70,
                 from C:/opt/ruby19/include/ruby19-1.9.1/ruby.h:32,
                 from src/AboutDialogInfo.cpp:826:
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:36: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:49: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:61: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:71: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:73: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:76: error: `VALUE'' does
not name a
type
C:/opt/ruby19/include/ruby19-1.9.1/ruby/io.h:160: error: `VALUE'' does
not name a
 type
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetName(int,
 VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:1893: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:1893: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetVersion(i
nt, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:1966: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:1966: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetDescripti
on(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2039: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:2039: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetCopyright
(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2112: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:2112: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetLicence(i
nt, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2210: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:2210: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetWebSiteUR
L(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2370: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:2370: warning: unused variable
''rb_enc_str_new''
src/AboutDialogInfo.cpp: In function `VALUE _wrap_wxAboutDialogInfo_GetWebSiteDe
scription(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2394: error: `rb_enc_str_new'' was not declared
in this s
cope
src/AboutDialogInfo.cpp:2394: warning: unused variable
''rb_enc_str_new''
rake aborted!
Command failed with status (1): [g++ -c  -ID:/HOME/wxWidgets-2.8.9/include ...]

(See full trace by running task with --trace)

Cheers.

Chauk-Mean.