logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: PCRE Build by CMake for Windows using VS2008
Author
meet2sanjay



Joined: 30 Dec 2011
Posts: 35
Location: GURGAON, INDIA

PostPosted: Fri 23 Jun '17 15:17    Post subject: PCRE Build by CMake for Windows using VS2008 Reply with quote

I am building pcre8.40 for apache. But it fails. i am using the following command. Can anybody tell me correct command or steps to build PCRE ?


cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=D:\ApacheHTTP\srclib\pcre -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DPCRE_BUILD_TESTS=OFF -DPCRE_BUILD_PCRECPP=OFF -DPCRE_BUILD_PCREGREP=OFF -DPCRE_SUPPORT_PCREGREP_JIT=ON -DPCRE_SUPPORT_UTF=1 -DPCRE_SUPPORT_UNICODE_PROPERTIES=1 -DINSTALL_MSVC_PDB=1 .
nmake
nmake install

but still not working.
I am totally frustrated now. Because i am using vs2008 so i change the below paramenter:
cmake -G "Visual Studion 9 2008" -

Thanks.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 23 Jun '17 19:12    Post subject: Reply with quote

I would bet the output of the long cmake -G command includes something like this at then end;
-- Configuring incomplete, errors occurred!
See also "D:/build/pcre-8.40/CMakeFiles/CMakeOutput.log".

and you are just not noticing it there. There's a bug in the cmakelist.txt file.

In line 194:
OPTION(PCRE_STATIC_RUNTIME OFF CACHE BOOL
Remove the OFF CACHE BOOL.
Back to top
meet2sanjay



Joined: 30 Dec 2011
Posts: 35
Location: GURGAON, INDIA

PostPosted: Tue 27 Jun '17 9:21    Post subject: Reply with quote

After making the following changes in cmakelist.txt
In line 194:
OPTION(PCRE_STATIC_RUNTIME OFF CACHE BOOL
Remove the OFF CACHE BOOL.

I executed the following command:
cmake -G "Visual Studio 9 2008" -DCMAKE_INSTALL_PREFIX=D:\ApacheHTTP\srclib\pcre -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DPCRE_BUILD_TESTS=OFF -DPCRE_BUILD_PCRECPP=OFF -DPCRE_BUILD_PCREGREP=OFF -DPCRE_SUPPORT_PCREGREP_JIT=ON -DPCRE_SUPPORT_UTF=1 -DPCRE_SUPPORT_UNICODE_PROPERTIES=1 -DINSTALL_MSVC_PDB=1 .

I am getting the following error:
NMAKE : fatal error U1064: MAKEFILE not found and no target specified Stop.
Errorlog:
https://apaste.info/375L

OutputLog:
https://apaste.info/x6OE

While chnaging the parameter
cmake -G "Nmake Makefiles" instead of cmake -G "Visual Studio 9 2008"

Getting the following error:
Errorlog:
https://apaste.info/abAS

OutputLog:
https://apaste.info/jT3T

Please help me to come out from this problem.
Thanks
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 27 Jun '17 19:34    Post subject: Reply with quote

"Visual Studio 9 2008" is for building in the IDE, not the command line so yes, nmake is going to fail.

These errors your seeing in the error are not always real errors. What cmake is doing here is checking to see what is available in the compiler. So if it succeeds the compiler has it, if it fails the compiler doesn't. So both should actually build, either the IDE or the makefiles.

Unless you see the part of the message I posted earlier in bold, all is good up to that point.
Back to top


Reply to topic   Topic: PCRE Build by CMake for Windows using VS2008 View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads