Hi,

Your first problem is duff advice from me.
There is no tar.gz bundle of wxWidgets 2.9.1

Ah well.

2 things you need.
An extraction method that works
A working patch.exe

Strawberry should give you a working patch.exe
Just test that your version of Windows lets you run it:
patch --version

Install command line zip from

http://gnuwin32.sourceforge.net/packages/unzip.htm

Make sure unzip is on your path. You may wish to make this temporary for safety's sake.

Ensure you have a clean extract from svn of Alien-wxWidgets. Ensure WXWIN and or WXDIR are NOT set in your env.

Now,
perl Build.PL --wxWidgets-source=zip --wxWidgets-unicode=1 --wxWidgets-mslu=0 --wxWidgets-version=2.9.1

perl Build
perl Build test
perl Build install

Should work.

Note that if Alien finds wxWidgets-2.9.1.zip in its top level directory, it will use that rather than download. If you were planning on building many times, it would be simpler to keep copying a local copy rather than downloading.

Building wxWidgets separately is a bit painful as you have to apply the correct patches for your version. Easier to let Alien do it.

If you are accustomed to editing makefile.gcc with your wxWidgets build, you can achieve the same effect by passing the same flags to Build.PL in --wxWidgets-extraflags.

For example, if I wanted to build the QA library, then the option in makefile.gcc is USE_QA=1

so in my build command I would do
perl Build.PL --wxWidgets-source=zip --wxWidgets-unicode=1 --wxWidgets-mslu=0 --wxWidgets-version=2.9.1 --wxWidgets-extraflags="USE_QA=1"


Hope this helps

Regards

Mark



On 24/01/2011 08:29, Richard BILLEREY wrote:
Hi Mark,

Thank you for your answer. Fetching the source in tar.gz does not work :

fetching from:
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.9.1.tar.gz
Fetch failed! HTTP response: 404 Not Found [404 Not Found] at
inc/My/Build/Base.
pm line 305
Unable to fetch archive at inc/My/Build/Base.pm line 307.


  I have tried with zip but the process stops  :

fetching from:
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.9.1.zip
Extracting wxWidgets...
No '/bin/unzip' program found at inc/My/Build/Base.pm line 322
mkdir C:\AlienWxWidgets\build: File exists; Impossible de crÚer un fichier
dÚjÓ
existant at C:/strawberry/perl/site/lib/Archive/Zip/Archive.pm line 164

I suspect Archive.pm having troubles with the existing Build file.


So tried to rename the generated Build file into Buildwx and then launching
:

perl Buildwx

As a result, fetching the source works but the build process stops when
patching wxWidgets :

No '/bin/unzip' program found at inc/My/Build/Base.pm line 322
Patching wxWidgets...
Applying patch: C:\AlienWxWidgets\patches\wxMSW-2.9.1-setup.patch
perl -pe "" -- C:\AlienWxWidgets\patches\wxMSW-2.9.1-setup.patch |
..\inc\bin\patch.exe -N -p0 -u -b -z .bak
Le chemin d'accès spécifié est introuvable.
Error: 65280 at inc/My/Build/Base.pm line 342.

It is a path not found error.

I have tried another way, fetching and building wxWidgets by myself and then
setting the WXDIR and WXWIN env variables but I get :

Checking prerequisites...
Looks good

A wxWidgets build seems to be in 'c:\wxWidgets-2.9.1', so it should be safe
to a
nswer
'no' to the following question

Do you want to fetch and build wxWidgets from sources? [no ]
no
Deleting Build
Removed previous script 'Build'

Creating new 'Build' script for 'Alien-wxWidgets' version '0.51'

C:\build_alien>perl Build
Configuration error: could not find libraries for configuration: 'u' '29' at
inc
/My/Build/Win32.pm line 78.


Do you have any idea ?

Regards

Richard


Reply via email to