I''ve installed ruby 1.8.3, wxWidgets 2.6-cvs, and swig 1.3.27. When running rake here''s the error I get: src/App.cpp:1419: error: ''CreateLogTarget'' is not a member of ''wxRubyApp''src/App.cpp: In function ''VALUE _wrap_App_CreateLogTarget(int, VALUE*, VALUE)'':src/App.cpp:1612: error: ''class wxRubyApp'' has no member named ''CreateLogTarget''rake aborted!Command failed with status (1): [g++ -c -I/Users/arthur/wxWidgets/include -...]
Kevin Smith
2005-Nov-16 14:00 UTC
[Wxruby-users] Error when building on OSX 10.4/wxWidgets 2.7
Arthur Wiebe wrote: > I''ve installed ruby 1.8.3, wxWidgets 2.6-cvs, and swig 1.3.27. > When running rake here''s the error I get: > src/App.cpp:1419: error: ''CreateLogTarget'' is not a member of ''wxRubyApp''src/App.cpp: In function ''VALUE _wrap_App_CreateLogTarget(int, VALUE*, VALUE)'':src/App.cpp:1612: error: ''class wxRubyApp'' has no member named ''CreateLogTarget''rake aborted!Command failed with status (1): [g++ -c -I/Users/arthur/wxWidgets/include -...] Apparently App#create_log_target has become deprecated in wxwidgets, and apparently it was not compiled in to your wxwidgets build. This might be because your wxwidgets was compiled without 2.4 compatibility, or without logging support. Regardless of the reason, the simple fix is to modify wxruby2/swig/classes/app.i and delete the line that says: virtual wxLog* CreateLogTarget() ; (it''s line 158 in the copy of app.i that I''m looking at right now). I''ll try to make this change myself in the official wxruby2 tree at some point. We don''t need to support deprecated wx methods. Kevin
Arthur Wiebe
2005-Nov-16 14:48 UTC
[Wxruby-users] Error when building on OSX 10.4/wxWidgets 2.7
> Apparently App#create_log_target has become deprecated in wxwidgets, and> apparently it was not compiled in to your wxwidgets build. This might be> because your wxwidgets was compiled without 2.4 compatibility, or> without logging support.>> Regardless of the reason, the simple fix is to modify> wxruby2/swig/classes/app.i and delete the line that says:>> virtual wxLog* CreateLogTarget() ;>> (it''s line 158 in the copy of app.i that I''m looking at right now).>> I''ll try to make this change myself in the official wxruby2 tree at some> point. We don''t need to support deprecated wx methods.>> Kevin> _______________________________________________OK, after that I get another error: src/BitmapButton.cpp: In member function ''virtual voidSwigDirector_wxBitmapButton::SetTitle(const wxString&)'':src/BitmapButton.cpp:2078: error: ''SetTitle'' is not a member of ''wxWindow''rake aborted!Command failed with status (1): [g++ -c -I/Users/arthur/wxWidgets/include -...] So I guess the same thing can be done there. But actually it lookslike you''re trying to use SetTitle on wxBitmapButton which is notallowed. This method is only applicable to frames and dialogsaccording to the wxWidgets docs for 2.6.2.You should be using SetLabel.
Arthur Wiebe
2005-Nov-16 16:19 UTC
[Wxruby-users] Error when building on OSX 10.4/wxWidgets 2.7
> I''ll try to make this change myself in the official wxruby2 tree at some> point. We don''t need to support deprecated wx methods.>I just want to note that it does work fine using wxWidgets 2.6.2.Although there is a warning saying this method is deprecated.Also when using the CVS version of wxWidgets there are a lot of errorsabout SetTitle. But not when using wx2.6.2. So it might be a bug inwxwidgets.
Seemingly Similar Threads
- [712] trunk/wxruby2/swig/classes/App.i: Removed unneeded debugging output & deprecated method (Alex Fenton)
- [824] trunk/wxruby2/swig/classes/App.i: Remove some ifdefs for old unstable versions of WxWidgets
- [1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
- problem building dvi and pdf documentation on Darwin 10.2.6
- [1025] trunk/wxruby2/swig: Use Wx::THE_APP constant as global reference to App (as per WxWidgets);