<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.3">
</HEAD>
<BODY>
Hi All,<BR>
<BR>
Now ruby is not able to load wxruby2 library :( <BR>
<BR>
<FONT COLOR="#0000ff">root@imayam:/work/wxruby/wxruby2/samples# irb</FONT><BR>
<FONT COLOR="#0000ff">irb(main):001:0&gt; require 'wx'</FONT><BR>
<FONT COLOR="#0000ff">Unable to load wxruby. Searched</FONT><BR>
<FONT COLOR="#0000ff">/usr/lib/ruby/site_ruby/1.8</FONT><BR>
<FONT COLOR="#0000ff">/usr/lib/ruby/site_ruby/1.8/i686-linux</FONT><BR>
<FONT COLOR="#0000ff">/usr/lib/ruby/site_ruby</FONT><BR>
<FONT COLOR="#0000ff">/usr/lib/ruby/1.8</FONT><BR>
<FONT COLOR="#0000ff">/usr/lib/ruby/1.8/i686-linux</FONT><BR>
<BR>
I have checked that the wxruby2 libraries are indeed present in the search path.<BR>
<BR>
<FONT COLOR="#0000ff">root@imayam:/usr/lib/ruby/site_ruby/1.8/i686-linux# ls wx*</FONT><BR>
<FONT COLOR="#0000ff">wx.rb&nbsp; wxruby2.so</FONT><BR>
<BR>
I then tried to load wxruby2 directly and got this<BR>
<BR>
<FONT COLOR="#0000ff">irb(main):002:0&gt; require 'wxruby2'</FONT><BR>
<FONT COLOR="#0000ff">LoadError: libwx_gtk2_xrc-2.6.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from (irb):2</FONT><BR>
<BR>
So it looks like there is something wrong with my WxGTK installation? I compiled WxWidgets 2.6.3 from source.<BR>
<BR>
<FONT COLOR="#0000ff">root@imayam:/work/wxruby/wxruby2/samples# wx-config --version</FONT><BR>
<FONT COLOR="#0000ff">2.6.3</FONT><BR>
<BR>
If I am not able to resolve this issue, Kevin do you mind sending me the link to static linked gem you were mentioning? I would be happy to test it out. <BR>
<BR>
Cheers,<BR>
Ganesh Gunasegaran.<BR>
<BR>
On Sun, 2006-08-20 at 19:31 +0530, Ganesh Gunasegaran wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Kevin,</FONT>

<FONT COLOR="#000000">Thanks for the reply. The problem seems to be in the SWIG version I had.</FONT>
<FONT COLOR="#000000">I happened to have SWIG 1.3.27 installed thro' Synaptic Package</FONT>
<FONT COLOR="#000000">Manager. </FONT>

<FONT COLOR="#000000">I downloaded and compiled SWIG 1.3.29 from source and then ran rake.</FONT>
<FONT COLOR="#000000">WxRuby compilation went thro' just fine.</FONT>

<FONT COLOR="#000000">Cheers,</FONT>
<FONT COLOR="#000000">Ganesh Gunasegaran.</FONT>

<FONT COLOR="#000000">On Sat, 2006-08-19 at 10:10 -0400, Kevin Smith wrote:</FONT>
<FONT COLOR="#000000">&gt; On Sat, 2006-08-19 at 17:07 +0530, Ganesh Gunasegaran wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt; Hi All,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Hi, and thanks for trying wxRuby.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; I am trying to compile WxRuby on Ubuntu 6.06. I checked out the latest</FONT>
<FONT COLOR="#000000">&gt; &gt; source code from CVS and ran 'rake' under the wxruby2 directory. I am</FONT>
<FONT COLOR="#000000">&gt; &gt; getting the following error.</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; root@imayam:/work/wxruby/wxruby2# rake</FONT>
<FONT COLOR="#000000">&gt; &gt; (in /work/wxruby/wxruby2)</FONT>
<FONT COLOR="#000000">&gt; &gt; rake aborted!</FONT>
<FONT COLOR="#000000">&gt; &gt; Don't know how to build task 'src/App.cpp'</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Very strange. I also use Ubuntu 6.06. Actually, I have it on my desktop</FONT>
<FONT COLOR="#000000">&gt; (where I do wxruby development) and my laptop, where I have not done any</FONT>
<FONT COLOR="#000000">&gt; wx development. So I tried to compile wxruby2 on my laptop, and here are</FONT>
<FONT COLOR="#000000">&gt; my notes:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; - Used cvs to checkout the wxruby2 module from rubyforge</FONT>
<FONT COLOR="#000000">&gt; - I already had rake 0.6.2 installed, so I used it</FONT>
<FONT COLOR="#000000">&gt; - Downloaded swig 1.3.29, ran ./configure; make; sudo make install</FONT>
<FONT COLOR="#000000">&gt; - Obtained libwxgtk2.6-dev package using Synaptic (apt)</FONT>
<FONT COLOR="#000000">&gt; - Obtained ruby1.8-dev package using Syaptic (apt)</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; At that point, rake successfully started to build wxruby2, going well</FONT>
<FONT COLOR="#000000">&gt; past App.cpp. I upgraded rake to 0.7.1 (gem update rake), and it still</FONT>
<FONT COLOR="#000000">&gt; seemed to work. (I got a compile error in RubyConstants.cpp because of</FONT>
<FONT COLOR="#000000">&gt; wxID_NONE, which I will look into now. Might be a wx 2.6.1 vs. 2.6.3</FONT>
<FONT COLOR="#000000">&gt; thing).</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; (See full trace by running task with --trace)</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; It would probably help if you could run rake --trace to get more</FONT>
<FONT COLOR="#000000">&gt; details.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; 3. SWIG</FONT>
<FONT COLOR="#000000">&gt; &gt; root@imayam:/work/wxruby/wxruby2# swig -version</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; SWIG Version 1.3.27</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Unfortunately, we require SWIG 1.3.29, as it has some very substantial</FONT>
<FONT COLOR="#000000">&gt; improvements over 1.3.27. I don't think this should cause the particular</FONT>
<FONT COLOR="#000000">&gt; error you are seeing, however.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; 5. WxWidgets</FONT>
<FONT COLOR="#000000">&gt; &gt; root@imayam:/work/wxruby/wxruby2# wx-config --version</FONT>
<FONT COLOR="#000000">&gt; &gt; 2.6.1</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; I normally use 2.6.3, but 2.6.1 may work. Even if not, this should not</FONT>
<FONT COLOR="#000000">&gt; cause the rake error you are seeing.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Please let me know if I am missing something or if I need to install</FONT>
<FONT COLOR="#000000">&gt; &gt; any other prerequisites. I am seriously considering WxRuby for my</FONT>
<FONT COLOR="#000000">&gt; &gt; inhouse projects and eventually write a self published book. </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Great. I believe we will be able to get it working for you.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Kevin</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt; wxruby-users mailing list</FONT>
<FONT COLOR="#000000">&gt; <A HREF="mailto:wxruby-users@rubyforge.org">wxruby-users@rubyforge.org</A></FONT>
<FONT COLOR="#000000">&gt; <A HREF="http://rubyforge.org/mailman/listinfo/wxruby-users">http://rubyforge.org/mailman/listinfo/wxruby-users</A></FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">wxruby-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:wxruby-users@rubyforge.org">wxruby-users@rubyforge.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://rubyforge.org/mailman/listinfo/wxruby-users">http://rubyforge.org/mailman/listinfo/wxruby-users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>