Forum: wxRuby wxRuby 2.0.1 on Fedora 11

C63ecf3a72d48ae51a34abe526c5a5c9?d=identicon&s=25 Allan Davis (Guest)
on 2009-09-11 05:40
(Received via mailing list)
I just installed wxruby and tryed to run the minimal test.  This is the
result i get


ruby -rubygems minimal.rb
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
symbol
_ZN13wxAuiNotebook14ShowWindowMenuEv, 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.1-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.1-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 have wxgtk 2.8.10 installed.  am i missing somthing? what can i do to
fix
this?

Thanks
Allan
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2009-09-11 06:43
(Received via mailing list)
Hello Allan,

I am getting the same thing on DreamLinux, which is a Debian based
Distro,
with Ruby based system management scripts.  Only my error is slightly
different then yours:

LoadError: /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
symbol _ZN9wxListBox13EnsureVisibleEi, version WXU_2.8 not defined in
file
libwx_gtk2u_core-2.8.so.0 with link time reference -
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
    from /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
    from (irb):2
    from :0

The Version I had installed at the time was wxGTK 2.8.7, which is the
default in the Lenny Apt Repos.  After I followed some instructions on
how
to get 2.8.10, I removed the previous install, and installed 2.8.10, and
everything works, so you will need 2.8.10 in order to run the gem, or
build
from source.  I do believe there are some yum repos out there, that have
wxGTK 2.8.10, you just need to look them up on google.  Once you get the
2.8.10 version installed, you should be able to run the gem without any
problems.

HTH,

Mario
423a9be451f61e7211e7c7c4cd57831e?d=identicon&s=25 Anton Maminov (mamantoha)
on 2009-09-27 15:21
On Ubuntu 9.10 with ruby 1.8.6 and 1.9.1

/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: symbol
_ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not defined in
file libwx_gtk2u_aui-2.8.so.0 with link time reference -
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so (LoadError)

