--- On Sun, 11/29/09, Gabor Szabo <szab...@gmail.com> wrote:

> From: Gabor Szabo <szab...@gmail.com>
> Subject: distributing wx based application in binary format for linux
> To: "wxPerl users" <wxperl-users@perl.org>
> Date: Sunday, November 29, 2009, 1:36 AM
> I am trying to build a package that
> would include a full perl
> distribution and also Padre
> which is written in wxPerl.
> 
> So far I managed to build the whole package. The first
> issue I
> encountered was that when I was trying
> to run padre on a bare-bone system it complained about
> missing
> libwx_gtk2u_core-2.8.so.0 and similar files.
> The solution was to set the following.
> 
> export
> LD_LIBRARY_PATH=$path_to_perl/lib/site_perl/5.10.1/i686-linux-thread-multi/Alien/wxWidgets/gtk_2_8_10_uni/lib/
> 
> With that I could run padre on a system similar to the one
> I used for
> building it. (both Ubuntu 9.10).
> 
> Now I moved it to an Ubuntu 9.04 and I get the following
> error:
> 
> Can't load
> '/home/gabor/perl-5.10.1-xl-0.01/perl/lib/site_perl/5.10.1/i686-linux-thread-multi/auto/Wx/Wx.so'
> for module Wx: /usr/lib/libstdc++.so.6: version
> `GLIBCXX_3.4.11' not
> found (required by
> /home/gabor/perl-5.10.1-xl-0.01/perl/lib/site_perl/5.10.1/i686-linux-thread-multi/Alien/wxWidgets/gtk_2_8_10_uni/lib/libwx_baseu-2.8.so.0)
> at
> /home/gabor/perl-5.10.1-xl-0.01/perl/lib/5.10.1/i686-linux-thread-multi/DynaLoader.pm
> line 200. at
> /home/gabor/perl-5.10.1-xl-0.01/perl/lib/site_perl/5.10.1/Padre/Splash.pm
> line 12
> 
> 
> This is where my knowledge of C compilation and linking
> ends.
> Do I need to configure further environment variables or are
> there more
> files I need to package from the build machine or do I need
> to
> compile and link wxWidgets and wxPerl in a different way?
> 
> 
> Gabor
> 

If you want a "bullet-proof" application, you need to distribute in one
package three things:

1) wxWidgets;
2) Perl knowing of the above;
3) your application.

Now, under Linux wxWidgets means wxGTK, i.e. you also need full gtk+2.*
stack in your package.

Perl since 5.10.0 can be built as relocatable executable (with all the
modules relocatable too), and I'm widely using it.

I am also routinely building wxGTK (as well as wxX11), but I do not build
wxPerl since its build system was too quirky at the time - this easily
convinced me to use gtk2-perl.sourceforge.net .

Regards,
  Sergei.


      

Reply via email to