Hi,

This is the error I get when I tried this :

'Can\'t load \'auto/Drivers/xxxDriver/xxxDriver.so\

The following files are only created by Inline :

xxxDriver.inl  &
xxxDriver.jdat files are created.

Any ideas ?

Thanks.

-Radha

>
>
> Hi,
>
> We use ActiveState PDK to create a binary of our perl application.
> I have read in PDK discussion boards that they don't support
integration
> of Inline modules.

Yes - I believe that's so. You need to turn your Inline-dependent module
into one that's *not* dependent on Inline.

Keep in mind that if you build with the config option
'CLEAN_AFTER_BUILD=>0'
you can go into the build directory (after building the module)and grab
the
xs file that Inline created and use it to create a module that doesn't
rely
on Inline. The XS file that you find there needs some minor editing -
the
'MODULE' name and the 'PACKAGE' name are probably not what you want.

See the 'How do I create a binary distribution using Inline?' section of
'perldoc Inline-FAQ' for some ideas of what's needed.

If you just want to grab the binaries and use them without re-building
the
module then here's an account of what's needed (from someone else who
was
also wanting to use an Inline-built module with PDK's PerlApp):

-- start quote --
The Solution:
1. Read up on Question 3 on the FAQ. Following steps 1+2+3.
2. Within the 'use Inline' config hash, add the following parameter:
CLEAN_AFTER_BUILD    => 0
This is an important line.
3. Write a simple piece of code that will cause the module to be
compiled using inline.
4. Expect a subdirectory called _Inline/, with a huge bunch of
subdirectories under it.
5. Follow _Inline/build/ until you see the auto/ subdirectory. Copy this
directory and everything under it to your installation of Perl,
typically at
C:/Perl/Site/Lib/. There should be an existing auto/ already.
6. Now you need to point your original Perl module to the compiled
library. Take out the 'use Inline' line. Add the following lines
instead:
require DynaLoader;
our @ISA = qw (DynaLoader);
bootstrap <package name>;
-- end quote --

Alternatively you could use PAR's pp utility (download PAR from CPAN) to
build the exe - but I think you'll still need to package the
_Inline/build/
directory with the exe that pp builds. (Though 'pp' might have a switch
that
helps with that aspect .... not sure.)

Cheers,
Rob

Reply via email to