Hi Guys,

wxWidgets 3.0.1 came out last week with a few nice fixes in it.

I have hacked the Alien install files for Linux, which was quite simple. The Mac script also looks as though it is the same as Linux, so that probably works too. It may even work for Windows, but I doubt it.

The result is here: https://github.com/SteveBz/Alien-wxWidgets, on the github repository Eric set up for us. Its in the repo I called Experimental-Dev, in case there is any confusion.

Windows has a file called wxMSW-3.0.0-makefiles.patch, which varies slightly from build to build, but I don't know why, so I haven't created a wxMSW-3.0.1-makefiles.patch which I imagine is needed. In the meantime I've left the install script pointing at the 3.0.0 patch in case it might work. If Anybody who knows how it works, please say.

Sadly I don't have a Windows environment to test it on.

So if you have Alien-wxWidgets running 3.0.0, it should be quite simple to upgrade to 3.0.1. If you don't have 3.0.0, you probably need to remove your old wx files in "/usr". I do it like this, with sudo:

# Remove old wx installation (it will also remove wx-based systems!!!!) Eg wxGlade, wxPython etc. # I have avoided the removal of wxPython with the | grep -v -i python line, so if you have any other systems, put in similar lines.
cd ~
find /usr | grep -i wx | grep -v -i python | grep -v -i soffice > rm_wx.sh
sed -i -e 's/\/usr\//rm -rf \/usr\//g' rm_wx.sh
sh rm_wx.sh
cd ~

Script follows.

Good luck and please let me have any feedback.

Regards,

Steve.

#
#  Remove your previous install files.
cd ~
rm -rf Alien-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.
perl Build install
ldconfig
cd ..

# If you have removed you old wx files, you'll need to rerun these:
cpan -i Wx
cpan -i Wx::Demo
cpan -i Wx::GLCanvas
cpan -i Wx::PdfDocument

wxperl_demo.pl


Reply via email to