From: Mark D. <mar...@zn...> - 2007-01-21 11:26:34
|
Beule, Franck wrote: > And for my conclusion, if it's hard to compile on Windows (someone > succeded on this task, > but he didn't explained how) and impossible to compile on Linux and > MacOSX, > does someone really use wxPerl ??? > I can't speak for MacOSX or Linux, as I don't 'really use' wxPerl on those platforms. But I have occasionally built wxPerl on those platforms just to check out if my perl code on the different platforms --- and for me, "cpan install Alien::wxWidgets" just worked. As I don't truly understand how MacOSX / Linux determine library dependencies beyond a basic idea of ld_path, I just let Alien build wxWidgets for me. For building on Win32, as far as I am aware, there is no secret. But, the steps I follow for an ANSI build using MSVC6 are below. Remember, these may be completely wrong / non-optimal - but they are shared :-) ------------------------------------------------------ Download and install the MSW source of wxwidgets. Download the source of Alien::wxWidgets . In the Alien source, you will find a file .../patches/wxMSW-2.6.3-setup.patch. You want to apply these changes to the setup.h file in ../wxwidgets/include/wx/msw/setup.h The actual value changes can also be used for version 2.8.0 of wxWidgets. Next, edit the file ../wxwidgets/build/msw/config.vc changing the following values: SHARED = 1 BUILD = release USE_OPENGL = 1 And you are ready to build wxWidgets...... cd ../wxwidgets/build/msw nmake -f makefile.vc cd ../wxwidgets/contrib/build/stc nmake -f makefile.vc Next, set up the necessary env vars and build Alien. cd ../Alien-wxWidgets-0.27/ set WXWIN=/path/to/wxwidgets set WXDIR=/path/to/wxwidgets perl Build.PL perl Build perl Build test perl Build install Now you can build wxPerl with the standard perl Makefile.PL nmake nmake test nmake install If I want a unicode build (limited to Win2000 and above), the additional steps I follow are: in ../wxwidgets/build/msw/config.vc UNICODE = 1 in ../wxwidgets/include/wx/msw/setup.h #define wxUSE_UNICODE 1 building Alien : perl Build.PL --unicode building wxPerl perl Makefile.PL unicode |