Re: Installing on openSUSE 11.1

Hello Alex,

thank you for your help!

“make clean” returned “… no such rule …”,
so according to a collegue’s hint I deleted all o-files in
the buildgtk-dir.

I installed Mesa-Development (Mesa was already installed) and did
your suggested steps.

Unfortunately, rake ended up with the following error:

[… lot of successfull things…]
ruby swig/renamer.rb src/dc.cpp
ruby swig/fixplatform.rb src/dc.cpp
ruby swig/fixmodule.rb src/dc.cpp
Class: dc
class wxdc
ERROR! swig/fixmodule.rb Didn’t find init
rake aborted!
Command failed with status (1): [ruby swig/fixmodule.rb src/dc.cpp…]

Can you give me some help again?

Regards,
Axel

My suggestion, is to delete the entire wxruby_2_0_1_SRC directory, then
re-checkout/extract the source code, and try rake again. If that
doens’t
help, then there is some problems, more then likely a chance in the
headers,
then what we are using. Check to see what version of wxGTK/Base you
have
installed, and ensure that it is one that we support. If it is, it may
be
that SUSE made modifications to the headers, that are incompatable with
what
we use to do the compile.

If need be, I’ll fire up my Virtual Box, install openSUSE on it, and see
if
I can get a compile of wxRuby going for openSUSE.

On Thu, Oct 29, 2009 at 7:55 AM, Friedrich, Axel
<[email protected]

Hello Mario,

My suggestion, is to delete the entire wxruby_2_0_1_SRC
directory, then re-checkout/extract the source code, and try
rake again.

I did it. It gives me an error again:

[… lot of successfull lines…]
ruby swig/renamer.rb src/dc.cpp
ruby swig/fixplatform.rb src/dc.cpp
ruby swig/fixmodule.rb src/dc.cpp
Class: dc
class wxdc
ERROR! swig/fixmodule.rb Didn’t find init
rake aborted!
Command failed with status (1): [ruby swig/fixmodule.rb src/dc.cpp…]

Check to see what version of wxGTK/Base you have installed,
and ensure that it is one that we support.

Don’t know, how to look for this version number. I looked
into YAST (repository manager) and found, that wxGTK
(description: " … for development…") was unckecked
(= not installed).
I installed it from the openSUSE-DVD,
deleted wxRuby-SRC,
placed a new copy of wxRuby-SRC,
and run again ‘rake’.
This time, rake stopped almost immediately with this error:

rake
(in /root/.local/share/Trash/files/wxruby-2_1.0.1)
Enabling STATIC build
Enabling RELEASE build
Enabling UNICODE build
The following wxWidgets features are not available and will be skipped:
MediaCtrl
MediaEvent
PrinterDC
StyledTextCtrl
StyledTextEvent
g++ -c -I/usr/local/lib/wx/include/gtk2-unicode-release-static-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
-oobj/dc.o src/dc.cpp
src/dc.cpp: In function ‘void Init_wxDC()’:
src/dc.cpp:7576: error: ‘mWxdc’ was not declared in this scope
rake aborted!
Command failed with status (1): [g++ -c
-I/usr/local/lib/wx/include/gtk2-…]

Not so easy, for Windows users…

Axel