Re: [pcre-dev] Help with pcregrep on Windows

トップ ページ
このメッセージを削除
著者: Zoltán Herczeg
日付:  
To: Emanuele Alpi
CC: pcre-dev
題目: Re: [pcre-dev] Help with pcregrep on Windows
Hi,

7.0 is really old. We do not support it anymore.

> Could you help me in trying to update pcregrep on my Windows system?


I am not a Windows expert myself, but with cmake and mingw (+make) it is easy to build it. Cygwin probably works as well.

You can find mingw related things here:
http://sourceforge.net/projects/mingw/files/

GCC:
http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/

There are some installers there, I have never tried them. I just downloaded the usual components (binutils, libc, etc.) until the the compiler is finally able to compile a hello world.

make utility is also important:
http://sourceforge.net/projects/mingw/files/MSYS/Base/

CMake is available here:
http://www.cmake.org/

Download it as well.

This command configures PCRE from its root directory if everything is available in the PATH:

cmake -G "MinGW Makefiles" . -DCMAKE_C_FLAGS:STRING=-Wl,--stack,16777216 -DPCRE_BUILD_PCRE16=ON -DPCRE_BUILD_PCRE8=ON -DPCRE_SUPPORT_JIT=ON -DPCRE_SUPPORT_UNICODE_PROPERTIES=ON

And a simple "make" command builds it.

Testing: make test
Detailed build process: make VERBOSE=1

Regards,
Zoltan