Hi Guys,

Here is my latest attempt at getting Wx::MediaCtrl on Kubuntu 11.04.

First the good news. I can get the wxWidgets c++ sample code running. And I can get my webcam to stream to me from my webcam, and it records!!!

However, now having got my wxWidgets install going nicely I want to run Alien to install this as the basis of my wxPerl installation.

This is is the install for wxWidgets. There are a lot of dependencies, which I haven't shown, but these are the key commands:

# Install wxWidgets c++ modules. wget -r -nd http://tenet.dl.sourceforge.net/project/wxwindows/2.9.2/wx +Widgets-2.9.2.tar.bz2 tar -xjvf wxWidgets-2.9.2.tar.bz2 cd wxWidgets-2.9.2 mkdir build-GTK cd build-GTK ../configure --with-gtk --enable-debug --enable-mediactrl --prefix=/va +r/local/wxtesting-2.9.2/widgets make make install ldconfig # At this point stop and do some testing cd /home/image/wxWidgets-2.9.2/build-GTK/samples/mediaplayer/ make ./mediaplayer

So here we have mediaplayer running under c++.

The next bit is the bit that doesn't work:

# Alien widgets tar -xzvf wxperl-alien-3083.tar.gz mv trunk wxperl-alien-3083 cd wxperl-alien-3083 export LD_LIBRARY_PATH=/var/local/wxtesting-2.9.2/widgets/lib export PERL5LIB=/var/local/wxtesting-2.9.2/perl/lib perl Build.PL --wxWidgets-extraflags="--with-gtk --enable-debug --enab +le-mediactrl --prefix=/var/local/wxtesting-2.9.2/widgets" --wxWidgets +-build='no' --wxWidgets-version=2.9.2 --prefix=/var/local/wxtesting-2 +.9.2/perl perl Build test

This gives me:

WARNING: the following files are missing in your kit: Makefile.PL META.yml Please inform the author. Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Alien-wxWidgets' version '0.52' root@image-Adesktop:~/wxperl-alien-3083# perl Build test 'media' library not found: some functionality will be missing t/01_load.t .......... ok t/zy_pod_coverage.t .. skipped: Test::Pod::Coverage 1.00 required for +testing POD coverage t/zz_pod.t ........... skipped: Test::Pod 1.00 required for testing PO +D All tests successful. Files=3, Tests=1, 1 wallclock secs ( 0.10 usr 0.01 sys + 0.63 cusr + 0.16 csys = 0.90 CPU) Result: PASS

Note the "'media' library not found: some functionality will be missing" message.

Have I not got my paths right? I suspect not.

If I then do perl Build install I get:

make[2]: Entering directory `/home/image/WxBuild/ext/media' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/image/WxBuild/ext/media'

Which I get in every other stage of the Wx installation. Ending up with my carefully crafted wxMediaCtrl::GStreamerBackend code not making it to the final install.

What do you think guys?

I look forward to your ideas.

Question 2, I'm now trying to debug the Alien::wxWidgets Build.PL code, has anyone done this? I'd love some tips, especially any pointers to where I can find more documentation on the parameters than I can find in the module doc.

Regards

Steve


In reply to Debugging Alien-wxWidgets and mediactrl by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.