Specifically, because the build system's perl command is executed as "perl-native/perl" and has version 5.14.3, the PerlMagick files get installed in:
<sysroot>/usr/lib/perl-native/perl/5.14.3/
However, on the target system they should be installed in:
<sysroot>/usr/lib/perl5/5.14.3/
I'm building and installing PerlMagick with the following construct after building ImageMagick (where CC="${CC}" is for cross-compilation):
Code: Select all
./configure --with-perl
make perl-sources
cd PerlMagick
perl-native/perl Makefile.PL PREFIX="${SYSROOT}/usr" CC="${CC}"
make PREFIX="${SYSROOT}/usr" CC="${CC}"
make PREFIX="${SYSROOT}/usr" CC="${CC}" install