Hi,
The 'Unknown Windows Version' error is something I'll have to provide a
workaround for in the Cava code.
Your exe crash is unrelated and occurs because no YAML module is getting
packaged by Cava.
YAML::Any does indeed call Carp::Croak (upper case) which looks like an
error in that module to me.
The error code is never entered in normal usage as YAML::XS or YAML
(etc.) exists in your Perl @INC.
The work around for you is to add
use YAML;
to the top of your EH2.pl script so that it
a) gets packaged
b) gets loaded
before YAML::Any.
(You could 'use YAML::XS;' instead if you prefer.)
Hope it helps
Mark
On 29/10/2012 11:18, Ed Kolis wrote:
> When I run Cava Packager on Windows 8 and try to build a project, I get
> these errors in the log:
>
> stderr : Unknown Windows version [2:6:2] at
> C:/PROGRA~1/CAVAPA~1.0/lib/std/Win32.pm line 530.
> stderr : Use of uninitialized value $name in concatenation (.) or string
> at C:/PROGRA~1/CAVAPA~1.0/lib/std/CF.pm line 612.
> stderr : Use of uninitialized value $data in concatenation (.) or string
> at C:/PROGRA~1/CAVAPA~1.0/lib/std/CF.pm line 612.
>
> The build completes successfully anyway, but the exe I've created crashes
> with an error:
> Undefined subroutine&Carp::Croak called at
> C:/Users/Ed/Documents/EclipseWorkspa
> ce/eh2/package/release/EH2/lib/std/YAML/Any.pm line 116.
> BEGIN failed--compilation aborted at
> C:/Users/Ed/Documents/EclipseWorkspace/eh2/
> package/release/EH2/lib/std/lib/IO_YAML.pm line 3.
> Compilation failed in require at
> C:/Users/Ed/Documents/EclipseWorkspace/eh2/pack
> age/release/EH2/lib/std/lib/IO_parse.pm line 6.
> BEGIN failed--compilation aborted at
> C:/Users/Ed/Documents/EclipseWorkspace/eh2/
> package/release/EH2/lib/std/lib/IO_parse.pm line 6.
> Compilation failed in require at
> C:/Users/Ed/Documents/EclipseWorkspace/eh2/pack
> age/release/EH2/lib/std/cavaexecscript/EH2.pl line 9.
> BEGIN failed--compilation aborted at
> C:/Users/Ed/Documents/EclipseWorkspace/eh2/
> package/release/EH2/lib/std/cavaexecscript/EH2.pl line 9.
> Not sure if the latter problem is related to the former in any way, though.
> Isn't the subroutine called Carp::croak (with a lowercase c), not
> Carp::Croak (with a capital C), anyway? Why would the YAML module be
> calling it with a capital C? The Perl script runs just fine if I run it
> normally (without packaging it as an exe)...
>
--
User Support
Cava Development Tools
Package and Distribute Perl Applications
http://www.cavapackager.com/