sgifford has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which uses quite a few modules, including X11::IdleTime, which can detect idle time for X11 sessions. This module, in turn, uses Inline::C.
I'm trying to bundle my application up with PAR for easy distribution. I'm running the usual PAR commands, like:
but the resulting program doesn't work.pp -o hostloc hostloc.pl
When I first ran it, I got this error:
When I removed the VERSION= option from that module, I got this error instead:The extension 'X11::IdleTime' is not properly installed in path: '/tmp/par-gifford/cache-e91f6197470cb6916bbd5973b10de787afb48eb7/inc +/lib' If this is a CPAN/distributed module, you may need to reinstall it on +your system. To allow Inline to compile the module in a temporary cache, simply rem +ove the Inline config option 'VERSION=' from the X11::IdleTime module. at -e line 874 INIT failed--call queue aborted at -e line 874, <DATA> line 1.
Error. You have specified 'C' as an Inline programming language. I currently only know about the following languages: If you have installed a support module for this language, try deleting + the config file from the following Inline DIRECTORY, and run again: /home/gifford/src/HostLoc/_Inline at -e line 874 INIT failed--call queue aborted at -e line 874.
Is there any way to make PAR and Inline::C play nicely together?
I suspect I could solve the problem by rewriting X11::IdleTime in XS. Is there an easy way to convert Inline::C code to XS?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Packaging code using Inline::C with PAR
by syphilis (Archbishop) on Sep 14, 2006 at 01:17 UTC | |
by sgifford (Prior) on Sep 14, 2006 at 03:33 UTC | |
by tsee (Curate) on Dec 01, 2006 at 22:02 UTC | |
by sgifford (Prior) on Dec 06, 2006 at 16:52 UTC |