Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Debugging Alien-wxWidgets and mediactrl
by Anonymous Monk on Aug 26, 2011 at 22:45 UTC | |
by Steve_BZ (Chaplain) on Aug 27, 2011 at 00:53 UTC | |
by Anonymous Monk on Aug 27, 2011 at 01:10 UTC | |
by Steve_BZ (Chaplain) on Aug 27, 2011 at 13:13 UTC |