RE: Cann't Perl Build with wxWidget 3.0.2

2015-04-21 Thread RAPPAZ Francois
Thanks, my real problem is with the interpreter crashing
I guess I'm not the only one
http://www.perlmonks.org/?node_id=1088597

and googling some more leads me to believe I should upgrade to a newer version 
of Strawberry. 
http://grokbase.com/t/perl/wxperl-users/132ngbahqz/wx-test-failures-with-2-9-4-on-strawberry-perl

Not a simple thing to do since I have so many modules installed and working...

It would be nice if the setup explanations for wx widgets were upgrade to 
account for these:  
- gcc  4.5.x (mine is 4.4.3) 
- add header for gdiplus in your strawberry/c/include directory
- change GdiPlusMetaFile.h: //static UINT Metafile::EmfToWmfBits( -  
static UINT EmfToWmfBits(
- change GdiPlusStringFormat.h//StringTrimming StringFormat::GetTrimming() 
const -StringTrimming GetTrimming() const

François

 -Original Message-
 From: Steve Cookson [mailto:steve.cook...@sca-uk.com]
 Sent: vendredi, 17. avril 2015 17:32
 To: RAPPAZ Francois
 Cc: wxperl-users@perl.org
 Subject: Re: Cann't Perl Build with wxWidget 3.0.2
 
 Hi Francois,
 
 If you use the force install (I imagine you mean cpan -fi Wx)., it will
 just ignore any non-fatal errors, but actually we don't want any errors
 at all.  I do use the -fi option sometime if I know that the error is
 in the documentation or something, but otherwise I've never found it to
 be a sound strategy.
 
 I would really use the 2-step install.  That way you can test the
 wxWidgets examples (should you want to), you can also avoid modules
 that you don't want to use if they fail.  You can specify the
 installation directoty and so on. You can similarly manipulate the
 wxPerl install too.
 
 I did start off with package installs many years ago, first from ppm on
 WIndows, but then with cpan on Linux and it wasn't until I used the 2-
 step that I could really handle what was happening.  Other people swear
 by citrus perl, but that never worked for me either.
 
 Good luck,
 
 Steve.
 
 On 17/04/15 08:55, RAPPAZ Francois wrote:
  I did
  force install Wx
  from the cpan shell:
 
  Testing with samples/trivial/trivial.pl (see below) I see where the
 problems were with the tests:
  When I close the window app using the window's x button, the script
  sometime does not return and I received the error message from W7
 perl.exe has stopped working.
 
  But this is not systematics... sometime it works and the script
 return
  without message... I would say it returns 3 times on 5
 
  Idea ?
 
  François
 
  use strict;
  use Wx;
  my $app = Wx::SimpleApp-new;
  my $frame = Wx::Frame-new( undef, -1, Trivial Sample );
  $frame-Show; $app-MainLoop;
  -Original Message-
  From: Steve Cookson [mailto:steve.cook...@sca-uk.com]
  Sent: vendredi, 17. avril 2015 09:42
  To: RAPPAZ Francois; wxperl-users@perl.org
  Subject: Re: Cann't Perl Build with wxWidget 3.0.2
 
  Hi Francois,
 
  On 17/04/15 04:01, RAPPAZ Francois wrote:
  Is there a way I could successfully install Wx::Alien and telling
  him
  : use my standalone setup of wxWidgets, don't build your own ?
  There is a parameter (--prefix), which I don't use, but you can play
  with it.  If you do a search on these email archives, Mark talks
  about it more.  On Linux something like the following would work,
 
  Good luck,
 
  Regards,
 
  Steve.
 
  #
  #  Remove your old install files.
  cd ~
  rm -rf Alien-wxWidgets
 
  svn co https://svn.code.sf.net/p/wxperl/code/Alien-wxWidgets/trunk
  Alien-wxWidgets
  cd ~/Alien-wxWidgets
  perl Build.PL \
--wxWidgets-build=1 \
--wxWidgets-graphicscontext \
--wxWidgets-build-opengl=1 \
--wxWidgets-version=3.0.2 \
--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
#\
  #--prefix=/usr/local/lib/perl/5.18.2/Alien/wxWidgets/gtk_3_0_2_uni
 
  perl Build  # Download and compile wxWidgets.
 
  perl Build install
  ldconfig
  cd ..
 
  cd ~
  rm -rf ~/wxPerl
  svn co https://svn.code.sf.net/p/wxperl/code/wxPerl/trunk ~/wxPerl
 cd
  ~/wxPerl perl Makefile.PL make make install cd ~
 



RE: Cann't Perl Build with wxWidget 3.0.2

2015-04-17 Thread RAPPAZ Francois
Hi Steve

Glad to see there's someone out there ...

I delete the Wx-0.997-xxx folders in my ..\cpan\build
From the cpan shell, I rerun install Wx and the build succeed.

Strangely the touch command (perl.exe -MExtUtils::Command -e touch -- 
wxt_copy_files) passed since I now have this file in my build/Wx ... folder.


Now the tests fail: when a widget is called: I got a perl has stopped working 
from windows, even if I see the widgets on the screen.
I could try a force install but I will probably have the same problems...

When I tried to run the minimal.exe file I had made directly (without 
Alien::Wx) the widget appears without errors.

Any idea ?
Is there a way I could successfully install Wx::Alien and telling him : use my 
standalone setup of wxWidgets, don't build your own ?

TIA
François

 -Original Message-
 From: Steve Cookson [mailto:steve.cook...@sca-uk.com]
 Sent: jeudi, 16. avril 2015 17:34
 To: RAPPAZ Francois; wxperl-users@perl.org
 Subject: Re: Cann't Perl Build with wxWidget 3.0.2
 
 Hi Francois,
 
 I'm sorry your having such difficulties.  I'm watching your progress
 with interest.  Unfortunately I only use Linux, so I can't see what
 your seeing.
 
 Have you tried 3.0.1?  Did that work? Maybe it could help you with this
 problem.  Apparently the API is exactly the same.
 
 When we moved from 3.0.0 to 3.0.1 and the 3.0.1 code hadn't been
 released, I just copied the code I needed from 3.0.1 to 3.0.0 and
 recompiled Widgets.  Amazingly it worked!
 
 Good luck and please keep posting your stuff here even if we can't
 always be of much help.  It will be useful later.
 
 Regards,
 
 Steve.
 
 On 16/04/15 11:22, RAPPAZ Francois wrote:
  I removed the WXDIR and WXWIN environment variables, rerun the build
 process in Alien::WxW with downloading again WxW 3.0.2 and the set up
 succeed.
 
  I'm now stuck with an error when I try to install Wx:
 
  The commands
  perl Makefile.pl
  gmake
 
  fails.
 
  complete output here :
 
  C:\strawberry\cpan\build\Wx-0.9927-sPcmb6perl Makefile.PL 'WX' is
 not
  a known MakeMaker parameter name.
  Writing Makefile for Wx::PerlTest
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::RichText
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Print
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::DateTime
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Html
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Media
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Help
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::XRC
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::DataView
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Grid
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::STC
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::AUI
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::IPC
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Socket
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::DND
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Calendar
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::WebView
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::PropertyGrid
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::MDI
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::DocView
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::FS
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Ribbon
  Writing MYMETA.yml and MYMETA.json
  Writing Makefile for Wx::Perl::SplashFast Writing MYMETA.yml and
  MYMETA.json Writing Makefile for Wx::Perl::Carp Writing MYMETA.yml
 and
  MYMETA.json Writing Makefile for Wx::Perl::TextValidator Writing
  MYMETA.yml and MYMETA.json Writing Makefile for Wx::Perl Writing
  MYMETA.yml and MYMETA.json Writing Makefile for Wx Writing MYMETA.yml
  and MYMETA.json Writing Makefile for Wx Writing MYMETA.yml and
  MYMETA.json
 
 
 ==
  For installation instructions and further help please see
  docs/INSTALL.pod
 
  For command line switches help use:
  perl Makefile.PL --help
 
 ==
 
  C:\strawberry\cpan\build\Wx-0.9927-sPcmb6gmake
  C:\strawberry\perl\bin\perl.exe script/make_v_cback.pl 
  cpp/v_cback_def.h C:\strawberry\perl\bin\perl.exe
 script/copy_files.pl
  files.lst cp cpp/overload.h blib\lib\Wx\cpp\overload.h cp cpp/wxapi.h
  blib\lib\Wx\cpp\wxapi.h cp cpp/constants.h
 blib\lib\Wx\cpp\constants.h
  cp cpp/helpers.h blib\lib\Wx\cpp\helpers.h cp cpp/setup.h
  blib\lib\Wx\cpp\setup.h cp cpp/v_cback_def.h
  blib\lib\Wx\cpp\v_cback_def.h cp cpp/streams.h
  blib\lib\Wx\cpp\streams.h cp cpp/chkconfig.h
  blib\lib\Wx\cpp\chkconfig.h cp cpp/compat.h blib\lib\Wx\cpp\compat.h
  cp Opt blib\arch\Wx\build\Opt.pm

Re: Cann't Perl Build with wxWidget 3.0.2

2015-04-17 Thread Steve Cookson

Hi Francois,

On 17/04/15 04:01, RAPPAZ Francois wrote:

Is there a way I could successfully install Wx::Alien and telling him : use my 
standalone setup of wxWidgets, don't build your own ?
There is a parameter (--prefix), which I don't use, but you can play 
with it.  If you do a search on these email archives, Mark talks about 
it more.  On Linux something like the following would work,


Good luck,

Regards,

Steve.

#
#  Remove your old install files.
cd ~
rm -rf Alien-wxWidgets

svn co https://svn.code.sf.net/p/wxperl/code/Alien-wxWidgets/trunk 
Alien-wxWidgets

cd ~/Alien-wxWidgets
perl Build.PL \
--wxWidgets-build=1 \
--wxWidgets-graphicscontext \
--wxWidgets-build-opengl=1 \
--wxWidgets-version=3.0.2 \
--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
#\
#--prefix=/usr/local/lib/perl/5.18.2/Alien/wxWidgets/gtk_3_0_2_uni

perl Build  # Download and compile wxWidgets.

perl Build install
ldconfig
cd ..

cd ~
rm -rf ~/wxPerl
svn co https://svn.code.sf.net/p/wxperl/code/wxPerl/trunk ~/wxPerl
cd ~/wxPerl
perl Makefile.PL
make
make install
cd ~



Re: Cann't Perl Build with wxWidget 3.0.2

2015-04-17 Thread Steve Cookson

Hi Francois,

If you use the force install (I imagine you mean cpan -fi Wx)., it will 
just ignore any non-fatal errors, but actually we don't want any errors 
at all.  I do use the -fi option sometime if I know that the error is in 
the documentation or something, but otherwise I've never found it to be 
a sound strategy.


I would really use the 2-step install.  That way you can test the 
wxWidgets examples (should you want to), you can also avoid modules that 
you don't want to use if they fail.  You can specify the installation 
directoty and so on. You can similarly manipulate the wxPerl install too.


I did start off with package installs many years ago, first from ppm on 
WIndows, but then with cpan on Linux and it wasn't until I used the 
2-step that I could really handle what was happening.  Other people 
swear by citrus perl, but that never worked for me either.


Good luck,

Steve.

On 17/04/15 08:55, RAPPAZ Francois wrote:

I did
force install Wx
from the cpan shell:

Testing with samples/trivial/trivial.pl (see below) I see where the problems 
were with the tests:
When I close the window app using the window's x button, the script sometime 
does not return and I received the error message from W7
perl.exe has stopped working.

But this is not systematics... sometime it works and the script return without 
message... I would say it returns 3 times on 5

Idea ?

François

use strict;
use Wx;
my $app = Wx::SimpleApp-new;
my $frame = Wx::Frame-new( undef, -1, Trivial Sample );
$frame-Show;
$app-MainLoop;

-Original Message-
From: Steve Cookson [mailto:steve.cook...@sca-uk.com]
Sent: vendredi, 17. avril 2015 09:42
To: RAPPAZ Francois; wxperl-users@perl.org
Subject: Re: Cann't Perl Build with wxWidget 3.0.2

Hi Francois,

On 17/04/15 04:01, RAPPAZ Francois wrote:

Is there a way I could successfully install Wx::Alien and telling him

: use my standalone setup of wxWidgets, don't build your own ?
There is a parameter (--prefix), which I don't use, but you can play
with it.  If you do a search on these email archives, Mark talks about
it more.  On Linux something like the following would work,

Good luck,

Regards,

Steve.

#
#  Remove your old install files.
cd ~
rm -rf Alien-wxWidgets

svn co https://svn.code.sf.net/p/wxperl/code/Alien-wxWidgets/trunk
Alien-wxWidgets
cd ~/Alien-wxWidgets
perl Build.PL \
  --wxWidgets-build=1 \
  --wxWidgets-graphicscontext \
  --wxWidgets-build-opengl=1 \
  --wxWidgets-version=3.0.2 \
  --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
  #\
#--prefix=/usr/local/lib/perl/5.18.2/Alien/wxWidgets/gtk_3_0_2_uni

perl Build  # Download and compile wxWidgets.

perl Build install
ldconfig
cd ..

cd ~
rm -rf ~/wxPerl
svn co https://svn.code.sf.net/p/wxperl/code/wxPerl/trunk ~/wxPerl cd
~/wxPerl perl Makefile.PL make make install cd ~






Re: Cann't Perl Build with wxWidget 3.0.2

2015-04-16 Thread Steve Cookson

Hi Francois,

I'm sorry your having such difficulties.  I'm watching your progress 
with interest.  Unfortunately I only use Linux, so I can't see what your 
seeing.


Have you tried 3.0.1?  Did that work? Maybe it could help you with this 
problem.  Apparently the API is exactly the same.


When we moved from 3.0.0 to 3.0.1 and the 3.0.1 code hadn't been 
released, I just copied the code I needed from 3.0.1 to 3.0.0 and 
recompiled Widgets.  Amazingly it worked!


Good luck and please keep posting your stuff here even if we can't 
always be of much help.  It will be useful later.


Regards,

Steve.

On 16/04/15 11:22, RAPPAZ Francois wrote:

I removed the WXDIR and WXWIN environment variables, rerun the build process in 
Alien::WxW with downloading again WxW 3.0.2 and the set up succeed.

I'm now stuck with an error when I try to install Wx:

The commands
perl Makefile.pl
gmake

fails.

complete output here :

C:\strawberry\cpan\build\Wx-0.9927-sPcmb6perl Makefile.PL
'WX' is not a known MakeMaker parameter name.
Writing Makefile for Wx::PerlTest
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::RichText
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Print
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::DateTime
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Html
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Media
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Help
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::XRC
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::DataView
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Grid
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::STC
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::AUI
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::IPC
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Socket
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::DND
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Calendar
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::WebView
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::PropertyGrid
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::MDI
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::DocView
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::FS
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Ribbon
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Perl::SplashFast
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Perl::Carp
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Perl::TextValidator
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx::Perl
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Wx
Writing MYMETA.yml and MYMETA.json

==
For installation instructions and further help please see
docs/INSTALL.pod

For command line switches help use:
perl Makefile.PL --help
==

C:\strawberry\cpan\build\Wx-0.9927-sPcmb6gmake
C:\strawberry\perl\bin\perl.exe script/make_v_cback.pl  cpp/v_cback_def.h
C:\strawberry\perl\bin\perl.exe script/copy_files.pl files.lst
cp cpp/overload.h blib\lib\Wx\cpp\overload.h
cp cpp/wxapi.h blib\lib\Wx\cpp\wxapi.h
cp cpp/constants.h blib\lib\Wx\cpp\constants.h
cp cpp/helpers.h blib\lib\Wx\cpp\helpers.h
cp cpp/setup.h blib\lib\Wx\cpp\setup.h
cp cpp/v_cback_def.h blib\lib\Wx\cpp\v_cback_def.h
cp cpp/streams.h blib\lib\Wx\cpp\streams.h
cp cpp/chkconfig.h blib\lib\Wx\cpp\chkconfig.h
cp cpp/compat.h blib\lib\Wx\cpp\compat.h
cp Opt blib\arch\Wx\build\Opt.pm
cp cpp/v_cback.h blib\lib\Wx\cpp\v_cback.h
cp cpp/event.h blib\lib\Wx\cpp\event.h
cp typemap blib\lib\Wx\typemap
cp cpp/e_cback.h blib\lib\Wx\cpp\e_cback.h
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e touch -- wxt_copy_files
to undefined at C:/strawberry/perl/lib/ExtUtils/Install.pm line 1208
gmake: *** [pm_to_blib] Error 2

Thanks for any help

François


-Original Message-
From: RAPPAZ Francois [mailto:francois.rap...@unifr.ch]
Sent: mercredi, 15. avril 2015 14:30
To: wxperl-users@perl.org
Subject: RE: Cann't Perl Build with wxWidget 3.0.2

I succeed in having wxWidgets builded and compiled:

 From the install.txt in the ...\wxWidgets-3.0.2\docs\msw I add to
change a few things:

- Call gmake instead of mingw32-make
- install the headers files for gdiplus: following
http://www.miscdebris.net/blog/2009/09/17/adding-gdi-headers-to-mingw-
to-compile-wxwidgets-with-wxgraphicscontext-support/
- change the calls in two files following:
https://code.google.com/p/wxmax/issues/detail?id=25

Now I see that the build.cfg file is in ...\wxWidgets-
3.0.2\lib\gcc_dll\mswud
Not in ...\wxWidgets-3.0.2\lib\gcc_dll where it is searched by the
build process of Alien::WxWidgets

How