Because of "official" wxruby gem won''t work on Fedora 11 distro eveel@notazik{/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/samples /minimal}% ./minimal.rb /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wxruby2.so: /usr/lib /ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wxruby2.so: symbol _ZN13wxAuiNotebook16AdvanceSelectionEb, version WXU_2.8.5 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference - /usr/lib/ruby/gems/1.8/gems /wxruby-2.0.0-x86-linux/lib/wxruby2.so (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'' from ./minimal.rb:8 I''ve decided to build wxruby by myself, but all my positive wishes are absolutely failed because of some issues. eveel{~/wxruby}% rake (in /home/eveel/wxruby) Enabling DYNAMIC build Enabling RELEASE build Enabling UNICODE build The following wxWidgets features are not available and will be skipped: PrinterDC g++ -c -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxABI_VERSION=208010 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind- tables -fno-strict-aliasing -fPIC -Wno-unused-function -I. -I /usr/lib/ruby/1.8/i386-linux -o obj/AboutDialogInfo.o src/AboutDialogInfo.cpp { some g++ invocations } swig -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxABI_VERSION=208010 -Iswig/custom -w401 -w801 -w515 -c++ -ruby -o src/AnimationCtrl.cpp swig/classes /AnimationCtrl.i ruby swig/renamer.rb src/AnimationCtrl.cpp ruby swig/fixplatform.rb src/AnimationCtrl.cpp ruby swig/fixmodule.rb src/AnimationCtrl.cpp Class: AnimationCtrl : Control ERROR! swig/fixmodule.rb Didn''t find swig class rake aborted! Command failed with status (1): [ruby swig/fixmodule.rb src/AnimationCtrl.c...] (See full trace by running task with --trace) What''s wrong? gcc: 4.4.1 ruby: 1.8.6 (p369) swig: 1.3.39 wx: 2.8.10 wxruby: trunk (last updated before this post were written) -- Posted via http://www.ruby-forum.com/.
Dmitry a. Ustalov wrote:> I''ve decided to build wxruby by myself, but all my positive wishes are > absolutely failed because of some issues> ....> Class: AnimationCtrl > : Control > ERROR! swig/fixmodule.rb Didn''t find swig class > rake aborted! > Command failed with status (1): [ruby swig/fixmodule.rb > src/AnimationCtrl.c] > > (See full trace by running task with --trace) > > What''s wrong? > > gcc: 4.4.1 > ruby: 1.8.6 (p369) > swig: 1.3.39 > wx: 2.8.10 > wxruby: trunk (last updated before this post were written) >Your SWIG is too new. Since we released 1.0.1, SWIG released a new version that broke some features of the generated code we rely on. Please try downgrading to 1.3.38. alex
Alex Fenton wrote:> Your SWIG is too new. Since we released 1.0.1, SWIG released a new > version that broke some features of the generated code we rely on. > Please try downgrading to 1.3.38. > > alexVery well, I''ve downloaded and installed the SWIG 1.3.38, but rake fails: obj/wx.o: In function `wxRuby_IterateTracking'': /usr/include/wx-2.8/wx/geometry.h:753: multiple definition of `cWxEvtHandler'' obj/EvtHandler.o:/usr/include/wx-2.8/wx/geometry.h:112: first defined here obj/wx.o: In function `wxRuby_IterateTracking'': /usr/include/wx-2.8/wx/thread.h:594: multiple definition of `cWxEvent'' obj/Event.o:/usr/include/wx-2.8/wx/thread.h:554: first defined here obj/wx.o: In function `wxRuby_IterateTracking'': /usr/include/wx-2.8/wx/thread.h:554: multiple definition of `cWxWindow'' obj/Window.o:/usr/lib/ruby/1.8/i386-linux/ruby.h:696: first defined here obj/wx.o: In function `PtrToRbObjHash_wxImplementation_HashTable::begin()'': /usr/include/wx-2.8/wx/geometry.h:113: multiple definition of `cWxTopLevelWindow'' obj/TopLevelWindow.o:/usr/include/wx-2.8/wx/thread.h:554: first defined here obj/wx.o: In function `_wxHashTableBase2::GetFirstNode(unsigned int, _wxHashTable_NodeBase**)'': /usr/include/wx-2.8/wx/geometry.h:107: multiple definition of `cWxSize'' obj/Size.o:/usr/include/wx-2.8/wx/thread.h:554: first defined here It''s sad :( -- Posted via http://www.ruby-forum.com/.