[pcre-dev] use cmake-gui to build Visual C++ 64 bit PCRE ver…

Kezdőlap
Üzenet törlése
Szerző: Jerry Liu (chuchiehliu)
Dátum:  
Címzett: pcre-dev, Philip Hazel
Tárgy: [pcre-dev] use cmake-gui to build Visual C++ 64 bit PCRE version
Hello,



Thank you for your help first.



We moved from MSVS 2005 to MSVS 2008 lately. I was able to generate
PCRE 8.0 version win32 executable using MSVS 2005. I am trying to
generate a Visual C++ 64 bit PCRE 8.12 version executable. Downloaded
the pcre-8.12.zip from pcre.org website. Follow the NON-UNIX-USE
document using cmake-gui to generate pcre 64 bit executable.



I setup both "Where is the source code:" and "Where to build the
binaries:" to the same directory; C:/pcre_ver/pcre-8.02/pcre-8.02.
Click "Configure" and select "Visual Studio 9 2008 Win64" generator for
this project and keep the check "Use default native compilers". The
following is what I got.



Check for working C compiler using: Visual Studio 9 2008 Win64

Check for working C compiler using: Visual Studio 9 2008 Win64 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler using: Visual Studio 9 2008 Win64

Check for working CXX compiler using: Visual Studio 9 2008 Win64 --
works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)

Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

Could not find OPTIONAL package Readline

Looking for dirent.h

Looking for dirent.h - not found

Looking for stdint.h

Looking for stdint.h - not found

Looking for inttypes.h

Looking for inttypes.h - not found

Looking for sys/stat.h

Looking for sys/stat.h - found

Looking for sys/types.h

Looking for sys/types.h - found

Looking for unistd.h

Looking for unistd.h - not found

Looking for windows.h

Looking for windows.h - found

Looking for C++ include type_traits.h

Looking for C++ include type_traits.h - not found

Looking for C++ include bits/type_traits.h

Looking for C++ include bits/type_traits.h - not found

Looking for bcopy

Looking for bcopy - not found

Looking for memmove

Looking for memmove - found

Looking for strerror

Looking for strerror - found

Looking for strtoll

Looking for strtoll - not found

Looking for strtoq

Looking for strtoq - not found

Looking for _strtoi64

Looking for _strtoi64 - found

Looking for stddef.h

Looking for stddef.h - found

Check size of long long

Check size of long long - done

Check size of unsigned long long

Check size of unsigned long long - done

PCRE configuration summary:

Install prefix .................. : C:/Program Files/PCRE

C compiler ...................... : cl

C++ compiler .................... : cl

C compiler flags ................ : /DWIN32 /D_WINDOWS /W3 /Zm1000

C++ compiler flags .............. : /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc
/GR

Build C++ library ............... : ON

Enable UTF-8 support ............ : OFF

Unicode properties .............. : OFF

Newline char/sequence ........... : LF

\R matches only ANYCRLF ......... : OFF

EBCDIC coding ................... : OFF

Rebuild char tables ............. : OFF

No stack recursion .............. : OFF

POSIX mem threshold ............. : 10

Internal link size .............. : 2

Match limit ..................... : 10000000

Match limit recursion ........... : MATCH_LIMIT

Build shared libs ............... : OFF

Build static libs ............... : ON

Build pcregrep .................. : ON

Build tests (implies pcretest) .. : ON

Link pcregrep with libz ......... : None

Link pcregrep with libbz2 ....... : None

Link pcretest with libreadline .. : None

Configuring done







Then click the "Generate" and looks like there are two project files
missing; e.g. pcredfa.vcproj, pcredemo.vcproj,



Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)

Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

Could not find OPTIONAL package Readline

PCRE configuration summary:

Install prefix .................. : C:/Program Files/PCRE

C compiler ...................... : C:/Program Files/Microsoft Visual
Studio 9.0/VC/bin/cl.exe

C++ compiler .................... : C:/Program Files/Microsoft Visual
Studio 9.0/VC/bin/cl.exe

C compiler flags ................ : /DWIN32 /D_WINDOWS /W3 /Zm1000

C++ compiler flags .............. : /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc
/GR

Build C++ library ............... : ON

Enable UTF-8 support ............ : OFF

Unicode properties .............. : OFF

Newline char/sequence ........... : LF

\R matches only ANYCRLF ......... : ON

EBCDIC coding ................... : OFF

Rebuild char tables ............. : ON

No stack recursion .............. : OFF

POSIX mem threshold ............. : 10

Internal link size .............. : 2

Match limit ..................... : 10000000

Match limit recursion ........... : MATCH_LIMIT

Build shared libs ............... : ON

Build static libs ............... : OFF

Build pcregrep .................. : ON

Build tests (implies pcretest) .. : ON

Link pcregrep with libz ......... : None

Link pcregrep with libbz2 ....... : None

Link pcretest with libreadline .. : None

Configuring done





It looks like the pcredfa.c is missing compare to 8.0. I must but don't
understand what I did wrong? Or my MSVS 2008 installation has issues.

1.       Those dirent.h, etc. file missing seems mostly only exist in
Unix.


2.      Don't understand the following message neither "Could NOT find
BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR),  Could NOT find ZLIB
(missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) ,  Could not find OPTIONAL
package Readline"


I mainly would like to generate pcre.dll (and pcreposix.dll) for x64 bit
windows box.



Thanks,
Jerry