Failed to package Wx/Frame under Linux

54 views
Skip to first unread message

Árpád Szász

unread,
Dec 20, 2013, 1:29:45 PM12/20/13
to cava-p...@googlegroups.com
Hello,

While packaging a wxPerl app that packages without problem on Windows, I get the following error on Linux while running the "diagnostic" utility on the binary:

[...]
VERBOSE PID 7619 - 20:23:24 : Missing module required : Wx/Frame.pm : is not packaged
VERBOSE PID 7619 - 20:23:24 : Application has ended.

I manually added the "Wx::Frame" module to the list of "Force Include Modules, but it isn't picked up.

Any help appreciated. Thanks!

Johan Vromans

unread,
Dec 20, 2013, 5:15:52 PM12/20/13
to cava-p...@googlegroups.com
Check the paths for perl includes.

Also, for wxPerl applications, it is usually much handier to use one of
the CitrusPerl distributions.

-- Johan

Árpád Szász

unread,
Dec 21, 2013, 3:01:27 AM12/21/13
to cava-p...@googlegroups.com
 Thanks for your answer. Unfortunately I can't use CitrusPerl because it fails
installing some modules my application needs, like Moose.

 When running my project in CavaPackager, it correctly bundles other Wx modules
so the @INC paths are ok. I don't understand why it doesn't package W::Frame too.

Árpád Szász

unread,
Dec 21, 2013, 7:48:35 AM12/21/13
to cava-p...@googlegroups.com
 OK, I managed to install Citrus Perl on my Linux box, however after packaging my
application using Cava Packager (configured to use the new Citrus Perl) I still get
the error that Wx::Frame is not packaged.

 Will try to reduce this to a test case before submitting a bug report.

Johan Vromans

unread,
Dec 21, 2013, 11:31:33 AM12/21/13
to cava-p...@googlegroups.com
Árpád Szász <arpad...@plenum.ro> writes:

> OK, I managed to install Citrus Perl on my Linux box, however after
> packaging my
> application using Cava Packager (configured to use the new Citrus Perl) I
> still get
> the error that Wx::Frame is not packaged.
>
> Will try to reduce this to a test case before submitting a bug report.

I seem to recall that Wx::Frame is handled by special rules. Do you have
the latest module rules installed?

-- Johan


Arpad Szasz

unread,
Dec 22, 2013, 12:14:19 PM12/22/13
to cava-p...@googlegroups.com
Yes, the rules are updated to the latest. I tested running the Windows build in
diagnostic mode and it too complains about Wx::Frame not being packaged, but
it correctly start the application.

The last line "application has ended" makes me to believe that it might not even
be related to not packaging Wx::Frame.



-- Johan


--
You received this message because you are subscribed to a topic in the Google Groups "Cava Packager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cava-packager/HEEmV6tYUfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cava-package...@googlegroups.com.
To post to this group, send email to cava-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/cava-packager.
For more options, visit https://groups.google.com/groups/opt_out.



--
 Cu respect,
 Árpád Szász

Johan Vromans

unread,
Dec 22, 2013, 3:32:15 PM12/22/13
to cava-p...@googlegroups.com
Arpad Szasz <arpad...@plenum.ro> writes:

> Yes, the rules are updated to the latest. I tested running the Windows
> build in diagnostic mode and it too complains about Wx::Frame not
> being packaged, but it correctly start the application.

Did you accidentally use Wx::Frame explicitly?

Wx::Frame is not a real (loadable module). You cannot say

use Wx::Frame;

But you can say:

use base qw(Wx::Frame);

-- Johan

Árpád Szász

unread,
Dec 23, 2013, 5:14:41 AM12/23/13
to cava-p...@googlegroups.com
 I didn't use Wx::Frame explicitly, I inherited from it using Moose. This is how
my modules start:

use Moose;
use MooseX::NonMoose;
use Wx ':everything';
use Wx::Event ':everything';
use Wx::XRC;
extends 'Wx::Frame';

Árpád Szász

unread,
Dec 24, 2013, 4:41:38 AM12/24/13
to cava-p...@googlegroups.com
 Found out the problem: the "Resources" directory was not mapped in CavaPackager
Linux' settings and is silently failed. I can confirm this is fixed now.

Johan Vromans

unread,
Dec 24, 2013, 7:44:06 AM12/24/13
to cava-p...@googlegroups.com
Árpád Szász <arpad...@plenum.ro> writes:

> Found out the problem: the "Resources" directory was not mapped in
> CavaPackager
> Linux' settings and is silently failed. I can confirm this is fixed now.

Good to hear!
Reply all
Reply to author
Forward
0 new messages