Solved: Cmake finds host perl packages,not target perl packages

I am cross-compiling zoneminder, fails on perl modules:

-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - failed
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib64/perl5/vendor_perl/DBI.pm

note system perl modules are detected.

I am sure I am missing something basic in my Makefile such as:
"CMAKE_OPTIONS += -DPERL_INCLUDE_PATH=$(STAGING_DIR)/usr/lib/perl5/5.28/CORE/" (doesn't work)

Anyone have any suggestions regarding what I am missing?

Thanks;
Bill

Add this to cmake based Makefile:

PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
include $(PERL_FEED)/perlver.mk

CMAKE_OPTIONS += -DPERL_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/usr/bin/perl
export PERL5LIB=$(STAGING_DIR)/usr/lib/perl$(PERL_MAJOR)/$(PERL_VERSION2)

open to suggestions regarding a "better way"

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.