- Whoops, missed list.

Hi Shawn,

Did you ever get Wx::Panel working satisfactorily and tabbing sorted out?
Even now I find that if I'm using some controls like wxScrollingWindow, for
example, I still have to add an *extra* wxPanel, to get tabbing working
properly within it.

Anyhow, Wx::Media. Is this the same as Wx::MediaCtrl?  I had no idea you
could install it separately from the rest of Wx.  It has lots of other wx
commands embedded within it, like wxString etc.  So I would guess you need
the whole distribution.

Why do you not just use "cpan -i Wx" or "cpan -if Wx" (install with force)?

This error message "Can't locate Wx/Media.pm" means wxMediaCtrl is not
installed.  If you look back within your installation script output (what
you call '...') you'll find two cryptic error messages one goes something
like (and this is from memory):

Entering directory media.
Nothing to do for 'all'.
Leaving directory media.

Which means that your 'make' is not doing anything for wxMediaCtrl.

The second goes something like (and again from memory):

... Media .... not installed some functionality will be missing.

Some common problems with wxMediaCtrl follow:

What version of Linux are you using?  I have had difficulty with wxMediaCtrl
with (K)Ubuntu 10.10 and 11.04 - 9.04, 9.10 and 10.04 work fine.  I haven't
tried 11.10 if it's out yet.  You can get past the above error message on
10.10 and 11.04, but I have not got it to run satisfactorily.  Best results
are with 9.04, 9.10 and 10.04.

Finally there are some dependencies for wxMediaCtrl.  If you don't install
these manually first nothing will work.

I have a list here, but I don't recall which are mandatory and which I need
for my purposes.  Try the following first:

apt-get -y install libgconf2-dev
apt-get -y install libgtk2.0-dev
apt-get -y install libgstreamer0.10-0 
apt-get -y install libgstreamer0.10-dev
apt-get -y install libgstreamer-plugins-base0.10-0 
apt-get -y install libgstreamer-plugins-base0.10-dev 

Then run "cpan -i Wx".

If it still doesn't work get back to the list and I'll think again.

Good luck.

Regards

Steve



-----Original Message-----
From: Shawn H Corey [mailto:shawnhco...@gmail.com] 
Sent: 18 October 2011 12:47
To: wxperl-users@perl.org
Subject: Interesting Error

I got an interesting error today.  How do I fix it?

$ cpan Wx::Media
CPAN: Storable loaded ok (v2.30)
Reading '/home/shawn/.cpan/Metadata'
   Database was generated on Tue, 18 Oct 2011 07:42:53 GMT
Running install for module 'Wx::Media'
Running make for M/MD/MDOOTSON/Wx-0.9902.tar.gz

...

PERL_DL_NONLAZY=1 /home/shawn/perl5/perlbrew/perls/perl-5.14.2/bin/perl 
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 
'blib/arch')" t/*.t
t/01_load.t ........... 1/6 Can't locate Wx/Media.pm in @INC (@INC 
contains: /home/shawn/.cpan/build/Wx-0.9902-lebFy6/blib/lib 
/home/shawn/.cpan/build/Wx-0.9902-lebFy6/blib/arch 
/home/shawn/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/x86_64-lin
ux-thread-multi 
/home/shawn/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 
/home/shawn/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-
multi 
/home/shawn/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at (eval 19) 
line 1.
BEGIN failed--compilation aborted at (eval 19) line 1.
BEGIN failed--compilation aborted at t/01_load.t line 14.
# Looks like you planned 6 tests but ran 1.
# Looks like your test exited with 2 just after 1.




-- 
Just my 0.00000002 million dollars worth,
   Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

"Make something worthwhile."  -- Dear Hunter

Reply via email to