Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: wxPerl and PAR

by PodMaster (Abbot)
on Aug 25, 2004 at 10:33 UTC ( [id://385636]=note: print w/replies, xml ) Need Help??


in reply to Re^2: wxPerl and PAR
in thread wxPerl and PAR

Can I get a ls /usr/lib/perl5/site_perl/5.8.5/i686-linux/auto/Wx/?

On my machine it (or the equivalent) contains a bunch of wx dlls.

I suggest you try scandeps -V yourprogram, and then pick up all the missing dll's (so's, whatever) and add then with into the resulting executable with the -l option (or however you wish, it is a zip file).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^4: wxPerl and PAR
by busunsl (Vicar) on Aug 25, 2004 at 10:46 UTC
    ll /usr/lib/perl5/site_perl/5.8.5/i686-linux/auto/Wx/
    total 1844 drwxr-xr-x 15 root root 4096 Aug 25 11:57 . drwxr-xr-x 8 root root 4096 Aug 25 08:37 .. -rw-r--r-- 1 root root 5707 Aug 25 11:57 .packlist drwxr-xr-x 2 root root 4096 Aug 25 11:57 Calendar drwxr-xr-x 2 root root 4096 Aug 25 11:57 DND drwxr-xr-x 2 root root 4096 Aug 25 11:57 DateTime drwxr-xr-x 2 root root 4096 Aug 25 11:57 DocView drwxr-xr-x 2 root root 4096 Aug 25 11:57 FS drwxr-xr-x 2 root root 4096 Aug 25 11:57 Grid drwxr-xr-x 2 root root 4096 Aug 25 11:57 Help drwxr-xr-x 2 root root 4096 Aug 25 11:57 Html drwxr-xr-x 2 root root 4096 Aug 25 11:57 MDI drwxr-xr-x 2 root root 4096 Aug 25 11:57 Print drwxr-xr-x 2 root root 4096 Aug 25 11:57 STC drwxr-xr-x 2 root root 4096 Aug 25 11:57 Socket -r--r--r-- 1 root root 0 Aug 25 08:25 Wx.bs -r-xr-xr-x 1 root root 1813673 Aug 25 11:56 Wx.so drwxr-xr-x 2 root root 4096 Aug 25 11:57 XRC
    There are no .so's at all, apart from Wx.so.

    scandeps -V hello.pl gives the following:

    # AutoLoader.pm [module] # Carp.pm [module] # Carp/Heavy.pm [module] # Config.pm [module] # DynaLoader.pm [module] # Exporter.pm [module] # Exporter/Heavy.pm [module] # File/Glob.pm [module] # List/Util.pm [module] # Scalar/Util.pm [module] # Term/Cap.pm [module] # Text/ParseWords.pm [module] # Thread.pm [module] # Tie/Handle.pm [module] # Wx.pm [module] # Wx/App.pm [module] # Wx/Event.pm [module] # Wx/Locale.pm [module] # Wx/Menu.pm [module] # Wx/RadioBox.pm [module] # Wx/Region.pm [module] # Wx/Timer.pm [module] # Wx/Wx_Exp.pm [module] # XSLoader.pm [module] # auto/DynaLoader/autosplit.ix [autoload] # auto/DynaLoader/dl_expandspec.al [autoload] # auto/DynaLoader/dl_find_symbol_anywhere.al [autoload] # auto/DynaLoader/dl_findfile.al [autoload] # auto/DynaLoader/extralibs.ld [autoload] # auto/File/Glob/Glob.bs [data] # auto/File/Glob/Glob.so [shared] # auto/List/Util/Util.bs [data] # auto/List/Util/Util.so [shared] # auto/Wx/Wx.bs [data] # auto/Wx/Wx.so [shared] # auto/re/re.bs [data] # auto/re/re.so [shared] # auto/threads/shared/shared.bs [data] # auto/threads/shared/shared.so [shared] # overload.pm [module] # re.pm [module] # strict.pm [module] # threads/shared.pm [module] # vars.pm [module] # warnings.pm [module] # warnings/register.pm [module] 'Wx' => '0', # X ? # 'Wx::Event' => '0', # ? # 'Wx::App' => '0', # ? # Wx 'Wx::Locale' => '0', # ? # Wx 'Wx::Menu' => '0', # ? # Wx 'Wx::RadioBox' => '0', # ? # Wx 'Wx::Region' => '0', # ? # Wx 'Wx::Timer' => '0', # ? # Wx 'Wx::Wx_Exp' => '0', # ? # Wx
    There are no .so's to pick. :-(

    Is this a problem with my PAR installation?

      Is this a problem with my PAR installation?
      I doubt it. Do you have the latest PAR/Module::ScanDeps? Is that the static or the dynamic wxPerl build? If it's the static build I wouldn't expect to find any extra .so's, so you have to by whatever means neccessary figure out what the missing .so's are, and add them with -l. scandeps generally works. I don't know what else to use on unix (on win32 I'd use dependency walker).

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        Do you have the latest PAR/Module::ScanDeps?
        Yes, fresh from CPAN.

        Is that the static or the dynamic wxPerl build?
        Dynamic, because static builds do not run at all.

        If I include libwx_gtk_2.4.2.so with the -l option everything is ok. I suppose that's the way to go for me.

        Many thanks for the help!

        p.s.: I have some more PAR questions, but they will live in their own threads ;-)

        Adding libwx_gtk-2.4.so with the -l option does not work as expected :-(

        I create the PAR executable with
        pp -l /usr/local/lib/libwx-gtk_-2.4.so -o hello hello.pl

        When I run hello I get the following error:
        Can't load /tmp/par-bernd/cache-deadbeef/1234abcd.so for module Wx: library libwx-gtk_-2.4.so: cannot open shared object file: No such file or directory

        After that the cache directory is filled with everything that is needed (perl modules, so's).

        The second try to run hello succeeds.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://385636]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found