From: <an...@fr...> - 2006-08-11 17:13:37
|
Ed Heil wrote: > Hullo! > > I've decided that I am going to start working with home-compiled > versions of wxwidgets and wxperl, so that when I ask about a bug and > Mattia says "fix is in CVS" I can go get that fix. > > I've got a mingw/msys system together. I compiled wxWidgets using it > and confirmed the samples worked on a testbed "clean install" of Win > XP. (I followed the steps here: > http://jupiter.dnsalias.net/howto/wxWidgets/wxWidgets_MinGW.jsp ) > > Now I'd like to roll me up some wxPerl. > > I'm using ActiveState perl 5.8.8 build 817 (the latest stable version > from activestate). > > My mingw is configured to see that perl in its PATH as /perl/bin/perl. > > I'm not exactly sure where to go from here. My next step would be to > install Alien-wxWidgets I guess. I can't get the cpan shell working > from within my msys environment. It says "Set up gcc environment" and > hangs. So I downloaded the tarball of Alien-wxWidgets in my msys home > directory. > > I ran perl Build.pl and said "no" I don't want to build wxWidgets. (I > already built it, and wx-config is in my path). It created a Build > script, which gave me some of the following output (apologies for its > incompleteness -- I haven't yet figured out how to cut and paste from a > msys window!) -- > > Build: blib\lib\Alien\wxWidgets.pm: cannot resolve L<Alien> in paragraph 8. > > (some more stuff that doesn't look like errors, then...) > > Configuration error: could not find libraries for this configuration at > inc/My/Build/Win32.pm line 63. > Have you tried to build with mingw? May I ask how did you do that? > > Hmmm, I thought. I'll try saying I *do* want to build the toolkit. I > removed the unpacked tarball and unpacked it again, and this time said > "yes" to the "Do you want to build WxWidgets?" question. > > I ran the build script and ended up with the exact same "cannot resolve > L<Alien> in paragraph 8" and then a "Fetch failed! 404 not found " > trying to fetch \pub\2.6.3\wxWidgets-2.6.3.yes from > biolpc22.york.ac.uk' It then printed "Fetching wxWidgets..." and quit. > > I'm going to go back, for now, to the pre-Alien version of wxPerl, but I > would like to find out how to do this right. I am very new to > msys/mingw, but things have gone very well except for the Alien business. > > > > > I ran it again and said "yes" I want to build it. > > > > Hi! You seem to be doing the same as I do. I have tried to compile it as you do. As I see there are several ways to go. I have spent a day on it and I have found out couple of things. I don't have a complete solution but someone may be able to finish it. These may work. 1. Compile WxWidgets in its own and make an entry for it in perl\site\lib\Alien\wxWidgets\Config\ and build/make Wx. I have tried this but I am stuck because the makefile.pl does not seem to be able to find the new mingw configuration. 2. Do as you do. I downloaded Visual C++ Studio Express 2005 and set up the path like this before calling cpan.bat set path=C:\WINXP\system32;c:\Program Files\Microsoft Visual Studio 8\vc\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;d:\m\perl\bin\; set INCLUDE=<Microsoft Platform SDK>\Include;C:\Programs\Microsoft Platform SDK\Include\crt set LIB=<Microsoft Platform SDK>\lib;C:\Program Files\Microsoft Visual Studio 8\VC\lib then ,, "install M/MB/MBARBON/Alien-wxWidgets-0.19.tar.gz" Then I built it That was ok... but the generated dlls did not run properly... 3. There is a install guide here http://search.cpan.org/~mbarbon/Wx-0.55/docs/INSTALL.pod It looks simple... For mingw, it says set WXDIR=z:\path\to\wx set WXWIN=z:\path\to\wx cd z:\path\to\wx\src\msw make -f makefile.g95 FINAL=1 WXMAKINGDLL=1 cd %WXDIR%\contrib\src\stc make -f makefile.g95 FINAL=1 WXUSINGDLL=1 cd %WXDIR%\contrib\src\xrc make -f makefile.g95 FINAL=1 WXUSINGDLL=1 # now build wxPerl # get dmake from http://www.cpan.org/authors/id/GSAR/dmake-4.1pl1-win32.zip perl Makefile.PL dmake dmake test I tried that too but it failed at perl Makefile.PL because it was trying to use CL configuration given by Alien::Widgets. The problem is Alien::Widgets knows only CL...?? I don!t know how to make it use gcc configuration, I can see the code is there, I have not managed to activate it.. Maybe if Alien::Widgets were removed.. Regards Márton Papp |