Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Need help using Inline::Module with JavaScript::Embedded

by bliako (Monsignor)
on Jul 13, 2022 at 21:35 UTC ( [id://11145505]=note: print w/replies, xml ) Need Help??


in reply to Need help using Inline::Module with JavaScript::Embedded

ExtUtils::MakeMaker's Makefile.PL has a postamble sub where you can specify things to be injected into the produced Makefile. In theory you can add Makefile code to compile and install your binaries as your module is make'ed. That would be permanent. But as anonymous monk said, quickest way would be to find the XS produced and just include it in your distribution (somehow! I am a novice of XS, I can not tell you how).

BTW, when I even do whichpm JavaScript::Embedded it takes ages (18sec) to complete! 100x more than other modules.

BTW2, my compiler complains that croak(msg) (in fatal_handler of produced XS) needs a format and this croak("%s", msg) keeps it happy. Is that an Inline::C issue I wonder (perl 5.32/linux almost latest) hint-hint syphilis.

bw, bliako

Replies are listed 'Best First'.
Re^2: Need help using Inline::Module with JavaScript::Embedded
by syphilis (Archbishop) on Jul 14, 2022 at 00:49 UTC
    BTW, when I even do whichpm JavaScript::Embedded it takes ages (18sec) to complete! 100x more than other modules.

    Yes - I think it's just silently compiling the Inline::C code first.
    IMO, the Inline config should specify build_noisy => 1, so that we can see what's happening (or, at least, that *something* is happening).
    It also needs to specify a build directory something like directory => "$Config{installsitelib}/_Inline", in order to avoid the re-compilation issue cavac mentioned.
    There's a bit to work through.

    BTW2, my compiler complains that croak(msg)....

    I haven't noticed that ... something else to check.

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-29 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found