hi Daniel,
and be aware there is traps and problems always and every where. I had
project coding a week and packaging took also a week or longer.
Especially addonig libs like libusb, image magick and so on needs
extra tweeks.
Sometimes it is easier on Mac to juts put all into the local directory
and add some codelines in the Begin section.
See at the end some illustrationg sample from my own project code (NOT
WORKING here, and without Linux extras!)
And there is still an unsolved problem using wxperl on mac. All tools
are including the wrong perl binary and the UI then is unclickable. :(
Come sempre e non solo simplice ;-)
Alexander
#
my $localdir = dirname($0); #needs use File::Basename;
if ($^O eq 'win32') {
#use Cava::Pack;
Cava::Pack::SetResourcePath("$localdir/res");
$XRCFILE = Cava::Pack::Resource('lightbox.xrc');
$logo = Cava::Pack::Resource('logo.png');
$cfgdir = Cava::Pack::Resource('cfg');
$tmpdir = "$localdir/tmp";
$logfile = "$localdir/lightbox.log";
$url = 'http://www.lacunasolutions.com';
$wwwcmd = "explorer $url";
$comport = die "comport not set in windows!";
$ENV{PATH} = $ENV{PATH} . "$localdir";
} else {
$XRCFILE = "$localdir/res/lightbox.xrc";
$logo = "$localdir/res/logo.png";
$cfgdir = "$localdir/cfg";
$tmpdir = "$localdir/tmp";
$logfile = "$localdir/lightbox.log";
$url = 'http://www.lacunasolutions.com';
$wwwcmd = "open $url";
if(-e '/dev/cu.usbserial-FTDZWBSN') { $comport = '/dev/cu.usbserial-
FTDZWBSN'; }
elsif (-e '/dev/cu.usbserial-FTDZWBLB') { $comport = '/dev/
cu.usbserial-FTDZWBLB'; }
elsif (-e '/dev/cu.usbserial-FTE33PZH') { $comport = '/dev/
cu.usbserial-FTE33PZH'; }
$ENV{PATH}='/opt/local/bin:../bin:/usr/bin:/usr/local/bin';
$ENV{PATH} = $ENV{PATH} . ':' . "$localdir";
$ENV{PATH} = $ENV{PATH} . ':' . '/opt/argyll';
}
. . . . follow your script code