/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx.rb:12:in
`require':
/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so:
symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not
defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference -
/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so
(LoadError)
Ea3022ecf148ec5509e409568379b810?d=identicon&s=25 Steve cd (stiev3)
on 2009-10-23 05:05
Ran into this today on Ubuntu 9.10, ruby 1.8.7.  Not having much success
finding solutions.

/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, 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.1-x86-linux/lib/wxruby2.so
(LoadError)
Ea3022ecf148ec5509e409568379b810?d=identicon&s=25 Steve cd (stiev3)
on 2009-10-23 15:38
After reading around, I've tried to compile from source following the
wiki but it's not working out.

SWIG Version 1.3.36
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
wx-config --version
2.8.10

...
Class: GLCanvas
      : Window
class wxGLCanvas
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  -fno-strict-aliasing -g -g -O2  -fPIC
-Wno-unused-function   -I. -I /usr/lib/ruby/1.8/i486-linux -o
obj/GLCanvas.o src/GLCanvas.cpp
In file included from /usr/include/wx-2.8/wx/glcanvas.h:54,
                 from src/GLCanvas.cpp:2207:
/usr/include/wx-2.8/wx/gtk/glcanvas.h:19:19: error: GL/gl.h: No such
file or directory
/usr/include/wx-2.8/wx/gtk/glcanvas.h:20:20: error: GL/glx.h: No such
file or directory
/usr/include/wx-2.8/wx/gtk/glcanvas.h:21:20: error: GL/glu.h: No such
file or directory
In file included from /usr/include/wx-2.8/wx/glcanvas.h:54,
                 from src/GLCanvas.cpp:2207:
/usr/include/wx-2.8/wx/gtk/glcanvas.h:47: error: ‘GLXContext’ does not
name a type
/usr/include/wx-2.8/wx/gtk/glcanvas.h:124: error: ISO C++ forbids
declaration of ‘GLXFBConfig’ with no type
/usr/include/wx-2.8/wx/gtk/glcanvas.h:124: error: expected ‘;’ before
‘*’ token
rake aborted!
Command failed with status (1): [g++  -c
-I/usr/lib/wx/include/gtk2-unicod...]
9896e498ca22b3b0180424928eedef68?d=identicon&s=25 Walter Walter (walter1)
on 2009-11-06 12:27
Steve cd wrote:
> Ran into this today on Ubuntu 9.10, ruby 1.8.7.  Not having much success
> finding solutions.
>
> /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
> /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
> symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, 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.1-x86-linux/lib/wxruby2.so
> (LoadError)

I had a similar problem. I has installed libwxgtk2.8-dbg and
wx2.8-headers. Nowadays all work successfully.
09f82f69da7103f7f4a9df7c9e18506f?d=identicon&s=25 Nome Cognome (nexol)
on 2010-01-08 11:14
This is a Google translation.

My system is:
- Ubuntu 9.10,
- C++ compiler version g++-4.4.1-4ubuntu8,
- wx 2.8.10,
- Swig 1.3.38,
- Ruby 1.9.1p376,
- wxRuby 2.0.1.

Everything's fine until the compilation and installation of SWIG as
indicated in the Guide
http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingO...,
when compiling wxRuby 2.0.1, it ends with a large number of warnings and
errors, citing the end:

/usr/include/GL/glxext.h:847: error: typedef
‘PFNGLXENUMERATEVIDEODEVICESNVPROC’ is initialized (use decltype
instead)
/usr/include/GL/glxext.h:847: error: ‘Display’ was not declared in this
scope
/usr/include/GL/glxext.h:847: error: ‘dpy’ was not declared in this
scope
/usr/include/GL/glxext.h:848: error: expected primary-expression before
‘int’
/usr/include/GL/glxext.h:849: error: expected primary-expression before
‘int’
/usr/include/GL/glxext.h:850: error: typedef
‘PFNGLXBINDVIDEODEVICENVPROC’ is initialized (use decltype instead)
/usr/include/GL/glxext.h:850: error: ‘Display’ was not declared in this
scope
/usr/include/GL/glxext.h:850: error: ‘dpy’ was not declared in this
scope
/usr/include/GL/glxext.h:851: error: expected primary-expression before
‘unsigned’
/usr/include/GL/glxext.h:852: error: expected primary-expression before
‘unsigned’
/usr/include/GL/glxext.h:853: error: expected primary-expression before
‘const’
src/GLCanvas.cpp: In function ‘VALUE _wrap_new_wxGLCanvas(int, VALUE*,
VALUE)’:
src/GLCanvas.cpp:2742: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp:2748: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp:2799: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp:2819: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp:2822: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp: In function ‘VALUE _wrap_wxGLCanvas_SetCurrent(int,
VALUE*, VALUE)’:
src/GLCanvas.cpp:2872: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp: In function ‘VALUE _wrap_wxGLCanvas_SetColour(int,
VALUE*, VALUE)’:
src/GLCanvas.cpp:2896: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp:2901: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp: In function ‘VALUE _wrap_wxGLCanvas_SwapBuffers(int,
VALUE*, VALUE)’:
src/GLCanvas.cpp:2922: warning: format not a string literal and no
format arguments
src/GLCanvas.cpp: In function ‘VALUE _wrap_disown_wxGLCanvas(int,
VALUE*, VALUE)’:
src/GLCanvas.cpp:2943: warning: format not a string literal and no
format arguments
rake aborted!
Command failed with status (1): [g++  -c
-I/usr/lib/wx/include/gtk2-unicod...]

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


I also tried to install libwxgtk2.8-dbg and wx2.8-headers, but the
result does not change. Can you help me in any way?
For example, you can have a Ruby gem that is specific to Ubuntu 9.10
help non-expert like me to compile from source?
wxRuby is a great and beautiful GUI toolkit for the Ruby, I regret very
much not using it.

Thanks to all and please excuse the bad English.
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2010-01-08 12:57
(Received via mailing list)
To all:

You can download the version of wxRuby 2.0.1 that I have compiled
specifically for Ubuntu 9.10.  This version was compiled for Ruby 1.8.7
p174, which is the default available in the Ubuntu Repositories.  Run
the
following commands in your Console:

wget http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem
sudo gem install --local wxruby-2.0.1-x86-linux.gem
sudo apt-get install libwxgtk2.8-0 libwxbase2.8-0

irb
require 'rubygems'
require 'wx'
exit

If everything installed properly, the above irb require statements
should
have outputted 2 "=> true" results.  Which means that wxRuby is now
installed, and working for you.


hth,

Mario

P.S.  Anyone looking for a version for Ruby 1.9 series of interpreter,
let
me know, and I'll get a compile out there.
09f82f69da7103f7f4a9df7c9e18506f?d=identicon&s=25 Nome Cognome (nexol)
on 2010-01-08 15:28
Mario Steele wrote:
P.S.  Anyone looking for a version for Ruby 1.9 series of interpreter,
> let
> me know, and I'll get a compile out there.

Hello Mario. I would be really grateful if you could have a version of
wxRuby for Ruby 1.9 series of interpreter.

Thanks in advance. :)
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2010-01-08 16:14
(Received via mailing list)
I will work on it tonight, and hopefully have it then.  I will send an
email
out when I get it done.
09f82f69da7103f7f4a9df7c9e18506f?d=identicon&s=25 Nome Cognome (nexol)
on 2010-01-18 09:09
Mario Steele wrote:
> I will work on it tonight, and hopefully have it then.  I will send an
> email
> out when I get it done.

Hi Mario. Any news on this?

Thanks.
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2010-01-18 14:59
(Received via mailing list)
My apologizes Nome,

I had been working on upgrading my system, and getting Ruby 1.9 gem made
was
on the back burner.  I have finished it, after I got everything setup
again
with the new hardware.

http://www.trilake.net/wxRuby/wxruby-ruby19-2.0.1-...

This gem will be compatible with Ubuntu 9.10, with everything (Except
SWIG),
taken directly from the Repositories.  If you have any problems with
this
version, please feel free to let me know.

Remember to install via:

sudo gem1.9 install --local wxruby-ruby19-2.0.1-x86-linux.gem

If the gem command attains the 1.9 part, otherwise, just use the gem
command.


hth,

Mario
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2010-01-18 15:06
(Received via mailing list)
Sorry, seems that the gem is messed up, please don't download from that
URL
till I say it is alright.
09f82f69da7103f7f4a9df7c9e18506f?d=identicon&s=25 Nome Cognome (nexol)
on 2010-03-19 09:52
Mario Steele wrote:
> Sorry, seems that the gem is messed up, please don't download from that
> URL
> till I say it is alright.

I do not lose hope. :)
Bye bye.
09f82f69da7103f7f4a9df7c9e18506f?d=identicon&s=25 Nome Cognome (nexol)
on 2010-03-24 18:58
Nome Cognome wrote:
> This is a Google translation.
>
> My system is:
> - Ubuntu 9.10,
> - C++ compiler version g++-4.4.1-4ubuntu8,
> - wx 2.8.10,
> - Swig 1.3.38,
> - Ruby 1.9.1p376,
> - wxRuby 2.0.1.
>
> Everything's fine until the compilation and installation of SWIG as
> indicated in the Guide
> http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingO...,
> when compiling wxRuby 2.0.1, it ends with a large number of warnings and
> errors, citing the end:
>
> src/GLCanvas.cpp:2943: warning: format not a string literal and no
> format arguments
> rake aborted!
> Command failed with status (1): [g++  -c
> -I/usr/lib/wx/include/gtk2-unicod...]
>
> (See full trace by running task with --trace)

(This is a Google translation)

I solved! :-D
The problem exists only on Ubuntu 9.10 migrated from Ubuntu 9.04.

1) Following the instructions found at
http://wxruby.rubyforge.org/wiki/wiki.pl?Installin... on Ubuntu
9.10 new installation (in a VirtualBox virtual machine), I created a new
gem wxRuby version 2.0.1.

2) The same instructions also on Ubuntu 9.10 migrated, but before
compiling wxruby, I took the new gem created in step 1) and install this
with command:

sudo gem install --local wxruby-ruby19-2.0.1-x86-linux.gem

(I have installed only Ruby 1.9, otherwise command
sudo gem1.9 install --local wxruby-ruby19-2.0.1-x86-linux.gem)


Thanks to all, bye bye.
This topic is locked and can not be replied to.