| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 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.
 |  | 
 | 
| | 
| | 
|  Topic: Error Building Apache, Windows 10, VS 2017 libhttpd. |  |  
| Author |  |  
| joseluisbz 
 
 
 Joined: 25 Apr 2012
 Posts: 1
 Location: Colombia, Bogota
 
 | 
|  Posted: Wed 29 Mar '17 8:29    Post subject: Error Building Apache, Windows 10, VS 2017 libhttpd. |   |  
| 
 |  
| Hi, I'm trying to build Httpd Apache... 
 My OS Windows 10, 64bits
 
 I know this (But' I feel that I don't have complete control):
 
  	  | Code: |  	  | nmake /nologo /f Makefile.win INSTDIR=c:\Custom\httpd installr
 
 | 
 
 
 I'm Experimenting alternatively,
 
 
  	  | Code: |  	  | c:\Sources\httpd-2.4.25\bld> tree c:\Custom
 Folder PATH listing
 Volume serial number is BE02-3CB0
 C:\CUSTOM
 ├───apr
 │   ├───bin
 │   ├───include
 │   │   └───arch
 │   │       └───win32
 │   └───lib
 ├───apr-util
 │   ├───bin
 │   ├───include
 │   └───lib
 ├───cmake
 │   ├───bin
 │   ├───doc
 │   │   └───cmake-3.7
 │   │       ├───cmcompress
 │   │       ├───cmcurl
 │   │       ├───cmlibarchive
 │   │       ├───cmliblzma
 │   │       ├───cmlibuv
 │   │       ├───cmsys
 │   │       └───cmzlib
 │   └───share
 │       ├───aclocal
 │       └───cmake-3.7
 │           ├───completions
 │           ├───editors
 │           │   ├───emacs
 │           │   └───vim
 │           │       ├───indent
 │           │       └───syntax
 │           ├───Help
 │           │   ├───command
 │           │   ├───generator
 │           │   ├───include
 │           │   ├───manual
 │           │   ├───module
 │           │   ├───policy
 │           │   ├───prop_cache
 │           │   ├───prop_dir
 │           │   ├───prop_gbl
 │           │   ├───prop_inst
 │           │   ├───prop_sf
 │           │   ├───prop_test
 │           │   ├───prop_tgt
 │           │   ├───release
 │           │   └───variable
 │           ├───include
 │           ├───Modules
 │           │   ├───AndroidTestUtilities
 │           │   ├───CMakeAddFortranSubdirectory
 │           │   ├───Compiler
 │           │   ├───CompilerId
 │           │   ├───FindCUDA
 │           │   ├───FortranCInterface
 │           │   │   └───Verify
 │           │   ├───IntelVSImplicitPath
 │           │   ├───Internal
 │           │   └───Platform
 │           │       └───Android
 │           └───Templates
 │               └───Windows
 ├───libxml2
 │   ├───bin
 │   ├───include
 │   │   └───libxml2
 │   │       └───libxml
 │   └───lib
 ├───openssl
 │   ├───bin
 │   ├───include
 │   │   └───openssl
 │   ├───lib
 │   │   └───engines
 │   └───ssl
 ├───pcre
 │   ├───bin
 │   ├───include
 │   ├───lib
 │   ├───man
 │   │   ├───man1
 │   │   └───man3
 │   └───share
 │       └───doc
 │           └───pcre
 │               └───html
 └───zlib
 ├───bin
 ├───include
 ├───lib
 └───share
 ├───man
 │   └───man3
 └───pkgconfig
 
 c:\Sources\httpd-2.4.25\bld>
 
 | 
 
 
  	  | Code: |  	  | mklink /J "c:/Programs/" "c:\Custom\"
 Set Progs=c:/Programs
 
 set PATH=%PATH%;%Progs%/cmake/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/pcre/include
 set LIB=%LIB%;%Progs%/pcre/lib
 set PATH=%PATH%;%Progs%/pcre/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/zlib/include
 set LIB=%LIB%;%Progs%/zlib/lib
 set PATH=%PATH%;%Progs%/zlib/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/apr/include
 set LIB=%LIB%;%Progs%/apr/lib
 set PATH=%PATH%;%Progs%/apr/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/openssl/include
 set LIB=%LIB%;%Progs%/openssl/lib
 set PATH=%PATH%;%Progs%/openssl/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/apr-util/include
 set LIB=%LIB%;%Progs%/apr-util/lib
 set PATH=%PATH%;%Progs%/apr-util/bin
 
 set INCLUDE=%INCLUDE%;%Progs%/libxml2/include
 set LIB=%LIB%;%Progs%/libxml2/lib
 set PATH=%PATH%;%Progs%/libxml2/bin
 
 | 
 
 Let's go to install Apache Httpd
 
 
  	  | Code: |  	  | mkdir c:\Sources\httpd-2.4.25\bld
 cd /d c:\Sources\httpd-2.4.25\bld
 
 cmake . -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%Progs%/httpd  -DPCRE_INCLUDE_DIR=%Progs%/pcre/include -DPCRE_LIBRARIES=%Progs%/pcre/lib/pcre.lib -DAPR_INCLUDE_DIR=%Progs%/apr/include -DAPR_LIBRARIES=%Progs%/apr/lib/libapr-1.lib -DOPENSSL_ROOT_DIR=%Progs%/openssl -DCMAKE_BUILD_TYPE="Release|x64" -DENABLE_MODULES=i -DWITH_LIBHTTPD:BOOL=OFF ..
 | 
 
 After of before sentence... I have:
 
 
  	  | Code: |  	  | -- Configuring done
 -- Generating done
 CMake Warning:
 Manually-specified variables were not used by the project:
 
 WITH_LIBHTTPD
 
 
 -- Build files have been written to: C:/Sources/httpd-2.4.25/bld
 
 | 
 
 Here the Complete log...: https://pastebin.com/fTh2RaZ6
 
 The problem raise up with nmake...
 
 
 
  	  | Code: |  	  | c:\Sources\httpd-2.4.25\bld>nmake
 
 Microsoft (R) Program Maintenance Utility Version 14.10.25017.0
 Copyright (C) Microsoft Corporation.  All rights reserved.
 
 [  0%] Built target gen_test_char
 [  1%] Built target test_char_header
 [  1%] Building C object CMakeFiles/libhttpd.dir/os/win32/ap_regkey.c.obj
 ap_regkey.c
 C:\Sources\httpd-2.4.25\os\win32\ap_regkey.c(19): fatal error C1083: Cannot open include file: 'arch/win32/apr_arch_file_io.h': No such file or directory
 NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1410~1.250\bin\HostX64\x64\cl.exe' : return code '0x2'
 Stop.
 NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"' : return code '0x2'
 Stop.
 NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"' : return code '0x2'
 Stop.
 
 c:\Sources\httpd-2.4.25\bld>
 
 | 
 
 I tried to solve with...
 
 
  	  | Code: |  	  | md c:\Programs\apr\include\arch\win32
 copy c:\Sources\apr-1.5.2\include\arch\win32\*.h c:\Programs\apr\include\arch\win32\
 copy c:\Sources\apr-1.5.2\include\arch\*.h c:\Programs\apr\include\arch\
 
 | 
 
 Then I have a lot of errors... https://pastebin.com/UmScZ5kh
 
 Is It possible, solve or avoid Libhttpd?
 How
 |  |  
| Back to top |  |  
| Steffen Moderator
 
 
 Joined: 15 Oct 2005
 Posts: 3130
 Location: Hilversum, NL, EU
 
 | 
|  Posted: Sun 07 May '17 13:45    Post subject: |   |  
| 
 |  
| Sorry for the late reply, I must have missed this. 
 Try the cmake build from:
 
 https://www.apachelounge.com/viewtopic.php?t=6462
 
 
 Btw.
 cmake is very experimental and is missing things.
 
 Best is to use the make files:
 
 nmake /f makefile.win instdir=c:\Apache24 installr
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |