Hello,
I try to install wxruby on openSUSE 11.1, but do not succeed.
I get an error, when trying to compile wxRuby; error message please see
at the
bottom of this message.
Using:
- openSuse 11.1
- wxruby: wxruby-2.0.1.tar.gz from rubyforge.org
- wxWidget: “wxAll” from wxWidgets.org/downloads, compiled with
“configure --with-gtk --enable-unicode” (no problem) - rake version 0.8.7
- SWIG Version 1.3.36
- ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]
Unfortunately, I have only very limited knowledge of linux and of
compiling and
no knowledge of any kind of C…
Using the wxRuby-gem and using wxwidgets.rpm from the
openSUSE-repository was
not successfull.
I use Ruby for hardware testing (quite a lot) and need some
graphical output of data values now.
I would be glad to get some help solving the above problem.
Axel
Output of rake --trace (partially):
rake --trace
(in /root/myDir/wx/wxruby-2_0_1_SRC)
Enabling DYNAMIC build
Enabling RELEASE build
Enabling UNICODE build
The following wxWidgets features are not available and will be skipped:
GCDC
GraphicsBrush
GraphicsContext
GraphicsFont
GraphicsMatrix
GraphicsObject
GraphicsPath
GraphicsPen
MediaCtrl
MediaEvent
PrinterDC
** Invoke default (first_time)
** Invoke lib/wxruby2.so (first_time)
** Invoke obj/AboutDialogInfo.o (first_time, not_needed)
** Invoke src/AboutDialogInfo.cpp (first_time, not_needed)
** Invoke swig/classes/AboutDialogInfo.i (first_time, not_needed)
[…a lot of successfull stuff…]
** Invoke
/root/myDir/wx/wxruby-2_0_1_SRC/swig/classes/include/wxEvtHandler.h
(not_needed)
** Invoke
/root/myDir/wx/wxruby-2_0_1_SRC/swig/classes/include/wxWindow.h
(not_needed)
** Invoke
/root/myDir/wx/wxruby-2_0_1_SRC/swig/classes/include/wxGLCanvas.h
(first_time, not_needed)
** Execute obj/GLCanvas.o
g++ -c -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__
-DwxABI_VERSION=208010 -march=i586 -mtune=i686 -fmessage-length=0 -O2
-Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC
-Wno-unused-function -I. -I /usr/lib/ruby/1.8/i586-linux -o
obj/GLCanvas.o
src/GLCanvas.cpp
In file included from src/GLCanvas.cpp:2321:
src/GLCanvas.h:19: error: expected class-name before ‘,’ token
src/GLCanvas.cpp: In constructor
‘SwigDirector_wxGLCanvas::SwigDirector_wxGLCanvas(VALUE, wxWindow*,
wxWindowID,
const wxPoint&, const wxSize&, long int, const wxString&, int*, const
wxPalette&)’:
src/GLCanvas.cpp:2323: error: class ‘SwigDirector_wxGLCanvas’ does not
have any
field named ‘wxGLCanvas’
…
Line 19 of GLCanvas.h is:
class SwigDirector_wxGLCanvas : public wxGLCanvas, public Swig::Director
{