Hi,

On 15/09/2012 08:26, Ian Macdonald wrote:
Hi,

Pretty much like it say; after making Wx::Demo, all 50 tests fail, and
running one individually reveals the core dump.

Somewhere between setting up prerequisites and your custom build of wxWidgets, this seem to have gone awry.

This is what I did to do to get a working Ubuntu 12.04 32 bit install of Wx plus Wx::GLCanvas. I installed to system Perl using 'sudo'. Change appropriate bits to suit your requirement - except of course your wxWidgets build. Let Alien-wxWidgets build that for you.

UBUNTU PACKAGES
-------------------

Install prerequisite Ubuntu packages:

gcc
g++
libgtk2.0-dev
libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev
libglu1-mesa-dev
libexpat1-dev
libtiff4-dev
libpng12-dev
libjpeg-dev
libcairo2-dev
freeglut3-dev
libxmu-dev


INSTALL Alien-wxWidgets
--------------------------

Download Alien-wxWidgets tarball from CPAN.

(note, to avoid grief if you have broken prior installs of Alien-wxWidgets, delete them)

In extracted tarball dir.

perl Build.PL --wxWidgets-graphicscontext

Answer YES to the question 'do you want to download and build wxWidgets'. Let Alien build wxWidgets for you. Don't build using your own wxWidgets at this point. Demonstrate that building with Alien-wxWidgets works.

Answer '2.9.4' to the question which version to build.

Answer 'tar.bz2' for the archive type

Answer 'YES' to question if you want to build with OpenGL support.

perl Build
perl Build test
perl Build install


BUILDING MODULES FROM CPAN
--------------------------------

ExtUtils::ParseXS usage will fail unless we remove prior version, so we need to set up cpan to do that.

You also need to use 'force' as you will have prior installations of current version

sudo cpan

<cpan> o conf make_install_arg UNINST=1
<cpan> force install ExtUtils::ParseXS
<cpan> quit

then ..

sudo cpan -fi OpenGL
sudo cpan -fi Wx
sudo cpan -fi Wx::GLCanvas
sudo cpan -fi Wx::Demo


then ..
wxperl_demo.pl

and it all works fine.


Regards

Mark

































































Reply via email to