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: Compiling apache 2.4.9 x64 with visual studio 2012 |
|
Author |
|
Eyecu
Joined: 22 Mar 2014 Posts: 3 Location: Canada, Newmarket
|
Posted: Sun 23 Mar '14 2:26 Post subject: Compiling apache 2.4.9 x64 with visual studio 2012 |
|
|
Good day,
Forgive me if this is somewhere else but I've searched several times with different key words and not found anything for vs 2012.
I've been trying to compile this for 4 days straight and it doesn't matter which tutorial or variation there of that I follow.
This is what i've done so far.
Downloaded the apache 2.4.9 source and extracted it to c:\httpd249
Downloaded, extracted and placed
apr-1.5.0
apr-iconv-1.2.1
apr-util-1.5.3
expact-2.1.0
libxml2-2.9.1
lua-5.1.5
openssl-1.0.1f
zlib-1.2.8
into the c:\httpd249\srclib directory removing the version numbers.
Also downloaded PCRE-8.34 compiled it with cmake and vs2012 and placed the pcre.dll, pcre.h, pcre.lib and pcre.pdb into c:\httpd249\srclib\pcre directory.
Open cmd and ran
Code: | "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\vcvars64.bat"
cd c:\httpd249
perl srclib\apr\build\lineends.pl
BUILD LIBXML2 SOURCE
cd\build\httpd-2.4.4\srclib\libxml2\win32
CSCRIPT configure.js vcmanifest=yes iconv=no iso8859x=yes
nmake /f makefile.msvc
BUILD LUA SOURCE
cd\build\httpd-2.4.4\srclib\lua
etc\luavs
BUILD OPENSSL
cd ..\openssl
perl Configure VC-WIN64A enable-camellia disable-idea
ms\do_win64a.bat
nmake -f ms\ntdll.mak
BUILD ZLIB
cd srclib\zlib
nmake -f win32\Makefile.msc AS=ml64 LOC="-DASMV -DASMINF -I." OBJA="inffasx64.obj gvmat64.obj inffas8664.obj" |
Next to some warnings things seem to compile fine.
Next I opened the Apache.dsw file in vs2008 express and let it upgrade. Then file save all, and closed vs2008.
Next I opened the Apache.sln in vs2012 and let it upgrade. The solution report shows warnings but not fails. I then go to the into the configuration manager and set release and x64 with settings from win32 (don't know about this part but doesn't seem like i should keep it as win32 when i want x64.)
I also go into the project dependancies and tick abs, apr_dbd_odbc, mod_deflate, mod_lua, mod_proxy_html, mod_ssl and mod_xml2enc.
I then closed vs2012 and ran a python script found in several place not the least of which is: Here
I then opened vs 2012 and try to compile and got errors about apr.h. So i compiled apr apriconv and aprutil and tried buildbin again and got libhttpd fatal errors.
I've gone through trying different settings. and approaches but no matter what i get errors. Also note I redo the build steps of libxml2 zlib openssl and lua with a fresh copy of all sources every time...I think i've tried about 100 times over the last couple days to no avail.
I've even tried command line and get errors.
Any help would be appreciated. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 23 Mar '14 5:18 Post subject: |
|
|
what's the specific error when building the libhttpd project? |
|
Back to top |
|
Eyecu
Joined: 22 Mar 2014 Posts: 3 Location: Canada, Newmarket
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 23 Mar '14 10:41 Post subject: |
|
|
Ugh, I forgot about that. While the APRs have a x64 build target, httpd does not. So it's really seeing x86. I've never had much luck with the IDE post 2008 even though I do have a script that converts the dsp files to x64 so I simply do not build in 2012 with the IDE, instead I build from the VS 2012 x64 command line using these sources;
http://people.apache.org/~gsmith/httpd/releases/
If you would rather not use those source files, all you really need from them is all the .mak and .dep files. You also (for 2012) need the module.mk.win file from srclib/apr-iconv/build since 2012 doesn't like precompiled headers much and will not build all the iconv modules if those compiler flags are present and they've been removed from this one. |
|
Back to top |
|
Eyecu
Joined: 22 Mar 2014 Posts: 3 Location: Canada, Newmarket
|
Posted: Sun 23 Mar '14 22:46 Post subject: |
|
|
Ok i'll give that a try, ya i would prefer command line myself to build them but i was trying every way i could find lol. |
|
Back to top |
|
|
|
|
|
|