Hi James:

On 01/10/14 15:32, James Lynes wrote:
I saw a few recent posts concerning an Installation Cookbook and was wondering if any more work has been done on this topic. I'd like to install the newest wxWidgets and wxPerl packages. My system Perl is v5.18.2.
I'll leave Herbert to give you an update on the Cookbook.

Regarding Citrus, I don't use it myself, however I do believe it now comes with wxWidgets 3.0.0, while the latest is wxWidgets 3.0.1. Maybe Johan or Mark can give you a better

3.0.1 does have a few bugs ironed out, but there is no formal script for installing it.

As we stand, I believe the status is as follows.

cpan -i Wx will give you 3.0.0, but I've never tested it.

My main system is on 2.8.11, but I use 3.0.1 for development, which I install with a custom script.

The script I use for installing wxWidgets 3.0.1 on a 64 bit multiprocessor architecture running Kubuntu 14.04LTS follows this email.

I just keep it in a file, logon to sudo with 'sudo -s' and type 'sh filename.sh'.

Regards,

Steve.

#!/bin/bash

cd ~

# Restart in case of crash.

dpkg --configure -a
apt-get -y update
apt-get -y upgrade

#
#    Install dependencies first.
#

#Development environment.
apt-get -y install make                 # Needed for cpan
apt-get -y install g++
apt-get -y install gcc
apt-get -y install subversion # Needed for proper Alien-wxWidgets and wxPerl apt-get -y install git # Needed for custom install Alien-wxWidgets and wxPerl

apt-get -y install libgconf2-dev libgtk-3-dev # Needed as wxMediaCtrl dependency apt-get -y install libexpat1-dev libtiff4-dev libpng12-dev libjpeg-dev libcairo2-dev libxmu-dev libwebkitgtk-dev

#Video enviroment (wxMediaCtrl dependencies)
apt-get -y install libgstreamer0.10-dev # Needed for Alien-wxWidgets and wxPerl apt-get -y install libgstreamer-plugins-base0.10-dev # Needed for Alien-wxWidgets and wxPerl

apt-get -y install cups-pdf                                  # Printing
apt-get -y install apparmor-utils
aa-complain cupsd

# Perl modules

cpan -i ExtUtils::XSpp             # Needed by wxPerl/Alien install
cpan -i ExtUtils::ParseXS        # Needed by wxPerl Makefile.PL
cpan -i XSLoader                      # Needed by wxPerl/Alien install
cpan -i Encode                        # Needed for utf-8
cpan -i Test::Pod
cpan -i ExtUtils::MakeMaker
cpan -i Pod::Coverage
cpan -i Test::Pod::Coverage

apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl1.2-dev # Install OpenGL
apt-get -y remove libwxgtk2.8-dev
apt-get -y install libwxgtk3.0-dev
apt-get autoremove
cpan -i OpenGL

# Download and install Alien-wxWidgets, which downloads and compiles wxWidgets

git clone https://github.com/SteveBz/Alien-wxWidgets
cd ~/Alien-wxWidgets
perl Build.PL \
    --wxWidgets-build=1 \
    --wxWidgets-graphicscontext \
    --wxWidgets-build-opengl=1 \
    --wxWidgets-version=3.0.1 \
    --wxWidgets-source=tar.bz2 \
    --wxWidgets-unicode=1 \
    --wx-unicode='yes' \
    --wxWidgets-build-opengl=1 \
    --wxWidgets-extraflags="--enable-graphics_ctx \
                        --disable-compat26 \
                        --enable-mediactrl \
                        --with-libjpeg=builtin \
                        --with-libpng=builtin \
                        --with-regex=builtin \
                        --with-libtiff=builtin \
                        --with-zlib=builtin \
                        --with-expat=builtin \
                        --with-libxpm=builtin \
                        --with-gtk=2\
                        --with-gtkprint"

perl Build  # Download and compile wxWidgets.
# Baseline Alien-wxWidgets on git.
git init
git add *
git commit -am "Adding Alien-wxWidgets baseline"
perl Build install
ldconfig
cd ..

cd ~
git clone https://github.com/SteveBz/wxPerl
cd ~/wxPerl
perl Makefile.PL
make
# Baseline wxPerl on git.
git init
git add ~/wxPerl
git commit -am "Adding wxPerl baseline"
make install
cd ~

# Install predecessor for Wx::PdfDocuments
cpan -i Wx::GLCanvas
cpan -i Text::Patch
cpan -i Wx::PdfDocument

# apt-get -y install python-wxglade
# apt-get -y install padre
#Perl environment
cpan -i Wx::Demo # Padre # Need to press enter




Reply via email to