Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Writing a Perl extension framework for Inkscape

by fdesar (Beadle)
on Jan 22, 2019 at 19:39 UTC ( [id://1228838]=note: print w/replies, xml ) Need Help??


in reply to Re: Writing a Perl extension framework for Inkscape
in thread Writing a Perl extension framework for Inkscape

But my extension is already available at https://github.com/fdesar/Origami-Ext and I wrote a command line installer. It only requires you have Active Perl installed first on your system. It even automatically download the missing Lib::LibXML module using ppm and I rewrote a mini-gettext specially for Windows (as Active State does't supply Locale::gettext) to have I18n working (Windows is a nightmare for that: they don't have AFAIK any libintl.dll available...)!

As I'm not at all (luckily) of the Windows world, I've never been interested by Perl tools on it. Could you tell me more about Strawberry Perl? Is it really easy to extract just the binaries, dlls and libs and copy them to another system without having it installed? Have you already done that?

As I use VirtualBox, it's not a problem to check it all again (I'm just running out of disk space now, but that should be ok by tomorrow) but it's just soooooo time consuming (but I have a freshly installed Windows 10 virtual box ready to speed up the process).

I just wonder if compiling the sources is not as easy finally : when I have compiled them, it's just a game to build up the extra modules via CPAN and package the whole thing... It _should_ be easy : I finally got the thing (5.28.3) compiled and installed in my Virtual box with MS-VC compiler (with just a few details about (only) 4 test failures I have to discuss further with P5P... and next step is to get Locale::gettext working on it and thats all).

But I will try again Strawberry, sure, especially if they have Locale::gettext out of the box... I was just convinced that it was not a native build and that it would require cygwin libraries to run.

  • Comment on Re^2: Writing a Perl extension framework for Inkscape

Replies are listed 'Best First'.
Re^3: Writing a Perl extension framework for Inkscape
by pryrt (Abbot) on Jan 22, 2019 at 20:03 UTC

    The strawberry portable-zip is a self-contained entity that can be unzipped wherever you want it, with the binaries all precompiled (you can download either the 32bit or the 64bit); you can look at the release notes for a given release to find out which modules come pre-bundled (for example, 5.28.1 64bit). It even includes the gcc toolchain necessary for building XS-based modules, or modules that come bundled with c-type libraries. I personally grab the PDL versions of the portable zipfiles: I don't much use PDL, but I like that it comes with a bunch of mathy libraries in places where it can easily find them, like GSL.

    To have it run, you just need the PATH to either temporarily or permanently include a few main directories: either use portableshell.bat (as Lotus1 recommended), which sets up a few environment variables for you; or you can temporarily set the PATH to include the appropriate bin-directories (as seen in portableshell.bat); or if you're launching from another application, it could change the **env argument to add those variables; or if you want your machine to always use that version of perl, permanently set your PATH variable to include those directories.

      pryrt wrote:

      [...] or you can temporarily set the PATH to include the appropriate bin-directories (as seen in portableshell.bat); or if you're launching from another application, it could change the **env argument to add those variables;

      Hi pryrt, I wasn't sure if you realized it but portableshell.bat can be used to launch Perl scripts from other applications. You can call it in place of perl.exe to run your script without actually opening a shell. All of the command line parameters are passed through portableshell.bat to perl.exe. If you don't provide any parameters then it just opens the shell. I have used this frequently from the Windows Task Scheduler as well as from other programs where I need to launch Perl scripts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-23 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found